Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Missing certificate after restoring image with PowerShell

$
0
0

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?



Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>