Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User ID is empty when running basic-deploy.sh locally #80

Closed
tfsjohan opened this issue Oct 12, 2022 · 1 comment
Closed

User ID is empty when running basic-deploy.sh locally #80

tfsjohan opened this issue Oct 12, 2022 · 1 comment

Comments

@tfsjohan
Copy link
Collaborator

When running the basic-deploy.sh script locally I get stuck in an infinite loop of login prompt. I discovered that the "id" property does not exists in the Azure CLI (tried both Windows and macOS). The same value is present in a property named "objectId".

current_user_oid=$(az ad signed-in-user show --query id --output tsv 2>/dev/null);

If we decide to allow running the script locally and harden check for dependencies, I think we need to check for both id and objectId to get the user id.

I do not yet know what, if anything, breaks as a result. Just making a note that the property name for user id is different in Cloud Shell and local Azure CLI.

@caseywatson
Copy link
Collaborator

It seems like objectId was replaced with id at some point by the CLI. Thanks for finding this one, @tfsjohan!

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

No branches or pull requests

2 participants