SlideShare a Scribd company logo
Steps to Resize a Windows Azure VM’s Root/C Drive
This was originally created by Drew McDaniel and Corey Sanders at Microsoft, so all credit goes to them. I’ve
simply filled in all of the questions and cleaned it up for publishing with my other Azure Gotcha’s Blog Entry.
Find their original entry here.
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.
1. Deploy 2 VMs using Windows Server 2008 R2 image
 VM1: Original (Out of Space) VM
 VM2: Resizer VM
2. From Azure Portal
 Note the URL to the VHD’s OS Disk for VM1 (from portal under Virtual
Machines  Disks)
 Delete VM1 from under Virtual Machines (do not delete the underlying
VHD OS Disk)
 Delete the VM1 OS Disk object in the portal for VM1 – when asked,
leave the Blob that = the VHD. Deleting the disk isn’t the same as
deleting the actual VHD file…that’s still there as a Blob file (This is
needed to release the lease on the blob that contains the VHD for VM1)
 Create a new disk to store the VM1 OS Disk VHD file by clicking
Attach Empty Disk on VM2…call it “VHD Download.” Virtual Machines
 Select VM  Attach  Attach empty disk
 Create another new disk called “Expanded VHD Drive” to store the
newly-created VM1 OS Disk VHD file using Attach Empty Disk on
VM2. This drive should be large enough to hold the original VHD OS
image and the new expanded OS image that you will create. Virtual
Machines  Select VM  Attach  Attach empty disk
3. Remote into VM2 – Resizer VM
 Connect to VM2 as administrator
 Open Admin Tools, Computer Management, Disk
Management…Attach to the new disks and format them etc.
 Install CloudXplorer, Cloud Storage Studio 2 (My personal favorite) or
another Windows Azure storage management tool. You will also
need to install .NET 3.5 on the VM before installing CloudXplorer or
Cloud Storage Studio 2.
 Set up the Azure Subscription in the Cloud Tool
 Set up the Azure Storage Account in the Cloud Tool (you can do this
directly, you don’t have to do the entire Subscription if you don’t want to)
 Download the VM1 VHD to the “VHD Download” drive you created
earlier
 Install a VHD Utility such as VMResizer
 Use VHD Resizer to extend the VHD to the desired size using Open,
point to the downloaded .VHD file, specify the new file to be saved
on the 2nd
“Expanded VHD Drive” and give it a size (Do NOT exceed
128 GB…there is a 128GB limit for all OS VHDs and you will feel sick if
you create it larger, upload it, and then can’t create your VM
afterwards!!)
 Use your Cloud Management Tool to Upload the new extended VHD
back to the Storage Account, 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. Depending on
the tool that you use, you might get a Failed to Upload pretty
quickly…just try to do it again and make sure you’re specifying PAGE
BLOB, not just File Upload.
4. From Azure Portal
 Once the upload completes, Shutdown VM2
 Detach both data disks that were attached to VM2
 Delete the disk object in the portal for both the extended image and
the data disk (remember this doesn’t delete the VHD blobs, just the Disks
and their attachment to VM2)
 Add the extended OS image back as a disk using the
commands: Virtual Machines  Disks  Create Disk
5. Create a New VM like you normally would, but this time point to the new
OS Disk you just created. You can also point to just the disk instead of the
Image if you’d like. Make sure to name the VM exactly the same as the old
machine…if you give it a new name, you won’t be able to connect to it!!!
6. Boot your New VM and RDP into it
7. Open Disk Manager…you will see there is a new unformatted partition next
to C, but on the same disk
8. Go download the free utility by AOMEI called Partition Assistant Server &
Lite Toolkit from http://www.disk-partition.com/download-server.html. You
only need to install the Lite version, don’t install the Demo
9. Open PA Lite and click the C drive – drag the size to the end of the disk,
which will expand it to use the full space you resized earlier
10.Hit Apply, and watch the magic happen. Your C drive is now the full 100GB
or whatever you specified
11.Cleanup all VMs and VHDs other than the extended image

More Related Content

What's hot

Centos Installtion in Virtual box
Centos Installtion in Virtual boxCentos Installtion in Virtual box
Centos Installtion in Virtual box
Rocky Singh
 
Wos portable help
Wos portable helpWos portable help
Wos portable help
Kevin Chilton
 
setting up v ms
 setting up v ms setting up v ms
setting up v ms
chigio
 
Virtual Box Presentation
Virtual Box Presentation Virtual Box Presentation
Virtual Box Presentation
Pete DuMelle
 
Local Kubernetes for Dummies: STLLUG March 2021
Local Kubernetes for Dummies: STLLUG March 2021Local Kubernetes for Dummies: STLLUG March 2021
Local Kubernetes for Dummies: STLLUG March 2021
Andrew Denner
 
V mware error
V mware errorV mware error
V mware error
Praveen Raut
 
Virtualization
VirtualizationVirtualization
Virtualization
Yansi Keim
 
Deploying an open source private cloud on a shoe string budget presentation
Deploying an open source private cloud on a shoe string budget presentationDeploying an open source private cloud on a shoe string budget presentation
Deploying an open source private cloud on a shoe string budget presentation
Vijayabalan Open to Explore
 
Creating a new virtual machine
Creating a new virtual machineCreating a new virtual machine
Creating a new virtual machine
jhonmariocasas
 
1 Windows 7 And Windows Xp Mode
1 Windows 7 And Windows Xp Mode1 Windows 7 And Windows Xp Mode
1 Windows 7 And Windows Xp Mode
johnbakerMS
 
FIWARE Tech Summit - FIWARE Lab Cloud
FIWARE Tech Summit - FIWARE Lab CloudFIWARE Tech Summit - FIWARE Lab Cloud
FIWARE Tech Summit - FIWARE Lab Cloud
FIWARE
 
1 installing ubuntu1404-lts_on_virtualbox
1 installing ubuntu1404-lts_on_virtualbox1 installing ubuntu1404-lts_on_virtualbox
1 installing ubuntu1404-lts_on_virtualbox
Kichiemon Adachi
 
Virtual machine
Virtual machineVirtual machine
Virtual machine
Theron Gilmer
 
Virtual box
Virtual boxVirtual box
Virtual box
Mohd Tousif
 
Using Virtual P C 2007
Using  Virtual  P C 2007Using  Virtual  P C 2007
Using Virtual P C 2007
Luis Barreto
 
SysInternals Disk2vhd - docs.pdf
SysInternals Disk2vhd - docs.pdfSysInternals Disk2vhd - docs.pdf
SysInternals Disk2vhd - docs.pdf
htdvul
 
FIWARE Lab Cloud Portal
FIWARE Lab Cloud PortalFIWARE Lab Cloud Portal
FIWARE Lab Cloud Portal
José Ignacio Carretero Guarde
 
Quick Starter Guide For Lotus Foundations Trial
Quick Starter Guide For Lotus Foundations TrialQuick Starter Guide For Lotus Foundations Trial
Quick Starter Guide For Lotus Foundations Trial
Chris Sparshott
 
Create virtual machine_v_mware_workstation_player_12
Create virtual machine_v_mware_workstation_player_12Create virtual machine_v_mware_workstation_player_12
Create virtual machine_v_mware_workstation_player_12
Minh Tam Nguyen
 
How to install centos on vitualbox in redhat linux
How to install centos on vitualbox in redhat linuxHow to install centos on vitualbox in redhat linux
How to install centos on vitualbox in redhat linux
ilias ahmed
 

What's hot (20)

Centos Installtion in Virtual box
Centos Installtion in Virtual boxCentos Installtion in Virtual box
Centos Installtion in Virtual box
 
Wos portable help
Wos portable helpWos portable help
Wos portable help
 
setting up v ms
 setting up v ms setting up v ms
setting up v ms
 
Virtual Box Presentation
Virtual Box Presentation Virtual Box Presentation
Virtual Box Presentation
 
Local Kubernetes for Dummies: STLLUG March 2021
Local Kubernetes for Dummies: STLLUG March 2021Local Kubernetes for Dummies: STLLUG March 2021
Local Kubernetes for Dummies: STLLUG March 2021
 
V mware error
V mware errorV mware error
V mware error
 
Virtualization
VirtualizationVirtualization
Virtualization
 
Deploying an open source private cloud on a shoe string budget presentation
Deploying an open source private cloud on a shoe string budget presentationDeploying an open source private cloud on a shoe string budget presentation
Deploying an open source private cloud on a shoe string budget presentation
 
Creating a new virtual machine
Creating a new virtual machineCreating a new virtual machine
Creating a new virtual machine
 
1 Windows 7 And Windows Xp Mode
1 Windows 7 And Windows Xp Mode1 Windows 7 And Windows Xp Mode
1 Windows 7 And Windows Xp Mode
 
FIWARE Tech Summit - FIWARE Lab Cloud
FIWARE Tech Summit - FIWARE Lab CloudFIWARE Tech Summit - FIWARE Lab Cloud
FIWARE Tech Summit - FIWARE Lab Cloud
 
1 installing ubuntu1404-lts_on_virtualbox
1 installing ubuntu1404-lts_on_virtualbox1 installing ubuntu1404-lts_on_virtualbox
1 installing ubuntu1404-lts_on_virtualbox
 
Virtual machine
Virtual machineVirtual machine
Virtual machine
 
Virtual box
Virtual boxVirtual box
Virtual box
 
Using Virtual P C 2007
Using  Virtual  P C 2007Using  Virtual  P C 2007
Using Virtual P C 2007
 
SysInternals Disk2vhd - docs.pdf
SysInternals Disk2vhd - docs.pdfSysInternals Disk2vhd - docs.pdf
SysInternals Disk2vhd - docs.pdf
 
FIWARE Lab Cloud Portal
FIWARE Lab Cloud PortalFIWARE Lab Cloud Portal
FIWARE Lab Cloud Portal
 
Quick Starter Guide For Lotus Foundations Trial
Quick Starter Guide For Lotus Foundations TrialQuick Starter Guide For Lotus Foundations Trial
Quick Starter Guide For Lotus Foundations Trial
 
Create virtual machine_v_mware_workstation_player_12
Create virtual machine_v_mware_workstation_player_12Create virtual machine_v_mware_workstation_player_12
Create virtual machine_v_mware_workstation_player_12
 
How to install centos on vitualbox in redhat linux
How to install centos on vitualbox in redhat linuxHow to install centos on vitualbox in redhat linux
How to install centos on vitualbox in redhat linux
 

Similar to Azure vm resizing the os disk

Booting an image as a forensically sound vm in virtual box
Booting an image as a forensically sound vm in virtual boxBooting an image as a forensically sound vm in virtual box
Booting an image as a forensically sound vm in virtual box
Brent Muir
 
Dual boot with a vhd final
Dual boot with a vhd finalDual boot with a vhd final
Dual boot with a vhd final
Osimondo
 
12849144 how-to-install-a-cccam-server-on-windows
12849144 how-to-install-a-cccam-server-on-windows12849144 how-to-install-a-cccam-server-on-windows
12849144 how-to-install-a-cccam-server-on-windows
rajuy2r
 
The Holy Grail of Deployment
The Holy Grail of DeploymentThe Holy Grail of Deployment
The Holy Grail of Deployment
Stuart King
 
Creating a gallery image for Azure marketplace
Creating a gallery image for Azure marketplaceCreating a gallery image for Azure marketplace
Creating a gallery image for Azure marketplace
Alexey Bokov
 
Booting from VHD
Booting from VHDBooting from VHD
Booting from VHD
Andre Debilloez
 
NativeBoot-RatanM
NativeBoot-RatanMNativeBoot-RatanM
NativeBoot-RatanM
Ratan Mohapatra
 
WinConnections Spring, 2011 - Deploying Windows 7 without the Ridiculous Micr...
WinConnections Spring, 2011 - Deploying Windows 7 without the Ridiculous Micr...WinConnections Spring, 2011 - Deploying Windows 7 without the Ridiculous Micr...
WinConnections Spring, 2011 - Deploying Windows 7 without the Ridiculous Micr...
Concentrated Technology
 
Deploying w7
Deploying w7Deploying w7
Manual 70-410 _Yves
Manual 70-410 _YvesManual 70-410 _Yves
Manual 70-410 _Yves
Yves Mukusa
 
TechMentor Fall, 2011 - WDS Tricks You Didn't Know
TechMentor Fall, 2011 - WDS Tricks You Didn't KnowTechMentor Fall, 2011 - WDS Tricks You Didn't Know
TechMentor Fall, 2011 - WDS Tricks You Didn't Know
Concentrated Technology
 
TDF Professional Conf 2010 - Rapid Windows 7 Deployments
TDF Professional Conf 2010 - Rapid Windows 7 DeploymentsTDF Professional Conf 2010 - Rapid Windows 7 Deployments
TDF Professional Conf 2010 - Rapid Windows 7 Deployments
jimboks
 
Practical Implementation of Virtual Machine
Practical Implementation of Virtual MachinePractical Implementation of Virtual Machine
Practical Implementation of Virtual Machine
Rubal Sagwal
 
groupProject-1-Win8
groupProject-1-Win8groupProject-1-Win8
groupProject-1-Win8
Ratan Mohapatra
 
Running virtual box from the linux command line
Running virtual box from the linux command lineRunning virtual box from the linux command line
Running virtual box from the linux command line
Eric Javier Espino Man
 
fast_bitcoin_data_mining
fast_bitcoin_data_miningfast_bitcoin_data_mining
fast_bitcoin_data_mining
Jason Papapanagiotakis
 
VirtualBox Ubuntu Host Windows Guest
VirtualBox Ubuntu Host Windows GuestVirtualBox Ubuntu Host Windows Guest
VirtualBox Ubuntu Host Windows Guest
aindilis
 
running windows 8.1 on VirtualBox tutorial
running windows 8.1 on VirtualBox tutorialrunning windows 8.1 on VirtualBox tutorial
running windows 8.1 on VirtualBox tutorial
捷恩 蔡
 
WDS-Project-RatanMohapatra
WDS-Project-RatanMohapatraWDS-Project-RatanMohapatra
WDS-Project-RatanMohapatra
Ratan Mohapatra
 
Tech X Virtualization Tips
Tech X Virtualization TipsTech X Virtualization Tips
Tech X Virtualization Tips
Youssef EL HADJ
 

Similar to Azure vm resizing the os disk (20)

Booting an image as a forensically sound vm in virtual box
Booting an image as a forensically sound vm in virtual boxBooting an image as a forensically sound vm in virtual box
Booting an image as a forensically sound vm in virtual box
 
Dual boot with a vhd final
Dual boot with a vhd finalDual boot with a vhd final
Dual boot with a vhd final
 
12849144 how-to-install-a-cccam-server-on-windows
12849144 how-to-install-a-cccam-server-on-windows12849144 how-to-install-a-cccam-server-on-windows
12849144 how-to-install-a-cccam-server-on-windows
 
The Holy Grail of Deployment
The Holy Grail of DeploymentThe Holy Grail of Deployment
The Holy Grail of Deployment
 
Creating a gallery image for Azure marketplace
Creating a gallery image for Azure marketplaceCreating a gallery image for Azure marketplace
Creating a gallery image for Azure marketplace
 
Booting from VHD
Booting from VHDBooting from VHD
Booting from VHD
 
NativeBoot-RatanM
NativeBoot-RatanMNativeBoot-RatanM
NativeBoot-RatanM
 
WinConnections Spring, 2011 - Deploying Windows 7 without the Ridiculous Micr...
WinConnections Spring, 2011 - Deploying Windows 7 without the Ridiculous Micr...WinConnections Spring, 2011 - Deploying Windows 7 without the Ridiculous Micr...
WinConnections Spring, 2011 - Deploying Windows 7 without the Ridiculous Micr...
 
Deploying w7
Deploying w7Deploying w7
Deploying w7
 
Manual 70-410 _Yves
Manual 70-410 _YvesManual 70-410 _Yves
Manual 70-410 _Yves
 
TechMentor Fall, 2011 - WDS Tricks You Didn't Know
TechMentor Fall, 2011 - WDS Tricks You Didn't KnowTechMentor Fall, 2011 - WDS Tricks You Didn't Know
TechMentor Fall, 2011 - WDS Tricks You Didn't Know
 
TDF Professional Conf 2010 - Rapid Windows 7 Deployments
TDF Professional Conf 2010 - Rapid Windows 7 DeploymentsTDF Professional Conf 2010 - Rapid Windows 7 Deployments
TDF Professional Conf 2010 - Rapid Windows 7 Deployments
 
Practical Implementation of Virtual Machine
Practical Implementation of Virtual MachinePractical Implementation of Virtual Machine
Practical Implementation of Virtual Machine
 
groupProject-1-Win8
groupProject-1-Win8groupProject-1-Win8
groupProject-1-Win8
 
Running virtual box from the linux command line
Running virtual box from the linux command lineRunning virtual box from the linux command line
Running virtual box from the linux command line
 
fast_bitcoin_data_mining
fast_bitcoin_data_miningfast_bitcoin_data_mining
fast_bitcoin_data_mining
 
VirtualBox Ubuntu Host Windows Guest
VirtualBox Ubuntu Host Windows GuestVirtualBox Ubuntu Host Windows Guest
VirtualBox Ubuntu Host Windows Guest
 
running windows 8.1 on VirtualBox tutorial
running windows 8.1 on VirtualBox tutorialrunning windows 8.1 on VirtualBox tutorial
running windows 8.1 on VirtualBox tutorial
 
WDS-Project-RatanMohapatra
WDS-Project-RatanMohapatraWDS-Project-RatanMohapatra
WDS-Project-RatanMohapatra
 
Tech X Virtualization Tips
Tech X Virtualization TipsTech X Virtualization Tips
Tech X Virtualization Tips
 

Recently uploaded

Business storytelling: key ingredients to a story
Business storytelling: key ingredients to a storyBusiness storytelling: key ingredients to a story
Business storytelling: key ingredients to a story
Alexandra Fulford
 
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
hartfordclub1
 
How MJ Global Leads the Packaging Industry.pdf
How MJ Global Leads the Packaging Industry.pdfHow MJ Global Leads the Packaging Industry.pdf
How MJ Global Leads the Packaging Industry.pdf
MJ Global
 
Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
techboxsqauremedia
 
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
my Pandit
 
3 Simple Steps To Buy Verified Payoneer Account In 2024
3 Simple Steps To Buy Verified Payoneer Account In 20243 Simple Steps To Buy Verified Payoneer Account In 2024
3 Simple Steps To Buy Verified Payoneer Account In 2024
SEOSMMEARTH
 
BeMetals Investor Presentation_June 1, 2024.pdf
BeMetals Investor Presentation_June 1, 2024.pdfBeMetals Investor Presentation_June 1, 2024.pdf
BeMetals Investor Presentation_June 1, 2024.pdf
DerekIwanaka1
 
-- June 2024 is National Volunteer Month --
-- June 2024 is National Volunteer Month ---- June 2024 is National Volunteer Month --
-- June 2024 is National Volunteer Month --
NZSG
 
Hamster Kombat' Telegram Game Surpasses 100 Million Players—Token Release Sch...
Hamster Kombat' Telegram Game Surpasses 100 Million Players—Token Release Sch...Hamster Kombat' Telegram Game Surpasses 100 Million Players—Token Release Sch...
Hamster Kombat' Telegram Game Surpasses 100 Million Players—Token Release Sch...
SOFTTECHHUB
 
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdfikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
agatadrynko
 
The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...
Adam Smith
 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
fisherameliaisabella
 
The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...
The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...
The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...
ABHILASH DUTTA
 
buy old yahoo accounts buy yahoo accounts
buy old yahoo accounts buy yahoo accountsbuy old yahoo accounts buy yahoo accounts
buy old yahoo accounts buy yahoo accounts
Susan Laney
 
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdfikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
agatadrynko
 
Training my puppy and implementation in this story
Training my puppy and implementation in this storyTraining my puppy and implementation in this story
Training my puppy and implementation in this story
WilliamRodrigues148
 
Authentically Social by Corey Perlman - EO Puerto Rico
Authentically Social by Corey Perlman - EO Puerto RicoAuthentically Social by Corey Perlman - EO Puerto Rico
Authentically Social by Corey Perlman - EO Puerto Rico
Corey Perlman, Social Media Speaker and Consultant
 
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challengesEvent Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
Holger Mueller
 
Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
techboxsqauremedia
 
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Lviv Startup Club
 

Recently uploaded (20)

Business storytelling: key ingredients to a story
Business storytelling: key ingredients to a storyBusiness storytelling: key ingredients to a story
Business storytelling: key ingredients to a story
 
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf2024-6-01-IMPACTSilver-Corp-Presentation.pdf
2024-6-01-IMPACTSilver-Corp-Presentation.pdf
 
How MJ Global Leads the Packaging Industry.pdf
How MJ Global Leads the Packaging Industry.pdfHow MJ Global Leads the Packaging Industry.pdf
How MJ Global Leads the Packaging Industry.pdf
 
Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
 
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
Unveiling the Dynamic Personalities, Key Dates, and Horoscope Insights: Gemin...
 
3 Simple Steps To Buy Verified Payoneer Account In 2024
3 Simple Steps To Buy Verified Payoneer Account In 20243 Simple Steps To Buy Verified Payoneer Account In 2024
3 Simple Steps To Buy Verified Payoneer Account In 2024
 
BeMetals Investor Presentation_June 1, 2024.pdf
BeMetals Investor Presentation_June 1, 2024.pdfBeMetals Investor Presentation_June 1, 2024.pdf
BeMetals Investor Presentation_June 1, 2024.pdf
 
-- June 2024 is National Volunteer Month --
-- June 2024 is National Volunteer Month ---- June 2024 is National Volunteer Month --
-- June 2024 is National Volunteer Month --
 
Hamster Kombat' Telegram Game Surpasses 100 Million Players—Token Release Sch...
Hamster Kombat' Telegram Game Surpasses 100 Million Players—Token Release Sch...Hamster Kombat' Telegram Game Surpasses 100 Million Players—Token Release Sch...
Hamster Kombat' Telegram Game Surpasses 100 Million Players—Token Release Sch...
 
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdfikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
 
The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...
 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
 
The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...
The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...
The Evolution and Impact of OTT Platforms: A Deep Dive into the Future of Ent...
 
buy old yahoo accounts buy yahoo accounts
buy old yahoo accounts buy yahoo accountsbuy old yahoo accounts buy yahoo accounts
buy old yahoo accounts buy yahoo accounts
 
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdfikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
 
Training my puppy and implementation in this story
Training my puppy and implementation in this storyTraining my puppy and implementation in this story
Training my puppy and implementation in this story
 
Authentically Social by Corey Perlman - EO Puerto Rico
Authentically Social by Corey Perlman - EO Puerto RicoAuthentically Social by Corey Perlman - EO Puerto Rico
Authentically Social by Corey Perlman - EO Puerto Rico
 
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challengesEvent Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
Event Report - SAP Sapphire 2024 Orlando - lots of innovation and old challenges
 
Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
 
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
 

Azure vm resizing the os disk

  • 1. Steps to Resize a Windows Azure VM’s Root/C Drive This was originally created by Drew McDaniel and Corey Sanders at Microsoft, so all credit goes to them. I’ve simply filled in all of the questions and cleaned it up for publishing with my other Azure Gotcha’s Blog Entry. Find their original entry here. 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. 1. Deploy 2 VMs using Windows Server 2008 R2 image  VM1: Original (Out of Space) VM  VM2: Resizer VM 2. From Azure Portal  Note the URL to the VHD’s OS Disk for VM1 (from portal under Virtual Machines  Disks)  Delete VM1 from under Virtual Machines (do not delete the underlying VHD OS Disk)  Delete the VM1 OS Disk object in the portal for VM1 – when asked, leave the Blob that = the VHD. Deleting the disk isn’t the same as deleting the actual VHD file…that’s still there as a Blob file (This is needed to release the lease on the blob that contains the VHD for VM1)  Create a new disk to store the VM1 OS Disk VHD file by clicking Attach Empty Disk on VM2…call it “VHD Download.” Virtual Machines  Select VM  Attach  Attach empty disk  Create another new disk called “Expanded VHD Drive” to store the newly-created VM1 OS Disk VHD file using Attach Empty Disk on VM2. This drive should be large enough to hold the original VHD OS image and the new expanded OS image that you will create. Virtual Machines  Select VM  Attach  Attach empty disk 3. Remote into VM2 – Resizer VM  Connect to VM2 as administrator
  • 2.  Open Admin Tools, Computer Management, Disk Management…Attach to the new disks and format them etc.  Install CloudXplorer, Cloud Storage Studio 2 (My personal favorite) or another Windows Azure storage management tool. You will also need to install .NET 3.5 on the VM before installing CloudXplorer or Cloud Storage Studio 2.  Set up the Azure Subscription in the Cloud Tool  Set up the Azure Storage Account in the Cloud Tool (you can do this directly, you don’t have to do the entire Subscription if you don’t want to)  Download the VM1 VHD to the “VHD Download” drive you created earlier  Install a VHD Utility such as VMResizer  Use VHD Resizer to extend the VHD to the desired size using Open, point to the downloaded .VHD file, specify the new file to be saved on the 2nd “Expanded VHD Drive” and give it a size (Do NOT exceed 128 GB…there is a 128GB limit for all OS VHDs and you will feel sick if you create it larger, upload it, and then can’t create your VM afterwards!!)  Use your Cloud Management Tool to Upload the new extended VHD back to the Storage Account, 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. Depending on the tool that you use, you might get a Failed to Upload pretty quickly…just try to do it again and make sure you’re specifying PAGE BLOB, not just File Upload. 4. From Azure Portal  Once the upload completes, Shutdown VM2  Detach both data disks that were attached to VM2  Delete the disk object in the portal for both the extended image and the data disk (remember this doesn’t delete the VHD blobs, just the Disks and their attachment to VM2)
  • 3.  Add the extended OS image back as a disk using the commands: Virtual Machines  Disks  Create Disk 5. Create a New VM like you normally would, but this time point to the new OS Disk you just created. You can also point to just the disk instead of the Image if you’d like. Make sure to name the VM exactly the same as the old machine…if you give it a new name, you won’t be able to connect to it!!! 6. Boot your New VM and RDP into it 7. Open Disk Manager…you will see there is a new unformatted partition next to C, but on the same disk 8. Go download the free utility by AOMEI called Partition Assistant Server & Lite Toolkit from http://www.disk-partition.com/download-server.html. You only need to install the Lite version, don’t install the Demo 9. Open PA Lite and click the C drive – drag the size to the end of the disk, which will expand it to use the full space you resized earlier 10.Hit Apply, and watch the magic happen. Your C drive is now the full 100GB or whatever you specified 11.Cleanup all VMs and VHDs other than the extended image