I create image with cmd:
Save-AzureVMImage -ServiceName $vm.ServiceName -Name $vm.Name -ImageName $targetImageName -OSState Specialized -Verbose
providing ossstate is required for restoring multiple discs
then I restore image with option:
when we create Image with specialized and restore it we do not have x509 certificate for Cloud Service
I need certificate for remotly running scripts
the image is restored with option:
New-AzureQuickVM -ImageName $vm.ImageName -Windows -ServiceName $service.Name -Location "West Europe" -Name $targetVmName -InstanceSize $vmSize -EnableWinRMHttp -Verbose
WinRm is enabled on machine before and after restoring
Why there is no Certificate in CloudService?