Skip to content

Commit

Permalink
Modify DefaultCred to use AzureCLI creds
Browse files Browse the repository at this point in the history
  • Loading branch information
maniSbindra committed Aug 10, 2024
1 parent 6427158 commit da21a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/infrastructure/azureAPI/azureApiClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type AzureAPIClients struct {
ResourceGroupsClient *armresources.ResourceGroupsClient

// Default CLI Creds
DefaultCred *azidentity.DefaultAzureCredential
DefaultCred *azidentity.AzureCLICredential
DefaultAPIBearerToken string
// SPCred *azidentity.ClientSecretCredential
}
Expand Down Expand Up @@ -61,7 +61,7 @@ func (a *AzureAPIClients) SetApiClients(subscriptionId string) error {
return err
}

a.DefaultCred, err = azidentity.NewDefaultAzureCredential(nil)
a.DefaultCred, err = azidentity.NewAzureCLICredential(nil)
if err != nil {
// log.Fatal(err)
log.Fatal(err)
Expand Down

0 comments on commit da21a99

Please sign in to comment.