From 6b47e012f753d518d8aeba64988599fadf1a6bac Mon Sep 17 00:00:00 2001 From: Douwe Osinga Date: Thu, 14 May 2026 13:25:50 -0400 Subject: [PATCH] fix: resolve Azure CLI on Windows by using az.cmd (#9215) Signed-off-by: Douwe Osinga Co-authored-by: Douwe Osinga --- crates/goose/src/providers/azureauth.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/goose/src/providers/azureauth.rs b/crates/goose/src/providers/azureauth.rs index 894d0cd7..e1d61f0f 100644 --- a/crates/goose/src/providers/azureauth.rs +++ b/crates/goose/src/providers/azureauth.rs @@ -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",