Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
yutongzhang-microsoft committed Dec 13, 2024
1 parent 5465226 commit 6c092bc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def get_access_token():
raise Exception(f"Failed to az login after {MAX_GET_TOKEN_RETRY_TIMES} attempts.")

# 2. Get access token with re-try
get_token_cmd = "az account get-access-token --resource https://api.kusto.windows.net --query accessToken -o tsv"
get_token_cmd = f"az login --identity --username {managed_identity_id} " \
f"& az account get-access-token --resource https://api.kusto.windows.net --query accessToken -o tsv"
print(get_token_cmd)
get_token_attempts = 0
while get_token_attempts < MAX_GET_TOKEN_RETRY_TIMES:
Expand Down

0 comments on commit 6c092bc

Please sign in to comment.