From e98ffc6791cb3abdc6401a9f9689587d46d6231e Mon Sep 17 00:00:00 2001 From: Vidya Reddy <59590642+Vidya2606@users.noreply.github.com> Date: Tue, 26 Mar 2024 15:33:00 -0700 Subject: [PATCH] Updated the function to retrive the tenantId --- pkg/providers/azure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/providers/azure.go b/pkg/providers/azure.go index 2f81d029..2dfdf6f4 100644 --- a/pkg/providers/azure.go +++ b/pkg/providers/azure.go @@ -193,7 +193,7 @@ func (sc *SetUpCmd) getTenantId(ctx context.Context) error { if len(tenants) > 1 { return errors.New("multiple tenants found") } - sc.tenantId = fmt.Sprint(&tenants[0]) + sc.tenantId = *tenants[0].TenantID return nil }