Search code examples
azure-web-app-serviceazure-keyvaultazure-app-service-plansazure-webappsazure-app-service-envrmnt

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


Solution

  • 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