Skip to content

Commit

Permalink
azcore fix: initialize request pipeline with configured cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas11 committed Dec 17, 2024
1 parent c57661c commit 1d54f5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion provider/pkg/azure/client_azcore.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ func NewAzCoreClient(tokenCredential azcore.TokenCredential, userAgent string, a
})

if opts == nil {
opts = &arm.ClientOptions{}
opts = &arm.ClientOptions{
ClientOptions: policy.ClientOptions{
Cloud: azureCloud,
},
}
}
// azcore logging will only happen at log level 9.
opts.Logging.IncludeBody = true
Expand Down

0 comments on commit 1d54f5b

Please sign in to comment.