我正在尝试使用 Azure 自动化帐户中的 Runbook 来处理 Azure Analysis Service 多维数据集。
我关注了微软博客https://learn.microsoft.com/en-us/azure/automation/automation-runbook-gallery .
但是我在测试时收到以下错误消息。我的 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
最佳答案
感谢您报告此问题。我们今天早上向 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 自动化: 'Invoke-ProcessASDatabase' is not recognized,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48496804/