I'm trying to implement Azure KeyVault in my Azure Functions app following this article: https://medium.com/statuscode/getting-key-vault-secrets-in-azure-functions-37620fd20a0b
In the article, the function app is set to use Managed Service Identity (MSI) so that we don't have to use a secret to get a token in order to connect to Azure KeyVault. Because that would kind of defeat the purpose of using Azure KeyVault.
As I understand it, an Azure app can be registered to use MSI so that other Azure resources recognize it directly, thus simplifying the connection process by eliminating the need to get a token, etc.
However, as I debug my Azure functions app, I'm unable to connect to Azure KeyVault to retrieve the necessary secrets.
I feel maybe that's happening because the functions app is running locally during debug and not on Azure.
Would this be the reason why I'm unable to connect to KeyVault?