gpt4 book ai didi

azure - 使用 az cli 将贡献者角色分配给应用程序

转载 作者:行者123 更新时间:2023-12-03 01:21:46 26 4
gpt4 key购买 nike

我正在尝试使用以下命令将贡献者分配给应用程序:

az ad sp create-for-rbac -n "Terraform Cloud" --role Contributor --scopes /subscriptions/<id> --sdk-auth

我遇到以下问题:

Changing "Terraform-Cloud" to a valid URI of"http://Terraform-Cloud", which is the required format used forservice principal names Values of identifierUris property must use averified domain of the organization or its subdomain:'http://Terraform-Cloud'

知道如何解决这个问题吗?

最佳答案

关于这个link

Context
According to the announcement ofhttps://learn.microsoft.com/en-us/azure/active-directory/develop/reference-breaking-changes#appid-uri-in-single-tenant-applications-will-require-use-of-default-scheme-or-verified-domains,AAD service will block creating single tenant applications withinvalid idefntifierUris after 2021-10-15.

Impact
Azure CLI command az ad sp create-for-rbac before 2.25.0 whichsets invalid idefntifierUris will fails with 400 badrequest, such as

Values of identifierUris property must use a verified domain of theorganization or its subdomain: 'http://azure-cli-2021-10-20-03-53-05'

Solution
az ad sp create-for-rbac has been updated so that now itdoesn't create identifierUris at all (#18312). Please update to AzureCLI 2.25.0 or newer. We recommend always using the latest version.

所以我所做的是使用 az update 将我的 az cli 升级到最新版本

升级完成后,我运行了问题中提到的相同命令,一切都按预期工作。

关于azure - 使用 az cli 将贡献者角色分配给应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69694550/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com