天蓝色自动化:'Invoke-ProcessASDatabase' 未被识别
azure automation: 'Invoke-ProcessASDatabase' is not recognized
我正在尝试使用 Azure 自动化帐户中的 Runbook 来处理 Azure Analysis Service 多维数据集。
我关注了 Microsoft 博客 https://docs.microsoft.com/en-us/azure/automation/automation-runbook-gallery。
但是我在测试时收到了以下错误信息。我的 runbook 脚本如下: 你能帮忙吗?
Runbook 脚本:
$SPCredential = Get-AutomationPSCredential -Name "TestCred"
$null = Invoke-ProcessASDatabase -databasename "SalesCube" -server "asazure://xx" -RefreshType "Full" -Credential $SPCredential
Write-Output "Done"
错误信息:
Invoke-ProcessASDatabase : The term 'Invoke-ProcessASDatabase' is not
recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:5 char:9
+ $null = Invoke-ProcessASDatabase -databasename "SalesCube" -ser ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Invoke-ProcessASDatabase:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
这似乎是今天早上 Azure 自动化的一个问题。我有一个已成功完成数周的运行手册,今天它失败了,并显示了 OP 报告的相同错误消息。我已经打开了 MS 的支持票。如果这是一个普遍的问题,也许他们很快就会有解决办法。
--mf
感谢您报告此问题。我们今天早上向 Microsoft 报告了此线程。
以下回答来自 Microsoft Azure 经理:
An issue has been identified with the .Net version for Azure
Automation sandboxes that released a lower version then what was used
previously. An update is rolling out to support .Net 4.6 that should
resolve issues with PowerShell modules depending on a version on or
above .Net 4.5. It is currently planned to be rolled out to all
regions by next Monday (the 5th).
希望对您有所帮助。
我正在尝试使用 Azure 自动化帐户中的 Runbook 来处理 Azure Analysis Service 多维数据集。
我关注了 Microsoft 博客 https://docs.microsoft.com/en-us/azure/automation/automation-runbook-gallery。
但是我在测试时收到了以下错误信息。我的 runbook 脚本如下: 你能帮忙吗?
Runbook 脚本:
$SPCredential = Get-AutomationPSCredential -Name "TestCred"
$null = Invoke-ProcessASDatabase -databasename "SalesCube" -server "asazure://xx" -RefreshType "Full" -Credential $SPCredential
Write-Output "Done"
错误信息:
Invoke-ProcessASDatabase : The term 'Invoke-ProcessASDatabase' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:5 char:9 + $null = Invoke-ProcessASDatabase -databasename "SalesCube" -ser ... + ~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Invoke-ProcessASDatabase:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
这似乎是今天早上 Azure 自动化的一个问题。我有一个已成功完成数周的运行手册,今天它失败了,并显示了 OP 报告的相同错误消息。我已经打开了 MS 的支持票。如果这是一个普遍的问题,也许他们很快就会有解决办法。 --mf
感谢您报告此问题。我们今天早上向 Microsoft 报告了此线程。
以下回答来自 Microsoft Azure 经理:
An issue has been identified with the .Net version for Azure Automation sandboxes that released a lower version then what was used previously. An update is rolling out to support .Net 4.6 that should resolve issues with PowerShell modules depending on a version on or above .Net 4.5. It is currently planned to be rolled out to all regions by next Monday (the 5th).
希望对您有所帮助。