Hi,
I'm trying to upload a custom OS image that I can use to install new VM's, I've been following this guide: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/upload-generalized-managed
When I'll get to the point where I'm supposed to upload the .vhd file with<code class="lang-powershell" data-author-content="$rgName = "myResourceGroup? $urlOfUploadedImageVhd = "https://mystorageaccount.blob.core.windows.net/mycontainer/myUploadedVHD.vhd"
Add-AzVhd -ResourceGroupName $rgName -Destination $urlOfUploadedImageVhd ` -LocalFilePath ?C:\Users\Public\Documents\Virtual hard disks\myVHD.vhd? ?>Add-AzVhd, I'll get an error saying: "Add-AzVhd : Could not load file or assembly 'System.ServiceModel.Primitives,
Version=4.2.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified."
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.17763 N/A Build 17763
PSVersion: 5.1.17763.316
Any idea how to proceed?
Thank you!
<code class="lang-powershell" data-author-content="$rgName = "myResourceGroup? $urlOfUploadedImageVhd = "https://mystorageaccount.blob.core.windows.net/mycontainer/myUploadedVHD.vhd" Add-AzVhd -ResourceGroupName $rgName -Destination
$urlOfUploadedImageVhd ` -LocalFilePath ?C:\Users\Public\Documents\Virtual hard disks\myVHD.vhd? ?>