Monday, October 5, 2015

Powershell command to Capture a VM as a VM Image:

You can capture a stopped VM as VM Image using Save-AzureImage

 Save-AzureVMImage -ServiceName "<CloudServiceName>"
                  -Name "<VmName>"
                  -OSState "<GeneralizedOrSpecialized>"
                  -NewImageName "<ImageName>"
                  -NewImageLabel "<ImageLabel>"


•for a Generalized VM- OSState= Generalized
•for a Specialized VM- OSState= Specalized

No comments:

Post a Comment