Azure has many good feature and one thing I loved is that we
can attached VHD files and run the Virtual machines.
- For this need to have installed Microsoft Azure PowerShell (http://go.microsoft.com/fwlink/p/?linkid=320376&clcid=0x409)
 
- First we need to Prepare the VHD files to Upload to the Azure. To do that we need to run sysprep tool
 
- When the machine is powered on go to windows/system32/sysprep and run the sysprep.exe
 
- Next we need to create a storage
 - Sign in to the Azure Management Portal
 - On the command bar, click New.
 - Click Data Services > Storage > Quick Create. And give a name and create a new storage.
 - Next open the storage and go to containers. And create a new container
 
- Enable Debug mode so it will give more detials about the process.
 
- Login to Windows Azure subscription
 
          # Add-AzureAccount 
- Get Azure publisher settings
 
          # Get-AzurePublishSettingsFile
- Import azure publisher Files
 
          # Import-AzurePublishSettingsFile –PublishSettingsFile Pay-As-You-Go-6-11-2015-credentials.publishsettings
   EG :  #Import-AzurePublishSettingsFile –PublishSettingsFile C:\Users\user\Downloads\Pay-As-You-Go-6-11-2015-credentials.publishsettings
- Upload the VHD files
 
            # add-AzureVhd –LocalFilePath /Filepath/vhdfileneame.vhd -NumberOfUploaderThreads 36 -Destination "blobspace "
            # add-AzureVhd -LocalFilePath F:\Virtual_Hard_Disks\2012R3A_OS.vhd -NumberOfUploaderThreads 36 -Destination https://rir.blob.core.windows.net/vhds/2012R3A_OS.vhd

 
0 comments:
Post a Comment