Skip to content

Commit

Permalink
Use WithDefaultAzureCredential() as suggested in the reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan committed Jul 7, 2023
1 parent c12da68 commit f09054f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/outputs/azure_data_explorer/azure_data_explorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (*AzureDataExplorer) SampleConfig() string {

// Initialize the client and the ingestor
func (adx *AzureDataExplorer) Connect() error {
conn := kusto.NewConnectionStringBuilder(adx.Endpoint)
conn := kusto.NewConnectionStringBuilder(adx.Endpoint).WithDefaultAzureCredential()
client, err := kusto.New(conn)
if err != nil {
return err
Expand Down

0 comments on commit f09054f

Please sign in to comment.