November 2017
Intermediate to advanced
276 pages
7h 6m
English
Before doing any PowerShell stuff, you have to sysprep the VM as we did earlier. Once it is sysprepped, run the following cmdlets:
Stop-AzureRmVM -ResourceGroupName PacktPub -Name PacktPubVMPSSet-AzureRmVm -ResourceGroupName PacktPub -Name PacktPubVMPS -GeneralizedSave-AzureRmVMImage -ResourceGroupName PacktPub -Name PacktPubVMPS -DestinationContainerName vhds -VHDNamePrefix PacktPubImagePS