简体   繁体   English

配置线束成本管理报告时 Azure 服务原则创建失败

[英]Azure Service Principle Creation failing while configuring Harness Cost management report

I am configuring Harness Cost Management report for my Azure Dev subscription and getting the below error while creating the service principle.我正在为我的 Azure Dev 订阅配置 Harness Cost Management 报告,并在创建服务原则时收到以下错误。

When using this permission, the backing application of the service principal being created must in the local tenant使用此权限时,正在创建的服务主体的后备应用程序必须在本地租户中

Used below command to create Service Principle.使用以下命令创建服务原则。

az ad sp create --id 0211763d-24fb-4d63-865d-xxxxxxxxx

Here is the Harness link I am following for this setup https://docs.harness.io/article/7idbmchsim-set-up-cost-visibility-for-azure这是我为此设置关注的 Harness 链接https://docs.harness.io/article/7idbmchsim-set-up-cost-visibility-for-azure

How can I resolve this issue?我该如何解决这个问题?

To resolve the above issue ,You may refer the below workaround要解决上述问题,您可以参考以下解决方法

  • Make sure that CCM has been enabled properly as shown in the given DOC.确保 CCM 已正确启用,如给定文档中所示。

After enabling CCM, it takes about 24 hours for the data to be available for viewing and analysis.启用 CCM 后,数据大约需要 24 小时才能查看和分析。


  • Also make sure that you have the Application Administrator role assigned for your Azure AD and select the correct subscription where you need to create .还要确保为您的 Azure AD 分配了应用程序管理员角色,并选择正确的订阅,您需要在其中创建 .

  • As you are using az ad sp create --id 0211763d-24fb-4d63-865d-xxxxxxxxx instead of that use below cmdlts to create Service principle .当您使用az ad sp create --id 0211763d-24fb-4d63-865d-xxxxxxxxx而不是使用下面的cmdlts来创建服务原则时。

az ad sp create --id 00000000-0000-0000-0000-000000000000

For more information please refer this Blogpost , & refer this SO THREAD for similar error.有关更多信息,请参阅此Blogpost ,并参阅此SO THREAD以了解类似错误。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM