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 }