Fix #384: Remove az account clear in az cli (#398)

This commit is contained in:
Shiying Chen
2024-01-08 18:26:20 +08:00
committed by GitHub
parent b5038826b1
commit 3f2bf91b4d
2 changed files with 7 additions and 5 deletions

View File

@@ -31,8 +31,6 @@ export class AzureCliLogin {
await this.executeAzCliCommand(["--version"], true, execOptions);
core.debug(`Azure CLI version used:\n${output}`);
await this.executeAzCliCommand(["account", "clear"], true, execOptions);
this.setAzurestackEnvIfNecessary();
await this.executeAzCliCommand(["cloud", "set", "-n", this.loginConfig.environment], false);