<div dir="ltr" style="text-align: left;">
<div style="background: white; margin-bottom: 12pt; margin-left: 0cm; margin-right: 0cm;"><span style="color: #666666; font-family: Segoe UI, sans-serif;"><span style="font-size: 10.5pt;">MS Azure does not offer state forward way to increase C drive size like AWS with snapshot etc. So we need to follow such process, This is ;</span><span style="font-size: 14px;">lengthy</span><span style="font-size: 10.5pt;"> ;and ;</span><span style="font-size: 14px;">cumbersome</span><span style="font-size: 10.5pt;"> ;process but works . ;</span></span></div>
<div style="background: white; color: #222222; font-family: ";Times New Roman";, serif; font-size: 12pt; margin-bottom: 12pt; margin-left: 0cm; margin-right: 0cm;"><span style="color: #666666; font-family: ";Segoe UI";, sans-serif; font-size: 10.5pt;">The operation will require ;one VM to create a base image from the platform image, and then a second VM to modify the 30GB image to something larger.<u></u><u></u></span></div>
<ol start="1" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px; margin-bottom: 0cm; margin-top: 0cm; outline: 0px;" type="1">
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #666666; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Deploy 2 VMs using Windows Server 2008 R2 image<u></u><u></u></span></li>
</ol>
<ol start="1" style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px; margin-bottom: 0cm; margin-top: 0cm;" type="1">
<ul style="margin-bottom: 0cm; margin-top: 0cm;" type="disc">
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #666666; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">VM1: Imaging VM<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #666666; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">VM2: Worker VM<u></u><u></u></span></li>
</ul>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #666666; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">On VM1 – Imaging VM<u></u><u></u></span>
<ul style="margin-bottom: 0cm; margin-top: 0cm;" type="disc">
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Connect to VM1 as administrator<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Run sysprep to generalize the image: ; sysprep.exe /generalize /oobe /shutdown<u></u><u></u></span></li>
</ul>
</li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #666666; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">From Azure Portal<u></u><u></u></span>
<ul style="margin-bottom: 0cm; margin-top: 0cm;" type="disc">
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Note the URL to the VHD for VM1 (from portal under Virtual Machines<span> ;</span><span style="border: 1pt none windowtext; padding: 0cm;">à</span><span> ;</span>Disks)<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Delete VM1<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Delete the disk object in the portal for VM1. (This is needed to release the lease on the blob that contains the VHD for VM1)<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Attach data drive to VM2 that will be used to process the VHD image. This drive should be large enough to hold the original image and the expanded image that you will create. The commands to create an empty data disk are: Virtual Machines<span> ;</span><span style="border: 1pt none windowtext; padding: 0cm;">à</span>Select VM<span> ;</span><span style="border: 1pt none windowtext; padding: 0cm;">à</span><span> ;</span>Attach<span> ;</span><span style="border: 1pt none windowtext; padding: 0cm;">à</span><span> ;</span>Attach empty disk<u></u><u></u></span></li>
</ul>
</li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #666666; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">On VM2 – Worker VM<u></u><u></u></span>
<ul style="margin-bottom: 0cm; margin-top: 0cm;" type="disc">
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Connect to VM as administrator<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Format the data disk<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Install<span> ;</span><a data-saferedirecturl="https://www.google.com/url?hl=en-GB&;q=http://clumsyleaf.com/products/cloudxplorer&;source=gmail&;ust=1477392949442000&;usg=AFQjCNGsU4IE1Z-bmVSajZYX1pOVkFPvwA" href="http://clumsyleaf.com/products/cloudxplorer" style="color: #1155cc;" target="_blank"><span style="border: 1pt none windowtext; color: #4a91ac; padding: 0cm;">CloudXplorer</span></a><span> ;</span>or other Windows Azure storage management tool. You will also need to install .NET 3.5 on the VM before installing CloudXplorer.<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Download the VHD as noted in step 3 above<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Install a VHD Utility such as<span> ;</span><a data-saferedirecturl="https://www.google.com/url?hl=en-GB&;q=http://vmtoolkit.com/files/default.aspx&;source=gmail&;ust=1477392949443000&;usg=AFQjCNFD2HQ67X0U5TlLgFrXyWr3cy0qgA" href="http://vmtoolkit.com/files/default.aspx" style="color: #1155cc;" target="_blank"><span style="border: 1pt none windowtext; color: #4a91ac; padding: 0cm;">VMResizer</span></a><u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Use VHD management tool to extend the VHD to the desired size<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Mount the expanded VHD on VM2 using Disk Management: Disk Management MMC<span> ;</span><span style="border: 1pt none windowtext; padding: 0cm;">à</span><span> ;</span>Action<span> ;</span><span style="border: 1pt none windowtext; padding: 0cm;">à</span><span> ;</span>Attach VHD<span> ;</span><span style="border: 1pt none windowtext; padding: 0cm;">à</span><span> ;</span>Enter path to expanded VHD<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Use Disk Management MMC to extend the volume to fill out the entire disk.<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Detach the expanded VHD using the commands: Disk Management MMC<span> ;</span><span style="border: 1pt none windowtext; padding: 0cm;">à</span><span> ;</span>Right-click on disk<span> ;</span><span style="border: 1pt none windowtext; padding: 0cm;">à</span><span> ;</span>Detach VHD<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Upload the extended VHD back to the blob store as a PAGE BLOB. You could also use CSUpload for this step. CSUpload will be faster, but it is yet another tool that you would need to install on VM2.<u></u><u></u></span></li>
</ul>
</li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #666666; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">From Azure Portal<u></u><u></u></span>
<ul style="margin-bottom: 0cm; margin-top: 0cm;" type="disc">
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Shutdown VM2<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Detach both data disks that were attached to VM2<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Delete the disk object in the portal for both the extended image and the data disk<u></u><u></u></span></li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Add the extended image back as an image using the commands:<span> ;</span><span style="border: 1pt none windowtext; padding: 0cm;"> ;</span>Virtual Machines<span> ;</span><span style="border: 1pt none windowtext; padding: 0cm;">à</span>Images<span> ;</span><span style="border: 1pt none windowtext; padding: 0cm;">à</span><span> ;</span>Create Image<u></u><u></u></span></li>
</ul>
</li>
<li style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #666666; font-style: inherit; font-weight: inherit; line-height: 13.15pt; margin: 0px 0px 0px 15px; outline: 0px;"><span style="font-family: inherit, serif; font-size: 10.5pt;">Cleanup all VMs and VHDs other than the extended image</span></li>
</ol>
</div>

