azure-sdk-for-cpp
azure-sdk-for-cpp copied to clipboard
AzurePowerShellCredential fails to generate token due to deprecation message in Az 12.1.0
JS SDK has a bug in which the deprecation error message from Az interferes with getting the token. So there are essentially 2 things to look out for -
Make sure any kind of warning message doesn't interfere with parsing and returning the access token Update the az command to use the -SecureString flag for returning the access token.
Related issue - https://github.com/Azure/azure-sdk-for-js/issues/30356