Change the Configuration of a VM role
Updated: March 8, 2011
[The VM Role feature of Windows Azure is being retired on May 15th, 2013. After the retirement date, VM role deployments will be deleted. To move forward with your existing applications, you can use Windows Azure Virtual Machines. For more information about using Virtual Machines for your application, see Moving from VM Role to Windows Azure Virtual Machines.
You use the CSUpload Command-Line Tool to assign the differencing VHD as a child to the base VHD in Windows Azure. You must know the subscription identifier and the management certificate thumbprint. You can find the identifier and the thumbprint in the Properties pane for the subscription in the Windows Azure Management Portal.
When you upload a differencing VHD to Windows Azure, you see the following message in the command-prompt window:
Before the image ‘DiffName.vhd’ can be deployed it must be associated with a parent image. You must assign the differencing VHD image that you created as the child of the base VHD image in Windows Azure.
If you have not already opened a command-prompt window and set the connection string, open a Windows Azure SDK Command Prompt window as an administrator.
Set the connection string by using the following command and replacing SubscriptionId and CertThumbprint with the values from your subscription:
csupload Set-Connection "SubscriptionId=SubscriptionId;CertificateThumbprint=CertThumbprint;ServiceManagementEndpoint=https://management.core.windows.net"
Set the differencing VHD as the child of the base VHD by using the following command and replacing the file names:
csupload Set-Parent –Child differencing.vhd –Parent base.vhd
You must also change the configuration of the VM role in Windows Azure so that the hosted service is using the differencing VHD.
Select the Deployment of your application in the Management Portal, and then click Configure.
Select Edit current configuration.
Change the value of the OsImage setting to the name of the differencing VHD.
Click OK. The deployment will be updated.