I want to know if application has managed identity configured(let's say App Service, but really does not matter). So far I see next options:
- Manually check if some environment variable defined, for example: IDENTITY_ENDPOINT
- Add flag to config, which I will set during deployment to specify if MI is configured or not
- If I connecting to Azure SQL, check if connection string has no User ID specified
All those seems to work for me, but I am wondering if something built-in Azure.Identity SDK exists.