r/AZURE•
jpier

Trying to upload a VHD having some issues.

Technical Question

I have a 170ish GB VHD I need to upload, I have tried uploading it through the portal but it keeps failing. I'm not trying to do it via powershell but keep getting an error message. Not having much luck with my google searches so I thought I would post here. Any help would be great. Thanks

PS C:\scripts> Add-AzureRmVhd -ResourceGroupName "rg_VHD_Prod" -Destination "https://vhdprod.blob.core.windows.net/vhds" -LocalFilePath "F:\Win7VMG.VHD"   -NumberOfUploaderThreads 5
Add-AzureRmVhd : https://vhdprod.blob.core.windows.net/vhds
Parameter name: Destination
At line:1 char:1
+ Add-AzureRmVhd -ResourceGroupName "rg_VHD_Prod" -Destination "https:/ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Add-AzureRmVhd], ArgumentOutOfRangeException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.StorageServices.AddAzureVhdCommand

Posted Dec 28, 2020, 5:06 PM UTC

14
DOMZE24•

You should use the new AZ modules and not the old deprecated ones (AzureRm)

You can also try using az cli

2
jpierOP•

I'll check those out. Thanks

1
Bleckfield•

Use storage explorer.

2
jpierOP•

I'll check that out. Thanks

1