If you try to retrieve a value from Azure Key Vault, you may run into this error: “DefaultAzureCredential failed to retrieve a token from the included credentials”.
In order to solve this issue in a local machine:
To find out more about connecting an Azure VM to Key Vault, follow this tutorial. In a nutshell, you need to enable a managed identity for the VM and assign permissions to the identity.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.