Skip to content

Commit

Permalink
Update logged_in_user following az cli 2.37.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentLesle authored May 25, 2022
1 parent 7d85693 commit a3874df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ZSH_THEME="agnoster"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"

# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
Expand Down Expand Up @@ -102,3 +102,4 @@ export LANG=en_US.UTF-8
alias rover=/tf/rover/rover.sh
alias t=/usr/bin/terraform
alias k=/usr/bin/kubectl
cd /tf/caf || true
2 changes: 1 addition & 1 deletion scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ function get_logged_user_object_id {
unset TF_VAR_logged_aad_app_objectId

export ARM_TENANT_ID=$(az account show -o json --only-show-errors | jq -r .tenantId)
export TF_VAR_logged_user_objectId=$(az ad signed-in-user show --query objectId -o tsv --only-show-errors)
export TF_VAR_logged_user_objectId=$(az ad signed-in-user show --query id -o tsv --only-show-errors)
export logged_user_upn=$(az ad signed-in-user show --query userPrincipalName -o tsv --only-show-errors)
echo " - logged in user objectId: ${TF_VAR_logged_user_objectId} (${logged_user_upn})"

Expand Down

0 comments on commit a3874df

Please sign in to comment.