Add-AzureRmVhd抛出同步错误

问题描述 投票:0回答:1

我想在azure自动化PowerShell工作流程中使用以下命令上传VHD:

Add-AzureRmVhd -DefaultProfile $Profile -LocalFilePath $Filepath-Destination $DestUri-ResourceGroupName $RGName

我一直收到以下错误:

Object synchronization method was called from an unsynchronized block of code.

知道为什么会发生这种情况吗?

powershell azure azure-automation
1个回答
0
投票

我刚刚删除了-DefaultProfile参数,它开始工作。我仍然不确定为什么它使用DefaultProfile参数给出错误

© www.soinside.com 2019 - 2024. All rights reserved.