1
votes

I've a azure web service (linux) and azure key vault.

i configure two private endpoint , to allow the communication between Azure Key Vault and Azure web app.

enter image description here

enter image description here

i set all permissions in key vault's access policy , i ve already added identiy managed in the azure web app and the two endpoint are in the same virtual network, but the app is unable to read the key vault reference

enter image description here

any idea to resolve that ?

EDIT :

The access is allowed from private endpoint and selected networks

enter image description here

i don't want to put the public ip address of my web app in the firewall

i added the vnet in the key vault

enter image description here

1
Need error message.Matt Small
@MattSmall i add details , can you please recheck ?Quentin Merlin
Please show the VNet/Firewall settings.Matt Small
@MattSmall DoneQuentin Merlin
@MattSmall can you please help meQuentin Merlin

1 Answers

3
votes

To allow your azure app service to access the Azure key vault with a private endpoint, you have to do the following steps:

  1. Using regional VNet Integration enables your app to access a private endpoint in your integrated virtual network.
  2. Establishing a private link connection to an existing key vault.
  3. Validating that the private link connection works. From your Azure app service console or kudu portal, you can validate that your application is connecting to your key vault over a private IP address and that they have the correct private DNS zone integration.
  4. Add access policy of key vault for your Azure web app.

In this case, you can enable the firewall of the key vault via selecting the checkbox of the private endpoint and selected networks when you use the private link, read Key Vault Firewall Enabled (Private Link).

Please note that when you use Key Vault references.

Currently, Key Vault references won't work if your key vault is secured with service endpoints. To connect to a key vault by using virtual network integration, you need to call Key Vault in your application code.

You could read these wonderful blog1 and blog2 for more details.