azure-sdk-for-java
azure-sdk-for-java copied to clipboard
Cloud Shell ManagedIdentitySource should throw if a user-assigned managed identity clientID or resourceID is supplied
If the Cloud Shell ManagedIdentitySource is detected via MSAL and a user-assigned managed identity clientID or resourceID is supplied, the ManagedIdentityCredential should throw.
The rationale for taking this minor breaking change is that CloudShell does not support specifying a clientID or ResourceID and the current behavior of silently falling back to attempting to use a system-assigned identity could be unexpected.
Thank you for your feedback. Tagging and routing to the team member best able to assist.
After discussion with the Java architects, Java will continue throwing in getToken instead of in the constructor.