title: Access Azure KeyVault from Xamarin Form
body: <p>I need to get a secret from the keyVault (functionKey) so that I can access my functions.</p>
  
  <p>I use the below code that works </p>
  
  <pre><code>    var azureServiceTokenProvider = new AzureServiceTokenProvider();
      var keyVaultClient =
          new KeyVaultClient(
              new KeyVaultClient.AuthenticationCallback(azureServiceTokenProvider.KeyVaultTokenCallback));
      var secret = await keyVaultClient.GetSecretAsync("mysecretIdentifier").ConfigureAwait(false);
      var key = secret.Value;
  </code></pre>
  
  <p>but the above requires in Visual Studio 2019 tool-options- Azure service Authentication I have to choose an account</p>
  
  <p>How does it work once the app is deployed?
  How does it know which subscription to use?</p>
  
  <p>Just trying to figure out how it will authenticate the azure keyvault?
  Any ideas?
  thanks</p>