[英]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 命令来更新服务主体的声明,如下面的屏幕截图所示:-
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.