【问题标题】:VSTS PowerShell Task and Azure AD cmdletsVSTS PowerShell 任务和 Azure AD cmdlet
【发布时间】:2018-02-09 16:10:38
【问题描述】:

我想在部署期间使用 VSTS 版本中的 PowerShell 脚本任务运行 PowerShell 脚本。我需要对 Azure Active Directory 进行一些操作,但现在我无法访问它,尽管在本地运行正常。

例如运行 Get-AzureRmADApplication 会给出“权限不足,无法完成操作”。

对此问题有什么解决方案或建议?

P。 S. 其实我是在使用 Azure PowerShell 任务。

【问题讨论】:

  • 我提交反馈(在我的答案中更新)。

标签: powershell azure azure-pipelines-release-pipeline


【解决方案1】:

我可以重现这个问题,有一个类似的问题:New-AzureRmADApplication: Access denied to the specified API version

我提交了一个新问题Get-AzureRmADApplication Access denied to the specified API version,你可以关注它。

【讨论】:

    【解决方案2】:

    当针对 Azure Active Directory 运行命令时,您必须授予它在 Azure Active Directory 中以读取目录权限运行的应用程序。

    【讨论】:

      猜你喜欢
      • 2023-03-11
      • 2014-10-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多