azureazure-billing-apiazure-billingazure-cost-calculation

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.

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

How can I resolve this issue?


Solution

  • To resolve the above issue ,You may refer the below workaround


    After enabling CCM, it takes about 24 hours for the data to be available for viewing and analysis.


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

    For more information please refer this Blogpost, & refer this SO THREAD for similar error.