<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Azure Compute</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/mckittrick/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/mckittrick/feed.xml</link>
    <description>Micah McKittrick</description>
    <lastBuildDate>Sun, 17 Feb 2019 18:38:23 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Unable to RDP to Virtual Machine: CredSSP Encryption Oracle Remediation</title>
      <link>https://docs.microsoft.com/archive/blogs/mckittrick/unable-to-rdp-to-virtual-machine-credssp-encryption-oracle-remediation</link>
      <pubDate>Fri, 11 May 2018 10:12:50 GMT</pubDate>
      <dc:creator><![CDATA[Micah McKittrick]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mckittrick/?p=2005</guid>
      <description><![CDATA[This blog is being migrated to www.solveazure.com and will be decommissioned once the content has...]]></description>
      <content:encoded><![CDATA[<h1 style="text-align: center"><span style="color: #ff6600"><strong>This blog is being migrated to <a href="https://www.solveazure.com">www.solveazure.com</a> and will be decommissioned once the content has been moved. ETA 2/28/2019</strong></span></h1>
<h1 style="text-align: center"><span style="color: #ff6600"><strong>Please use <a href="https://www.solveazure.com">www.solveazure.com</a> for updated and continuous content. </strong></span></h1>
=================================================================================================================

This specific post has moved to <a href="https://solveazure.com/2018/05/11/unable-to-rdp-to-virtual-machine-credssp-encryption-oracle-remediation/">https://solveazure.com/2018/05/11/unable-to-rdp-to-virtual-machine-credssp-encryption-oracle-remediation/ </a>

=================================================================================================================]]></content:encoded>
    </item>
    <item>
      <title>Windows Update Issues - Clearing the Windows Update Cache</title>
      <link>https://docs.microsoft.com/archive/blogs/mckittrick/windows-update-issues-clear-windows-update-cache</link>
      <pubDate>Mon, 07 Aug 2017 13:58:25 GMT</pubDate>
      <dc:creator><![CDATA[Micah McKittrick]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mckittrick/?p=1935</guid>
      <description><![CDATA[This blog is being migrated to www.solveazure.com and will be decommissioned once the content has...]]></description>
      <content:encoded><![CDATA[<h1 style="text-align: center"><span style="color: #ff6600"><strong>This blog is being migrated to <a href="https://www.solveazure.com">www.solveazure.com</a> and will be decommissioned once the content has been moved. ETA 2/28/2019</strong></span></h1>
<h1 style="text-align: center"><span style="color: #ff6600"><strong>Please use <a href="https://www.solveazure.com">www.solveazure.com</a> for updated and continuous content. </strong></span></h1>
<ol>
 	<li>To start, we need to stop the Windows update service before we can clear the update cache. To do that, search for “Services” in the Start menu and open it. If you are using your system as a standard user, then open it as an administrator using the right-click menu.
<img width="392" height="217" class="alignnone size-full wp-image-1936" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/1.jpg" /></li>
 	<li>Once the Services window has been opened, find the service “Windows Update,” right-click on it and then select the option “Stop.” This action stops the Windows update service.
<img width="600" height="319" class="alignnone size-full wp-image-1945" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/2.jpg" /></li>
 	<li>After stopping the service, press “Win + R,” enter the below path and press the Enter button. This is the folder where Windows stores all the files related to Windows updates.C:\Windows\SoftwareDistribution\
<img width="399" height="206" class="alignnone size-full wp-image-1955" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/3.jpg" /></li>
 	<li>Once you are in this folder, open the “Download” folder, select all the files in it and just press the Delete key on your keyboard to delete all the files. You might be prompted for administrator permissions; simply click on the “Continue” button to complete the procedure.
<img width="510" height="523" class="alignnone size-full wp-image-1965" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/4.jpg" /></li>
 	<li>Open the Services window again and start the “Windows Update service again by right-clicking on it and then select the option “Start.”</li>
 	<li><span style="color: #595959">Check for and install updates </span></li>
</ol>]]></content:encoded>
    </item>
    <item>
      <title>Troubleshoot a Broken Azure VM using Nested Virtualization in Azure (Managed Disk)</title>
      <link>https://docs.microsoft.com/archive/blogs/mckittrick/troubleshoot-a-broken-azure-vm-using-nested-virtualization-in-azure-managed-disk</link>
      <pubDate>Thu, 03 Aug 2017 16:23:53 GMT</pubDate>
      <dc:creator><![CDATA[Micah McKittrick]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mckittrick/?p=1866</guid>
      <description><![CDATA[Please note that 3rd party virtualization software(s) for Windows 2016 Nested Virtualization feature...]]></description>
      <content:encoded><![CDATA[<strong>Please note that 3<sup>rd</sup> party virtualization software(s) for Windows 2016 Nested Virtualization feature is not supported. Only Hyper-V is currently supported.</strong>

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:
<a href="https://azure.microsoft.com/en-us/blog/nested-virtualization-in-azure/">Nested Virtualization in Azure</a>
<a href="https://azure.microsoft.com/en-us/blog/introducing-the-new-dv3-and-ev3-vm-sizes/">New DV3 and EV3 Series Virtual Machines</a>
<ol>
 	<li>Delete the Broken Virtual machine
<img width="1167" height="243" class="alignnone size-full wp-image-1876" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/117.png" /></li>
 	<li>Create a new Recovery VM
<ol>
 	<li>OS: Windows Server 2016 Datacenter</li>
 	<li>Select the same Location and Resource Group as the Broken VM</li>
 	<li>Size: Any V3 series with at least 2 cores
<img width="579" height="687" class="alignnone size-full wp-image-1625" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/25.png" /></li>
 	<li>Select to use Managed Disks</li>
</ol>
</li>
 	<li>Once the Recovery VM is created select it in the Portal</li>
 	<li>Select Disks</li>
 	<li>Add Data Disk</li>
 	<li>Select the Broken VHDs OS disk from the drop down list
<img width="1229" height="539" class="alignnone size-full wp-image-1885" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/27.png" /></li>
 	<li>Save the Changes
<img width="1235" height="332" class="alignnone size-full wp-image-1895" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/313.png" /></li>
 	<li>Once the disk has successfully attached RDP to the Recovery VM</li>
 	<li>In Server Manger select Manage -&gt; Add Roles and Features
<img width="360" height="173" class="alignnone size-full wp-image-1665" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/64.png" /></li>
 	<li>For Installation Type select Role-based or feature-based installation
<img width="781" height="324" class="alignnone size-full wp-image-1675" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/74.png" /></li>
 	<li>Ensure the Recovery VM is selected
<img width="783" height="354" class="alignnone size-full wp-image-1685" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/84.png" /></li>
 	<li>Select the Hyper-V role
<img width="553" height="498" class="alignnone size-full wp-image-1695" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/92.png" />
<img width="413" height="413" class="alignnone size-full wp-image-1705" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/103.png" /></li>
 	<li>Select Next on the Features Screen.
<ol>
 	<li>If a Virtual Switch is available, select it and continue. Otherwise select Next and continue without a switch
<img width="779" height="353" class="alignnone size-full wp-image-1715" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/113.png" /></li>
</ol>
</li>
 	<li>On the Migration Page select Next</li>
 	<li>On the Default Stores Page select Next</li>
 	<li>Check the box to restart the server automatically if required</li>
 	<li>Select Install</li>
 	<li>Allow the Server to install the Hyper-V role. This will take a few mins and the server will reboot automatically. You can monitor the reboot cycle using the Boot Diagnostics Tab in the Azure Portal</li>
 	<li>Once the VM starts back up RDP back into it</li>
 	<li>Open Disk Management and ensure the VHD of the Broken VM is set to <em><span style="text-decoration: underline"><strong>Offline</strong></span></em>
<img width="897" height="781" class="alignnone size-full wp-image-1716" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/122.png" /></li>
 	<li>In Server Manger select the Hyper-V role</li>
 	<li>Right click on the server and select the Hyper-V Manger</li>
 	<li><img width="609" height="344" class="alignnone size-full wp-image-1845" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/116.png" /></li>
 	<li>In the Hyper-V manager right click on the Recovery VM and select New -&gt; Virtual Machine
<img width="553" height="297" class="alignnone size-full wp-image-1726" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/141.png" /></li>
 	<li>Select Next</li>
 	<li>Name the Virtual Machine and select Next</li>
 	<li>Select Generation 1</li>
 	<li>Leave the startup memory at 1024MB unless your VM requires more.</li>
 	<li>If applicable select the Hyper-V Network Switch that was created. Else just move on to the next page</li>
 	<li>Chose the option to Attach a Virtual Hard Disk Later
<img width="700" height="528" class="alignnone size-full wp-image-1735" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/151.png" /></li>
 	<li>Select Finish and the VM will be created</li>
 	<li>Right click on the VM we just created and select Settings
<img width="456" height="214" class="alignnone size-full wp-image-1736" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/161.png" /></li>
 	<li>Select IDE Controller 0</li>
 	<li>Select Hard Drive and click Add
<img width="717" height="301" class="alignnone size-full wp-image-1745" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/171.png" /></li>
 	<li>Under Physical Hard Disk select the VHD of the broken VM we attached to the Recovery VM
<ol>
 	<li>If you do not see any disks listed it is because the VHD attached to the Recovery VM is set to Online. Refer back to step 22
<img width="720" height="420" class="alignnone size-full wp-image-1755" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/18.png" /></li>
</ol>
</li>
 	<li>Select Apply and OK</li>
 	<li>Double Click on the VM and Start it
<img width="902" height="506" class="alignnone size-full wp-image-1595" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/19.png" /></li>
 	<li>Depending on your scenario, apply any troubleshooting/ mitigations steps now that you have console access</li>
 	<li>Once you get the VM back online shutdown the VM in the Hyper-V manager
<img width="1155" height="874" class="alignnone size-full wp-image-1605" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/20.png" /></li>
 	<li>Go back to the Azure Portal</li>
 	<li>Select the Recovery VM</li>
 	<li>Select Disks</li>
 	<li>Select Edit and remove the now fixed VHD from the Recovery VM and save the changes
<img width="1241" height="380" class="alignnone size-full wp-image-1905" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/47.png" /></li>
 	<li>Proceed to rebuild the now fixed VM. Refer to <a href="https://blogs.technet.microsoft.com/mckittrick/how-to-rebuild-from-an-existing-managed-disk/">How to Rebuild an Azure VM from an Existing Managed Disk </a></li>
</ol>]]></content:encoded>
    </item>
    <item>
      <title>Troubleshoot a Broken Azure VM using Nested Virtualization in Azure (RDFE)</title>
      <link>https://docs.microsoft.com/archive/blogs/mckittrick/troubleshoot-broken-azure-vm-using-nested-virtualization-in-azure-rdfe</link>
      <pubDate>Thu, 03 Aug 2017 14:54:38 GMT</pubDate>
      <dc:creator><![CDATA[Micah McKittrick]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mckittrick/?p=1786</guid>
      <description><![CDATA[Please note that 3rd party virtualization software(s) for Windows 2016 Nested Virtualization feature...]]></description>
      <content:encoded><![CDATA[<strong>Please note that 3<sup>rd</sup> party virtualization software(s) for Windows 2016 Nested Virtualization feature is not supported. Only Hyper-V is currently supported.</strong>

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:
<a href="https://azure.microsoft.com/en-us/blog/nested-virtualization-in-azure/">Nested Virtualization in Azure</a>
<a href="https://azure.microsoft.com/en-us/blog/introducing-the-new-dv3-and-ev3-vm-sizes/">New DV3 and EV3 Series Virtual Machines</a>
<ol>
 	<li>Create a new Recovery VM
<ol>
 	<li>OS: Windows Server 2016 Datacenter</li>
 	<li>Size: Any V3 series with at least 2 cores
<img width="579" height="687" class="alignnone size-full wp-image-1625" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/25.png" /></li>
 	<li>Same Location, Storage Account and Resource Group as the Broken VM</li>
 	<li>Select the same storage type as the broken VM (Standard or Premium)</li>
</ol>
</li>
 	<li>Delete the Broken VM. Ensure to KEEP all attached disks
<img width="1101" height="242" class="alignnone size-full wp-image-1805" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/115.png" /></li>
 	<li>Once the Broken VM is deleted navigate to the Recovery VM</li>
 	<li>Select Disks</li>
 	<li>Select Attach Existing</li>
 	<li>Browse to the location of the Broken VMs VHD
<img width="1352" height="432" class="alignnone size-full wp-image-1806" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/26.png" /></li>
 	<li>Select the Broken VMs VHD and click OK</li>
 	<li>Once the disk has successfully attached RDP to the Recovery VM</li>
 	<li>In Server Manger select Manage -&gt; Add Roles and Features
<img width="360" height="173" class="alignnone size-full wp-image-1665" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/64.png" /></li>
 	<li>For Installation Type select Role-based or feature-based installation
<img width="781" height="324" class="alignnone size-full wp-image-1675" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/74.png" /></li>
 	<li>Ensure the Recovery VM is selected
<img width="783" height="354" class="alignnone size-full wp-image-1685" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/84.png" /></li>
 	<li>Select the Hyper-V role
<img width="553" height="498" class="alignnone size-full wp-image-1695" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/92.png" />
<img width="413" height="413" class="alignnone size-full wp-image-1705" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/103.png" /></li>
 	<li>Select Next on the Features Screen.
<ol>
 	<li>If a Virtual Switch is available, select it and continue. Otherwise select Next and continue without a switch
<img width="779" height="353" class="alignnone size-full wp-image-1715" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/113.png" /></li>
</ol>
</li>
 	<li>On the Migration Page select Next</li>
 	<li>On the Default Stores Page select Next</li>
 	<li>Check the box to restart the server automatically if required</li>
 	<li>Select Install</li>
 	<li>Allow the Server to install the Hyper-V role. This will take a few mins and the server will reboot automatically. You can monitor the reboot cycle using the Boot Diagnostics Tab in the Azure Portal</li>
 	<li>Once the VM starts back up RDP back into it</li>
 	<li>Open Disk Management and ensure the VHD of the Broken VM is set to <em><span style="text-decoration: underline"><strong>Offline</strong></span></em>
<img width="897" height="781" class="alignnone size-full wp-image-1716" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/122.png" /></li>
 	<li>In Server Manger select the Hyper-V role</li>
 	<li>Right click on the server and select the Hyper-V Manger
<img width="609" height="344" class="alignnone size-full wp-image-1845" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/116.png" /></li>
 	<li>In the Hyper-V manager right click on the Recovery VM and select New -&gt; Virtual Machine
<img width="553" height="297" class="alignnone size-full wp-image-1726" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/141.png" /></li>
 	<li>Select Next</li>
 	<li>Name the Virtual Machine and select Next</li>
 	<li>Select Generation 1</li>
 	<li>Leave the startup memory at 1024MB unless your VM requires more.</li>
 	<li>If applicable select the Hyper-V Network Switch that was created. Else just move on to the next page</li>
 	<li>Chose the option to Attach a Virtual Hard Disk Later
<img width="700" height="528" class="alignnone size-full wp-image-1735" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/151.png" /></li>
 	<li>Select Finish and the VM will be created</li>
 	<li>Right click on the VM we just created and select Settings
<img width="456" height="214" class="alignnone size-full wp-image-1736" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/161.png" /></li>
 	<li>Select IDE Controller 0</li>
 	<li>Select Hard Drive and click Add
<img width="717" height="301" class="alignnone size-full wp-image-1745" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/171.png" /></li>
 	<li>Under Physical Hard Disk select the VHD of the broken VM we attached to the Recovery VM
<ol>
 	<li>If you do not see any disks listed it is because the VHD attached to the Recovery VM is set to Online. Refer back to step 22
<img width="720" height="420" class="alignnone size-full wp-image-1755" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/18.png" /></li>
</ol>
</li>
 	<li>Select Apply and OK</li>
 	<li>Double Click on the VM and Start it
<img width="902" height="506" class="alignnone size-full wp-image-1595" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/19.png" /></li>
 	<li>Depending on your scenario, apply any troubleshooting/ mitigations steps now that you have console access</li>
 	<li>Once you get the VM back online shutdown the VM in the Hyper-V manager
<img width="1155" height="874" class="alignnone size-full wp-image-1605" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/20.png" /></li>
 	<li>Go back to the Azure Portal</li>
 	<li>Select the Recovery VM</li>
 	<li>Select Disks</li>
 	<li>Detach the now fixed VHD  from the Recovery VM
<img width="998" height="311" class="alignnone size-full wp-image-1825" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/312.png" /></li>
 	<li>Proceed to rebuild the now fixed VM. Refer to <a href="https://blogs.technet.microsoft.com/mckittrick/how-to-rebuild-a-vm-from-an-existing-os-disk-rdfe/">How to Rebuild an Azure VM from an Existing Disk OS disk</a></li>
</ol>]]></content:encoded>
    </item>
    <item>
      <title>Troubleshoot a Broken Azure VM using Nested Virtualization in Azure (ARM)</title>
      <link>https://docs.microsoft.com/archive/blogs/mckittrick/troubleshoot-broken-azure-vm-using-nested-virtualization-in-azure-arm</link>
      <pubDate>Thu, 03 Aug 2017 14:49:06 GMT</pubDate>
      <dc:creator><![CDATA[Micah McKittrick]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mckittrick/?p=1587</guid>
      <description><![CDATA[Please note that 3rd party virtualization software(s) for Windows 2016 Nested Virtualization feature...]]></description>
      <content:encoded><![CDATA[<strong>Please note that 3<sup>rd</sup> party virtualization software(s) for Windows 2016 Nested Virtualization feature is not supported. Only Hyper-V is currently supported.</strong>
<ol>
 	<li>Delete the Broken Virtual machine
<img width="881" height="255" class="alignnone size-full wp-image-1756" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/110.png" /></li>
 	<li>Create a new Recovery VM
<ol>
 	<li>OS: Windows Server 2016 Datacenter</li>
 	<li>Size: Any V3 series with at least 2 cores
<img width="579" height="687" class="alignnone size-full wp-image-1625" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/25.png" /></li>
 	<li>Same Location, Storage Account and Resource Group as the Broken VM</li>
 	<li>Select to not use Managed Disks</li>
</ol>
</li>
 	<li>Once the Recovery VM is created select it in the Portal</li>
 	<li>Select Disks</li>
 	<li>Add Data Disk</li>
 	<li>Select Source Type Existing Blob</li>
 	<li>Browse to the location of the Broken VMs VHD
<img width="896" height="240" class="alignnone size-full wp-image-1765" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/311.png" />
<img width="991" height="312" class="alignnone size-full wp-image-1775" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/46.png" /></li>
 	<li>Select the Broken VMs VHD and click OK</li>
 	<li>Save the Changes
<img width="1235" height="341" class="alignnone size-full wp-image-1785" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/55.png" /></li>
 	<li>Once the disk has successfully attached RDP to the Recovery VM</li>
 	<li>In Server Manger select Manage -&gt; Add Roles and Features
<img width="360" height="173" class="alignnone size-full wp-image-1665" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/64.png" /></li>
 	<li>For Installation Type select Role-based or feature-based installation
<img width="781" height="324" class="alignnone size-full wp-image-1675" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/74.png" /></li>
 	<li>Ensure the Recovery VM is selected
<img width="783" height="354" class="alignnone size-full wp-image-1685" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/84.png" /></li>
 	<li>Select the Hyper-V role
<img width="553" height="498" class="alignnone size-full wp-image-1695" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/92.png" />
<img width="413" height="413" class="alignnone size-full wp-image-1705" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/103.png" /></li>
 	<li>Select Next on the Features Screen.
<ol>
 	<li>If a Virtual Switch is available, select it and continue. Otherwise select Next and continue without a switch
<img width="779" height="353" class="alignnone size-full wp-image-1715" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/113.png" /></li>
</ol>
</li>
 	<li>On the Migration Page select Next</li>
 	<li>On the Default Stores Page select Next</li>
 	<li>Check the box to restart the server automatically if required</li>
 	<li>Select Install</li>
 	<li>Allow the Server to install the Hyper-V role. This will take a few mins and the server will reboot automatically. You can monitor the reboot cycle using the Boot Diagnostics Tab in the Azure Portal</li>
 	<li>Once the VM starts back up RDP back into it</li>
 	<li>Open Disk Management and ensure the VHD of the Broken VM is set to <em><span style="text-decoration: underline"><strong>Offline</strong></span></em>
<img width="897" height="781" class="alignnone size-full wp-image-1716" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/122.png" /></li>
 	<li>In Server Manger select the Hyper-V role</li>
 	<li>Right click on the server and select the Hyper-V Manger</li>
 	<li><img width="609" height="344" class="alignnone size-full wp-image-1845" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/116.png" /></li>
 	<li>In the Hyper-V manager right click on the Recovery VM and select New -&gt; Virtual Machine
<img width="553" height="297" class="alignnone size-full wp-image-1726" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/141.png" /></li>
 	<li>Select Next</li>
 	<li>Name the Virtual Machine and select Next</li>
 	<li>Select Generation 1</li>
 	<li>Leave the startup memory at 1024MB unless your VM requires more.</li>
 	<li>If applicable select the Hyper-V Network Switch that was created. Else just move on to the next page</li>
 	<li>Chose the option to Attach a Virtual Hard Disk Later
<img width="700" height="528" class="alignnone size-full wp-image-1735" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/151.png" /></li>
 	<li>Select Finish and the VM will be created</li>
 	<li>Right click on the VM we just created and select Settings
<img width="456" height="214" class="alignnone size-full wp-image-1736" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/161.png" /></li>
 	<li>Select IDE Controller 0</li>
 	<li>Select Hard Drive and click Add
<img width="717" height="301" class="alignnone size-full wp-image-1745" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/171.png" /></li>
 	<li>Under Physical Hard Disk select the VHD of the broken VM we attached to the Recovery VM
<ol>
 	<li>If you do not see any disks listed it is because the VHD attached to the Recovery VM is set to Online. Refer back to step 22
<img width="720" height="420" class="alignnone size-full wp-image-1755" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/18.png" /></li>
</ol>
</li>
 	<li>Select Apply and OK</li>
 	<li>Double Click on the VM and Start it
<img width="902" height="506" class="alignnone size-full wp-image-1595" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/19.png" /></li>
 	<li>Depending on your scenario, apply any troubleshooting/ mitigations steps now that you have console access</li>
 	<li>Once you get the VM back online shutdown the VM in the Hyper-V manager
<img width="1155" height="874" class="alignnone size-full wp-image-1605" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/20.png" /></li>
 	<li>Go back to the Azure Portal</li>
 	<li>Select the Recovery VM</li>
 	<li>Select Disks</li>
 	<li>Select Edit and remove the now fixed VHD from the Recovery VM and save the changes
<img width="1244" height="326" class="alignnone size-full wp-image-1615" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/08/211.png" /></li>
 	<li>Proceed to rebuild the now fixed VM. Refer to <a href="https://blogs.technet.microsoft.com/mckittrick/how-to-rebuild-a-arm-vm-from-an-existing-os-disk/">How to Rebuild an Azure VM from an Existing Disk OS disk</a></li>
</ol>]]></content:encoded>
    </item>
    <item>
      <title>Windows Boot Error 0xC0000001 (ARM)</title>
      <link>https://docs.microsoft.com/archive/blogs/mckittrick/windows-boot-error-0xc0000001-arm</link>
      <pubDate>Wed, 31 May 2017 16:33:55 GMT</pubDate>
      <dc:creator><![CDATA[Micah McKittrick]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mckittrick/?p=1535</guid>
      <description><![CDATA[Reason for TSG:  The VM screenshot shows error 0xC0000001.

This is due to a BCD...]]></description>
      <content:encoded><![CDATA[<strong>Reason for TSG:  The VM screenshot shows error 0xC0000001.</strong>
<blockquote><img width="683" height="530" class="alignnone size-full wp-image-1545" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/05/148.png" /></blockquote>
This is due to a BCD corruption

<strong>Suggested Fix:</strong>

1) Delete the broken VM and <a href="https://blogs.technet.microsoft.com/mckittrick/how-to-delete-a-vm-and-attach-the-os-disk-as-a-data-disk-to-a-recovery-vm-arm/">attach it to a recovery machine</a>

2) Open up an elevated CMD and gather the current booting setup info and document it on the case. You will see that on the windows partition (the other partition than {bootmgr} ), both the DEVICE and OSDEVICE values are missing. Furthermore, we will use this step to take note of the identifier on the active partition
<blockquote>bcdedit /store &lt;drive letter&gt;:\boot\bcd /enum

<img width="691" height="406" class="alignnone size-full wp-image-1555" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/05/242.png" /></blockquote>
3) Then run the following commands:
<blockquote>bcdedit /store &lt;BCD FOLDER - DRIVE LETTER&gt;:\boot\bcd /set {bootmgr} device partition=&lt;BCD FOLDER - DRIVE LETTER&gt;
bcdedit /store &lt;BCD FOLDER - DRIVE LETTER&gt;:\boot\bcd /set {bootmgr} integrityservices enable
bcdedit /store &lt;BCD FOLDER - DRIVE LETTER&gt;:\boot\bcd /set {&lt;IDENTIFIER&gt;} device partition=&lt;WINDOWS FOLDER - DRIVE LETTER&gt;
bcdedit /store &lt;BCD FOLDER - DRIVE LETTER&gt;:\boot\bcd /set {&lt;IDENTIFIER&gt;} integrityservices enable
bcdedit /store &lt;BCD FOLDER - DRIVE LETTER&gt;:\boot\bcd /set {&lt;IDENTIFIER&gt;} recoveryenabled Off
bcdedit /store &lt;BCD FOLDER - DRIVE LETTER&gt;:\boot\bcd /set {&lt;IDENTIFIER&gt;} osdevice partition=&lt;WINDOWS FOLDER - DRIVE LETTER&gt;
bcdedit /store &lt;BCD FOLDER - DRIVE LETTER&gt;:\boot\bcd /set {&lt;IDENTIFIER&gt;} bootstatuspolicy IgnoreAllFailures</blockquote>
Note: The identifier could be Default or a GUID such as 32ebc729-6296-41b0-9750-5d275c7f5439

Here is a sample of what it should look like:
<blockquote>bcdedit /store G:\boot\bcd /set {bootmgr} device partition=G:
bcdedit /store G:\boot\bcd /set {bootmgr} integrityservices enable
bcdedit /store G:\boot\bcd /set {32ebc729-6296-41b0-9750-5d275c7f5439} device partition=F:
bcdedit /store G:\boot\bcd /set {32ebc729-6296-41b0-9750-5d275c7f5439} integrityservices enable
bcdedit /store G:\boot\bcd /set {32ebc729-6296-41b0-9750-5d275c7f5439} recoveryenabled Off
bcdedit /store G:\boot\bcd /set {32ebc729-6296-41b0-9750-5d275c7f5439} osdevice partition=F:
bcdedit /store G:\boot\bcd /set {32ebc729-6296-41b0-9750-5d275c7f5439} bootstatuspolicy IgnoreAllFailures</blockquote>
5) Detach the disk from the recovery machine

6) <a href="https://blogs.technet.microsoft.com/mckittrick/how-to-rebuild-a-arm-vm-from-an-existing-os-disk/">Recreate the VM from now the fixed OS disk</a>]]></content:encoded>
    </item>
    <item>
      <title>Linux Boot Error: Emergency Mode! (RDFE)</title>
      <link>https://docs.microsoft.com/archive/blogs/mckittrick/linux-boot-error-emergency-mode-rdfe</link>
      <pubDate>Wed, 31 May 2017 15:16:39 GMT</pubDate>
      <dc:creator><![CDATA[Micah McKittrick]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mckittrick/?p=1465</guid>
      <description><![CDATA[Reason for TSG: Boot diagnostics screen shows VM booting into Emergency Mode

&nbsp;

Suggested...]]></description>
      <content:encoded><![CDATA[<strong>Reason for TSG</strong>: Boot diagnostics screen shows VM booting into Emergency Mode

&nbsp;

<strong>Suggested Fix</strong>:

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 you have the recovery machine created proceed to delete the affected virtual machine from the Azure Portal. Ensure to opt to <em><span style="text-decoration: underline"><strong>KEEP</strong> </span></em>all attached disks
<blockquote><img width="909" height="245" class="alignnone size-full wp-image-1475" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/05/147.png" />
<p style="padding-left: 30px"><img width="577" height="425" class="alignnone size-full wp-image-1476" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/05/240.png" /></p>
</blockquote>
3) Once the machine is deleted wait about 3 mins for the disk lease to expire

4) Select the recovery VM you made and select Disks -&gt; Attach Existing
<blockquote><img width="647" height="389" class="alignnone size-full wp-image-1486" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/05/330.png" /></blockquote>
5) Navigate to the location of the VHD of the broken VM we just deleted. The path will be something like Storage Account Name -&gt; vhds -&gt; VHDname

6) Select the affected VHD and <a href="https://blogs.technet.microsoft.com/mckittrick/how-to-delete-a-vm-and-attach-the-os-disk-as-a-data-disk-to-a-recovery-vm-rdfe/">attach it to the troubleshooting VM</a>.

7) Once the VHD is attached proceed to SSH to the recovery machine.

8) From now on lets refer machines using the following naming convention:
<blockquote> <strong> A = Original VM (Inaccessible VM)</strong>
<strong>  B = New VM (New Troubleshooting VM)</strong></blockquote>
9) Once you have connected to VM <strong>B</strong> locate the drive name to mount, each Linux distribution is slightly different.
<blockquote><strong>For Ubuntu/debian:</strong>
grep SCSI /var/log/kern.log

For Centos/Suse/Oracle/Redhat:
grep SCSI /var/log/messages</blockquote>
10) Mount the attached disk onto mountpoint /rescue
<blockquote>df -h
mkdir /rescue

<strong>For Red Hat 7.2+</strong>
mount -o nouuid /dev/sdc2 /rescue

<strong>For CentOS 7.2+</strong>
mount -o nouuid /dev/sdc1 /rescue

<strong>For Debian 8.2+, Ubuntu 16.04+, SUSE 12 SP4+</strong>
mount /dev/sdc1 /rescue</blockquote>
11) Change into /etc directory where the original OS disk from resides
<blockquote>cd /rescue/etc/
cp fstab fstab_orig</blockquote>
12) Now that you have made a backup of you fstab you can proceed to make the changes you require using vi, nano or your favorite text editor, this may include commenting out entries by appending a # at the start of the line.
<blockquote>vi fstab
cd /
umount /rescue</blockquote>
13) Detach the disk from VM <strong>B</strong> via the Azure portal

14) Recreate the original VM <strong>A</strong> from the repaired VHD

15) To do this navigate to OS Disks (Classic)
<blockquote><img width="453" height="261" class="alignnone size-full wp-image-1496" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/05/426.png" /></blockquote>
16) Select the now fixed VHD and select + Create VM
<blockquote><img width="307" height="105" class="alignnone size-full wp-image-1505" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/05/522.png" /></blockquote>
17) Recreate the VM putting it back into the original Cloud Service and using the same name

18) Once it finishes creating attempt to SSH to it]]></content:encoded>
    </item>
    <item>
      <title>How to delete a VM and attach the OS disk as a Data Disk to a Recovery VM (RDFE)</title>
      <link>https://docs.microsoft.com/archive/blogs/mckittrick/how-to-delete-a-vm-and-attach-the-os-disk-as-a-data-disk-to-a-recovery-vm-rdfe</link>
      <pubDate>Fri, 26 May 2017 15:47:15 GMT</pubDate>
      <dc:creator><![CDATA[Micah McKittrick]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mckittrick/?p=1425</guid>
      <description><![CDATA[1) Delete the VM from the Azure Portal choosing to keep all attached disks
2) Create a new recovery...]]></description>
      <content:encoded><![CDATA[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 -&gt; Attach Existing

<img width="1329" height="698" class="alignnone size-full wp-image-1435" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/05/137.png" />

5) Select Configure Required Settings  -&gt; Storage Account of VHD -&gt; Container of VHD
6) Select the VHD of the broken VM

<img width="998" height="370" class="alignnone  wp-image-1445" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/05/234.png" />

7) Wait for the operation to complete and login to your VM
8) Open File Explorer to ensure the disk is showing up
9) If not, bring the disk online via the Disk Management Application inside the OS]]></content:encoded>
    </item>
    <item>
      <title>How to delete a VM and attach the OS disk as a Data Disk to a Recovery VM (ARM)</title>
      <link>https://docs.microsoft.com/archive/blogs/mckittrick/how-to-delete-a-vm-and-attach-the-os-disk-as-a-data-disk-to-a-recovery-vm-arm</link>
      <pubDate>Fri, 26 May 2017 15:45:16 GMT</pubDate>
      <dc:creator><![CDATA[Micah McKittrick]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mckittrick/?p=1386</guid>
      <description><![CDATA[1) Delete the VM from the Azure Portal choosing to keep all attached disks
2) Create a new recovery...]]></description>
      <content:encoded><![CDATA[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 as the broken machine
3) Once the recovery machine is created select it
4) Select Disks -&gt; Add data disk

<img width="1826" height="608" class="alignnone size-full wp-image-1395" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/05/136.png" />

5) Change the Source type to Existing Blog
6) Browse to the Source Blog

<img width="981" height="294" class="alignnone size-full wp-image-1405" alt="" src="https://msdnshared.blob.core.windows.net/media/2017/05/233.png" />

7) Locate the VHD of the broken VM in the correct Storage Account and Container
8) Select the VHD and click OK
9) Wait for the operation to complete and login to your VM
10) Open File Explorer to ensure the disk is showing up
11) If not, bring the disk online via the Disk Management Application inside the OS]]></content:encoded>
    </item>
    <item>
      <title>How to Perform an In-Place-Upgrade in Azure (Windows)</title>
      <link>https://docs.microsoft.com/archive/blogs/mckittrick/how-to-perform-an-in-place-upgrade-in-azure-windows</link>
      <pubDate>Fri, 26 May 2017 15:42:10 GMT</pubDate>
      <dc:creator><![CDATA[Micah McKittrick]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/mckittrick/?p=1375</guid>
      <description><![CDATA[At this time there is no way to perform an in place upgrade of virtual machines running one version...]]></description>
      <content:encoded><![CDATA[At this time there is no way to perform an in place upgrade of virtual machines running one version of Windows to another. For example, upgrading from Windows Server 2012R2 to Windows Server 2016 from inside the Guest OS is <em><strong><u>not supported</u>.</strong></em>

&nbsp;

In order to upgrade the machine to a new version of Windows it is required that a new machine is created using the desired Operating System and the data migrated.

<em><span style="text-decoration: underline"><strong>If an update is initialized from inside the OS the result will be a complete loss of RDP access.</strong></span></em>

&nbsp;

In order to restore RDP access from that point console access is needed. Since console access is not possible in Azure the VHD will need to be downloaded on premises and spun up in an on premise virtual environment such as Hyper-V. Once the OS upgrade is completed the machine will need to be <a href="https://docs.microsoft.com/en-us/azure/virtual-machines/windows/classic/createupload-vhd">configured</a> and uploaded back to Azure.

Please see <a href="https://support.microsoft.com/en-us/help/2721672/microsoft-server-software-support-for-microsoft-azure-virtual-machines">KB2721672</a> for additional information regarding in-place upgrades inside of Azure Virtual Machines.

&nbsp;

<span style="color: #ff0000"><strong>EDIT 9/6/17: As of today, you can now gain console access using Nested Virtualization. Please see the following articles on how to achieve this:</strong> </span>
<ul>
 	<li>https://blogs.technet.microsoft.com/mckittrick/troubleshoot-broken-azure-vm-using-nested-virtualization-in-azure-arm/</li>
 	<li>https://blogs.technet.microsoft.com/mckittrick/troubleshoot-a-broken-azure-vm-using-nested-virtualization-in-azure-managed-disk/</li>
 	<li>https://blogs.technet.microsoft.com/mckittrick/troubleshoot-broken-azure-vm-using-nested-virtualization-in-azure-rdfe/</li>
</ul>
This post will be updated shortly to reflect all these changes.]]></content:encoded>
    </item>
  </channel>
</rss>