azure-sdk-for-cpp icon indicating copy to clipboard operation
azure-sdk-for-cpp copied to clipboard

AzurePowerShellCredential fails to generate token due to deprecation message in Az 12.1.0

Open KarishmaGhiya opened this issue 1 year ago • 1 comments

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

KarishmaGhiya avatar Jul 24 '24 00:07 KarishmaGhiya