Shadi
Shadi

Reputation: 313

I couldn't granting my web app access to Azure Key Vault on Azure App Service Environment V3

I have an Azure Web App and hosted on App Service Environment V3 (Plan: I1v2: 1). After deploying this app I have a problem accessing values on the Azure Key Vault.

enter image description here

When I want to add this app in Access Policy in the Key vault, I couldn't find this app.

enter image description here

Upvotes: 0

Views: 1100

Answers (2)

Shadi
Shadi

Reputation: 313

I solve this problem, first found ObjectID of App from:

  1. Navigate to the idenity blade of your web app
  2. Set the status to "on"
  3. Select "Save"
  4. Grab the ObjectID when the page refreshes.
  5. Navigate to your principal text box that you have the Web Apps objectID.

After that, with Azure CLI I was granted access to the Key Vault. More Infromation

Upvotes: 4

Matt Small
Matt Small

Reputation: 2275

  1. Ensure that the Key Vault is accessible on the same VNet as the App Service
  2. Ensure that you've enabled the Managed Identity for the Key Vault

Upvotes: 0

Related Questions