Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell Azure自动化分析服务处理_Powershell_Azure Automation_Azure Analysis Services_Azure Authentication - Fatal编程技术网

Powershell Azure自动化分析服务处理

Powershell Azure自动化分析服务处理,powershell,azure-automation,azure-analysis-services,azure-authentication,Powershell,Azure Automation,Azure Analysis Services,Azure Authentication,我在尝试使用Azure自动化处理Azure Analysis Services中的表时遇到了一个意外错误。我遵循了一个教程,建议将PowerShell Gallery模块-SQLServer与调用ProcessTable一起使用。我在Azure自动化中的最终代码如下所示: $AzureCred = Get-AutomationPSCredential -Name "ks" Add-AzureRmAccount -Credential $AzureCred | Out-Null Invoke-Pr

我在尝试使用Azure自动化处理Azure Analysis Services中的表时遇到了一个意外错误。我遵循了一个教程,建议将PowerShell Gallery模块-SQLServer与
调用ProcessTable
一起使用。我在Azure自动化中的最终代码如下所示:

$AzureCred = Get-AutomationPSCredential -Name "ks"
Add-AzureRmAccount -Credential $AzureCred | Out-Null
Invoke-ProcessTable -Credential $AzureCred -DatabaseName DBNAME -RefreshType 
"Full" -Server SERVERNAME -TableName TABLENAME
不幸的是,我总是以:

Invoke-ProcessTable : Exception has been thrown by the target of an invocation.
At line:25 char:1
+ Invoke-ProcessTable -Credential $AzureCred -DatabaseName DBNAME -R ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Invoke-ProcessTable], TargetInvocationException
    + FullyQualifiedErrorId : 
System.Reflection.TargetInvocationException,Microsoft.AnalysisServices.PowerShell.Cmdlets.ProcessTable
此外,我在本地测试了
Invoke ProcessTable
代码,效果非常好。使用的凭据是同时具有Analysis Services管理员访问权限和我们正在使用的订阅权限的人员的凭据

如果有任何建议,我将不胜感激