Azure key vault - add access policy for deployment slot
On the key vault "Add access policy" section (printsceen 3 from Joy Wang), when you selecting the principal type this: YourWebAppName/slots/YourDeploymentSlotName
After you type the entire string the autocomplete check will be green and you can select the principal from the list.
AFAIK, we could access it after enabling MSI
for deployment slot
, you could check my test steps.
1.I have two slots, then I enable MSI of both of them in the portal.
You could check them in the Azure Active Directory -> Enterprise applications in the portal, refer to the screenshot.
Note: You should specify the
Application Type
option withAll Applications
when you are searching.
3.Add Add access policy in the azure keyvault, you could find the slots in the principle (hover your cursor over it).