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
Could you please help me in resolving this issue?
CodePudding user response:
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.
After enabling CCM, it takes about 24 hours for the data to be available for viewing and analysis.
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 .
As you are using
az ad sp create --id 0211763d-24fb-4d63-865d-xxxxxxxxx
instead of that use belowcmdlts
to create Service principle .
az ad sp create --id 00000000-0000-0000-0000-000000000000
For more information please refer this Blogpost, & refer this SO THREAD for similar error.