title: Azure KeyVault Access Policies - Adding App Service using Powershell and VSTS
body: <p>I have a Azure Key Vault in which I want to add access policies for my MSI enabled App Service using powershell.</p>
  
  <p>Using portal it's straightforward. As you can see below, I am searching by my app service name and I see app service and app registrations both.</p>
  
  <p><a href="https://i.stack.imgur.com/6DW74.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6DW74.png" alt="enter image description here"></a></p>
  
  <p>in above example I selected app service directly without registrating it in Azure AD and it's working awesome.</p>
  
  <p>I just need guidance to do the same using Azure Powershell(which will run VSTS SPN).</p>
  
  <p>Please help.</p>
  
  <p>Thanks</p>