【发布时间】:2020-08-15 17:03:58
【问题描述】:
我正在调用从这样的 Azure 自动化帐户下载 DSC 配置文件;
Export-AzureRmAutomationDscConfiguration -ResourceGroupName "GROUP_NAME" -AutomationAccountName "ACCOUNT_NAME" -Name $CurrentName -Force -OutputFolder $OutputFolder -ErrorAction Stop
但是调用失败并出现错误;
Export-AzureRmAutomationDscConfiguration : Unable to deserialize the response.
At line:27 char:9
+ Export-AzureRmAutomationDscConfiguration -Debug -ResourceGrou ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Export-AzureRmAutomationDscConfiguration], SerializationException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Automation.Cmdlet.ExportAzureAutomationDscConfiguration
使用-Debug 参数运行命令会显示部分下载的脚本,然后显示消息DATA TRUNCATED DUE TO SIZE。如果我手动下载脚本,它是 99Kb。
这才刚刚开始,文件下载起来还挺开心的。那么为什么现在会发生这个错误呢?
【问题讨论】:
-
不,我有几个星期没有时间测试它,但非常感谢您的建议
标签: azure powershell azure-powershell dsc