Replace az --version with az version (#450)

This commit is contained in:
Shiying Chen 2024-05-27 14:55:09 +08:00 committed by GitHub
commit 5b1f5e2d92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,7 @@ export class AzureCliLogin {
}
};
await this.executeAzCliCommand(["--version"], true, execOptions);
await this.executeAzCliCommand(["version"], true, execOptions);
core.debug(`Azure CLI version used:\n${output}`);
this.setAzurestackEnvIfNecessary();