An Azure service that is used to provision Windows and Linux virtual machines.
Hello,
If you've assigned the correct permissions and restarted the VM, a few other things could be causing the issue:
- Check Token Retrieval: Run the following command inside the VM to confirm it’s getting an access token:
If it fails, the managed identity might not be enabled properly.curl "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2019-08-01&resource=https://vault.azure.net" -H "Metadata: true" - Verify Role Assignments: If you're using Azure RBAC (instead of access policies), ensure the VM's identity has the
Key Vault Secrets Userrole assigned at the right scope. - Check Key Vault Firewall Settings: If your Key Vault is restricted to specific networks, make sure the VM’s outbound IP is allowed or enable private endpoint access.
- Try these steps and let me know if the issue persists!
✨ Please Upvote and Accept the Answer if it helps! ✨
Thanks & Regards,
Tasadduq Burney
(Microsoft MVP & MCT)
(Azure 15x)