Skip to content

Run az account clear instead of az logout at the beginning - #377

Merged
Shiying Chen (MoChilia) merged 3 commits into
masterfrom
account-clear
Dec 1, 2023
Merged

Run az account clear instead of az logout at the beginning#377
Shiying Chen (MoChilia) merged 3 commits into
masterfrom
account-clear

Conversation

@MoChilia

Copy link
Copy Markdown
Member

Modify the code in #376.
As it described in Azure CLI, az account clear will clear all subscriptions from the CLI's local cache. And az logout will log out the current active account.
In automation, az account clear should be a better choice for a cleaner environment.

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

Successfully merging this pull request may close these issues.

3 participants