In the background, Azure is stopping the VM and creating a snapshot. Once executed, this may take a couple of minutes. You can see an example below of creating a snapshot for a VM called VM1 in the Demo resource group. The New-AzVmSnapshot only requires two parameters – the name of the VM and the resource group its located in. Once you’ve got a PowerShell console opened and authenticated to the Azure subscription where your VM lives, create a new snapshot with New-AzVmSnapshot. Run Install-Module AzureVMSnapshots to get the module downloaded and installed. Installing the AzureVMSnapshots module is easy since it’s available via the PowerShell Gallery.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |