[BUG] DefaultAzureCredential can't work properly in Spring Cloud Azure #30543
Labels
azure-spring
All azure-spring related issues
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
Milestone
Describe the bug
Found this issue when fixing this doc MicrosoftDocs/azure-docs#97305; the best case scenario is for users to run this application both locally and in Azure hosting environments without needing to modify any configurations.
If using
system-assigned managed identity
, users can use the following configurationspring.cloud.azure.keyvault.secret.property-sources[0].endpoint=https://<your-keyvault-name>.vault.azure.net
But if users are using
user-assigned managed identity
, users can not make it work in the Azure hosting environment:The current solution I provided in the above PR is not ideal, because with such configurations, users won't be able to run the applications locally.
or
Exception or Stack Trace
N/A
To Reproduce
Follow this MicrosoftDocs/azure-docs#97305.
Code Snippet
N/A
Expected behavior
With the following configurations, users can run the application both locally and in the Azure hosting environment (with user-assigned managed identity)
Screenshots
N/A
Setup (please complete the following information):
If you suspect a dependency version mismatch (e.g. you see
NoClassDefFoundError
,NoSuchMethodError
or similar), please check out Troubleshoot dependency version conflict article first. If it doesn't provide solution for the problem, please provide:mvn dependency:tree -Dverbose
)Additional context
N/A
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: