【发布时间】:2021-08-07 01:40:52
【问题描述】:
我正在尝试在一系列测试中使用 Invoke-DscResource cmdlet(使用 Pester)来查看配置是否已成功应用于 VM。
这工作 9/10 次,但有时会抛出以下错误:
==> azure-arm.dsc_node: Cannot invoke the Invoke-DscResource cmdlet. The Consistency Check or Pull cmdlet is in progress and must return
==> azure-arm.dsc_node: before Invoke-DscResource can be invoked. Use -Force option if that is available to cancel the current operation.
==> azure-arm.dsc_node: + CategoryInfo : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
==> azure-arm.dsc_node: + FullyQualifiedErrorId : MI RESULT 1
==> azure-arm.dsc_node: + PSComputerName : localhost
有没有办法强制调用 Invoke-DscResource cmdlet?
【问题讨论】:
标签: azure powershell powershell-2.0 dsc pester