Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Deploy Azure Resources: Service Principal doesn't exist #2

Open
dfknowlesLittle opened this issue Jun 21, 2021 · 3 comments
Open

Deploy Azure Resources: Service Principal doesn't exist #2

dfknowlesLittle opened this issue Jun 21, 2021 · 3 comments

Comments

@dfknowlesLittle
Copy link
Collaborator

dfknowlesLittle commented Jun 21, 2021

UPDATE: I was able to resolve this issue by substituting the $appregname with the appId which was retrieved as part of the following step:
appreg=$(az ad sp create-for-rbac --name ${appregname} --skip-assignment) && echo $appreg | jq

When I run the command:
appregobjectid=$(az ad sp show --id $appregname --query objectId -o tsv) && echo $appregobjectid

I get the following message:
ERROR: Service principal 'http://appregname' doesn't exist

Has anyone else run into this? If so, how have you been able to resolve it?

@dfknowlesLittle
Copy link
Collaborator Author

UPDATE: I was able to resolve this issue by substituting the $appregname with the appId which was retrieved as part of the following step:
appreg=$(az ad sp create-for-rbac --name ${appregname} --skip-assignment) && echo $appreg | jq

@AndersRod
Copy link
Collaborator

Please update deploy-azure-resources.md by replacing $appregname with $appid

appregobjectid=$(az ad sp show --id $appid --query objectId -o tsv) && echo $appregobjectid

@AndersRod AndersRod reopened this Jun 30, 2021
@stevebus
Copy link
Owner

Thanks @AndersRod -- strangely, both options work fine for me. But it's probably a little clearer to use $appid, so I'll make the change

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants