stevebus / unrealdemo

Temporary placeholder (for the Beta) for the Unreal Engine ADT plug-in for Azure Digital Twins
MIT License
3 stars 1 forks source link

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

Open dfknowlesLittle opened 3 years ago

dfknowlesLittle commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

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

stevebus commented 3 years ago

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