Skip to content

Commit

Permalink
fix: do not specify tenant id when creating credential via Azure CLI (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernest Wong committed Mar 15, 2022
1 parent ea924e0 commit d854e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloud/azureclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func NewAzureClientWithCLI(env azure.Environment, subscriptionID, tenantID strin
return nil, err
}

cred, err := azidentity.NewAzureCLICredential(&azidentity.AzureCLICredentialOptions{TenantID: tenantID})
cred, err := azidentity.NewAzureCLICredential(nil)
if err != nil {
return nil, errors.Wrap(err, "failed to create credential")
}
Expand Down

0 comments on commit d854e5a

Please sign in to comment.