我想在azure自动化PowerShell工作流程中使用以下命令上传VHD:
Add-AzureRmVhd -DefaultProfile $Profile -LocalFilePath $Filepath-Destination $DestUri-ResourceGroupName $RGName
我一直收到以下错误:
Object synchronization method was called from an unsynchronized block of code.
知道为什么会发生这种情况吗?
我刚刚删除了-DefaultProfile参数,它开始工作。我仍然不确定为什么它使用DefaultProfile参数给出错误