fix: resolve Azure CLI on Windows by using az.cmd (#9215)
Signed-off-by: Douwe Osinga <douwe@squareup.com> Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
@@ -127,8 +127,8 @@ impl AzureAuth {
|
||||
}
|
||||
}
|
||||
|
||||
// Get new token using Azure CLI credential
|
||||
let output = tokio::process::Command::new("az")
|
||||
let az = if cfg!(windows) { "az.cmd" } else { "az" };
|
||||
let output = tokio::process::Command::new(az)
|
||||
.args([
|
||||
"account",
|
||||
"get-access-token",
|
||||
|
||||
Reference in New Issue
Block a user