When you are done, select Review + create.Īfter validation passes, select Create to create the image. Under Replication, select a default replica count and then select any additional regions where you would like your image replicated. This date can be used to track when older images need to be retired. When authenticated, download the AzVmSnapshots module by running Install-Module AzVmSnapshots. After installation, you'll then need to connect to your Azure subscription using Connect-AzAccount. If you want this version to be included when you specify latest for the image version, then leave Exclude from latest unchecked. To use the AzVmSnapshots module, you'll need to install the Az module via Install-Module -Name Az. If this is the first version of this image, type 1.0.0. Select an image definition or select create new and provide a name and information for a new Image definition.Įnter an image version number. For more information, see Generalized and specialized images. In Operating system state select generalized or specialized. This is not recommended.įor Gallery details, select the gallery or create a new gallery by selecting Create new. If you want to delete the source VM after the image has been created, select Automatically delete this virtual machine after creating the image. The only other required information is a name for the image. The VM must have been generalized to create a managed image. To only create a managed image, select No, capture only a managed image. To create the image in a gallery, select Yes, share it to a gallery as an image version. If you want to use an existing gallery, select the resource group for the gallery you want to use. On the page for the VM, on the upper menu, select Capture.įor Resource group, either select Create new and enter a name, or select a resource group to use from the drop-down list. Go to the Azure portal, then search for and select Virtual machines. Legacy managed images are automatically marked as generalized. Shutdown the VM and then take a copy of the VM VHD (. If you want a copy of your VM, you can use either two methods. Once you mark a VM as generalized in Azure, you cannot restart the VM. Azure does not suppport Virtual Machine snapshot, know as snapshot or checkpoint for Hyper-V.
0 Comments
Leave a Reply. |