简体   繁体   中英

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.

在此处输入图像描述

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

在此处输入图像描述

  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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM