From 1aeda61d6ac4a3e729800d47ec9d948a1cc4be91 Mon Sep 17 00:00:00 2001 From: Paul Yu Date: Thu, 17 Apr 2025 14:14:45 -0700 Subject: [PATCH] fix: resolves #5074 by adding tenant id to kubeconfig convert options when cluster is azure rbac enabled or local account is disabled --- cli/azd/pkg/project/service_target_aks.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/azd/pkg/project/service_target_aks.go b/cli/azd/pkg/project/service_target_aks.go index b26cfc7142e..5232fb3f4b4 100644 --- a/cli/azd/pkg/project/service_target_aks.go +++ b/cli/azd/pkg/project/service_target_aks.go @@ -606,6 +606,7 @@ func (t *aksTarget) ensureClusterContext( convertOptions := &kubelogin.ConvertOptions{ Login: "azd", KubeConfig: kubeConfigPath, + TenantId: t.env.GetTenantId(), } if err := tools.EnsureInstalled(ctx, t.kubeLoginCli); err != nil {