Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce redundant warning messages in azure-cli credential provider (#410
) ## Changes This warning is a bit noisy: in the happy path, we print it multiple times, and even if we don't use Azure CLI auth, we may print it anyways. Also, it will be printed always when using account-level authentication. This PR reduces the noise for this warning by only printing it when we are certainly going to use Azure CLI auth, authenticating to a workspace, and can't get the subscription ID (e.g. because it is not configured). ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [x] Ran locally: with accounts client, no warning is printed, and with workspace client, only one warning is printed.
- Loading branch information