Steps I have followed:
- Created Azure Cloud vault.
- Added dependencies to project Using Connected service option in VS2019 along with needed packages and configuration.
- Added the ConfigBuilder into Web.config
- Applied ConfigBuilders to appsettings
<configBuilders><builders><add name="AzureKeyVault" ... omitted
<appSettings configBuilders="AzureKeyVault">
- Applied ConfigBuilders to appsettings
- Added permissions for my user into access policies to Azure Key Vault
Now it is working fine in my local VS2019 iis-express but When I deployed it on-premise iis server it is not working.
I feel it might be happening due to the access policy restrictions on Key Vault. Now I'm not sure how it will work with on-premise IIS web app.