简体   繁体   English

Azure 编辑服务主体的必需声明

[英]Azure edit a required claim for service principal

how can i edit in azure for my enterprise application (service principal) the required claim with PowerShell?我如何在 azure 中为我的企业应用程序(服务主体)编辑 PowerShell 所需的声明? Tried code from the official docu: https://learn.microsoft.com/de-de/azure/active-directory/develop/active-directory-claims-mapping官方文档中的尝试代码: https://learn.microsoft.com/de-de/azure/active-directory/develop/active-directory-claims-mapping

if i execute the code Get-AzureADPolicy this error appears.如果我执行代码 Get-AzureADPolicy,则会出现此错误。 Of course i installed the Module AzureADPreview and connected to AzureAD.当然,我安装了模块 AzureADPreview 并连接到 AzureAD。

Get-AzureADPolicy : The term 'Get-AzureADPolicy' 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:1 char:1
+ Get-AzureADPolicy
+ ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-AzureADPolicy:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

The claim i want to edit via PowerShell:我想通过 PowerShell 编辑的声明: 在此处输入图像描述

• You can surely connect to Azure AD and execute the required powershell commands for updating the claims for a service principal as shown in the screenshot below: - • 您一定可以连接到 Azure AD 并执行所需的 powershell 命令来更新服务主体的声明,如下面的屏幕截图所示:-

Powershell执行

But as per your explanation, you were not able to get any output for 'Get-AzureADPolicy' .但是根据您的解释,您无法获得'Get-AzureADPolicy' 的任何 output 。 Thus, for that purpose, please execute the commands below in consecutive manner: -因此,为此,请连续执行以下命令:-

  ‘Disconnect-AzureAD’
  ‘Install-Module AzureADPreview -AllowClobber’
  ‘Install-Module AzureAD -AllowClobber’

Then restart the powershell and connect to Azure AD once again and then execute the 'Get-AzureADPolicy' , you should be able to get the required output.然后重新启动powershell并再次连接到Azure AD,然后执行'Get-AzureADPolicy' ,您应该能够获得所需的output。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过 Azure CLI 向服务主体添加组声明 - Adding a Groups Claim to a Service Principal via Azure CLI Azure 服务主体重置 - Azure service principal reset Azure 服务总线 - 未经授权的访问。 执行此操作需要“发送”声明 - Azure Service Bus - Unauthorized access. 'Send' claim(s) are required to perform this operation Azure 服务委托人访问多订阅 AD 帐户中的 App Insight 数据所需的权限 - Permissions required by Azure Service Principal to access App Insight data in a multi subscriptions AD Account 获取服务主体的 AZURE_CREDENTIALS - Get the AZURE_CREDENTIALS of a Service Principal Terraform - Azure 服务主体部署 - 权限不足 - Terraform - Azure Service Principal deployment - insufficient permissions Azure 服务主体使用 PowerShell 创建新证书 - Azure Service Principal create new certificate with PowerShell Azure PowerShell 将用户或组添加到服务主体 - Azure PowerShell add User or Group to Service Principal Azure Devops 服务负责人和 Azure 机器学习工作区 - Azure Devops Service Principal with Azure Machine Learning Workspace 从 Google 服务帐户模拟 Azure 服务主体 - Impersonate Azure Service Principal from a Google Service Account
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM