Windows Update Issues – Clearing the Windows Update Cache

Reason for TSG: Issues/ errors when applying Windows Updates NOTE: This should be used ONLY as a last resort. It is not generally recommended to manually modify any contents on the C:\Windows drive. Please use this fix at your own risk only after you have gone through all other options to get the Windows Updates to apply…

2

Troubleshoot a Broken Azure VM using Nested Virtualization in Azure (RDFE)

Please note that 3rd party virtualization software(s) for Windows 2016 Nested Virtualization feature is not supported. Only Hyper-V is currently supported. Also note that as of right now, Nested Virtualization is only available in the following geographic locations: US -West 2 -East Europe -West Asia Pacific -Southeast Reference Links: Nested Virtualization in Azure New DV3 and EV3…

0

Linux Boot Error: Emergency Mode! (RDFE)

Reason for TSG: Boot diagnostics screen shows VM booting into Emergency Mode   Suggested Fix: 1) Before proceeding with Step 2 ensure you have an recovery VM located in the same Cloud Service, region and the same version (Or distribution) as the impacted VM. If you do not, create that new machine now. 2) Once…

0

How to delete a VM and attach the OS disk as a Data Disk to a Recovery VM (RDFE)

1) Delete the VM from the Azure Portal choosing to keep all attached disks 2) Create a new recovery VM in the Azure Portal. This VM will need to be in the same Region and Resource Group (Cloud Service) as the broken machine 3) Once the recovery machine is created select it 4) Select Disks…

0

How to Remote PowerShell to Azure VM (DIP to DIP)

Enter a PowerShell session from inside another VM located inside the same Vnet and run the following: $Skip = New-PSSessionOption -SkipCACheck -SkipCNCheck Enter-PSSession -ComputerName “HOSTNAME” -port 5986 -Credential (Get-Credential) -useSSL -SessionOption $Skip If the above does not work try the following instead: $Skip = New-PSSessionOption -SkipCACheck -SkipCNCheck Enter-PSSession -ComputerName “HOSTNAME” -port 5985 -Credential (Get-Credential) -SessionOption…

0

How to rebuild an Azure VM from an existing OS disk (RDFE)

Method 1: Azure Portal 1) Navigate to the Azure Portal 2) Select OS Disks (Classic) 3) Select the VHD you use to use to rebuild the VM 4) Continue the steps inputting in the required information to recreate   Mitigation 2: PowerShell Use the below script to recreate a Classic VM via PowerShell. Modify the…

0

How to Add an new NSG Rule to an Azure VM (RDFE)

1) Navigate to the Azure Portal 2) Select  Virtual Machines 3) Click on the impacted VM 4) Click Network Security Group 5) Select the Network security group listed 6) Click Inbound Rules 8) Click Add 9) Click on the Advanced Settings 10) Name the new rule 11) Set the Priority of the Rule 12) Set…

0

How to Check for NSGs & Route Tables on a Subnet level

1) Navigate to the Azure Portal 2) Click on Virtual Networks 3) Select the Vnet you want to check 4) Click on Subnets 5) Select the Subnet you want to check 6) Click Network Security Group 7) If a network security group is selected, change it to none 8) If a route table is select,…

0

Unable to RDP to Azure VM Scenarios

Generally when we have an Azure Virtual Machine we think of it as being unavailable in a few different ways: 1) Non-Boot 2) Isolated 3) VM Responding In order to better use the guides on this blog we need to clarify what each of these scenarios are and how you can use the scenario to…

0

Disable NLA via Custom Script Extension

Symptoms: When attempting to RDP to your virtual machine you receive an error regarding Network Level Authentication (NLA): Resolution:  Note: The below steps are using Custom Script Extension in the Azure Portal. If that is not an option as the Guest Agent is not responding you can also run the same commands via Remote PowerShell,…

3

How to Remove and Regenerate an Expired RDP Certificate using Custom Script Extension

Symptom: Unable to connect to VM corrupt or expired RDP Certificate Resolution:  Open up a Blank Notepad and paste the following into it: #sets the Certificate Store path $path = get-childitem -Recurse ‘Cert:\LocalMachine\Remote Desktop’ #Check the certificate date $path.NotAfter #sets the thumbprint from the cert $thumb = $path |Select-Object -ExpandProperty Thumbprint #pulls just the Machine…

0

How to Present a new NIC to an Isolated VM (RDFE)

Symptoms: Disabled Network Interface Card from inside the OS Disabled DHCP by manually assigning an IP address inside the OS Manually set the VM to use a DNS server by specifying an IP address  Red X over the Networking Icon Resolution: Navigate to the Azure Portal Select the impacted Virtual Machine Select IP addresses Change…

0

How to Disable the Guest OS Firewall of an Azure VM (ARM)

Mitigation 1: Custom Script Extension 1) Open up a Blank Notepad and paste the following into it: Set-ItemProperty -Path ‘HKLM:\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy\DomainProfile’ -name “EnableFirewall” -Value 0 Set-ItemProperty -Path ‘HKLM:\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy\PublicProfile’ -name “EnableFirewall” -Value 0 Set-ItemProperty -Path ‘HKLM:\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy\Standardprofile’ -name “EnableFirewall” -Value 0 2) Save the file as disablefirewall.ps1 3) Navigate to the Azure Portal 4) Select the impacted VM…

0

How to setup a VM to boot to last good known configuration (RDFE)

Symptom: VM stuck in Reboot Loop. Often due to Failed Windows Updates. Resolution: 1) Delete the isolated VM, keeping the disks associated with it. 2) Wait for the disk lease to expire. (About 3 mins) 3) Attach the OS disk of the broken VM to a recovery VM located in the same Region and Cloud…

0