azure 自动化: 'Invoke-ProcessASDatabase' is not recognized

标签 azure azure-sql-database azure-powershell

我正在尝试使用 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/

相关文章:

php - 使用php将csv上传到windows azure存储

azure - Key Vault 引用限制

sql-server - Azure SQL 数据库触发器将审核信息插入 Azure 表

sql-server - 我们所有的azure Sql服务器地址都指向同一个地方

sql-server - SSMS "Windows logins are not supported in this version of SQL Server"

azure - 添加 key 保管库访问权限,同时保留现有权限

azure - 使用脚本重新创建 cosmos DB

python - Azure blob 下载授权资源类型不匹配

azure - 禁用存储帐户的加密

azure - 我可以为在 westeurope.cloudapp.azure.com 子域的 Azure VM 中运行的网站获取 SSL 证书吗