Created
January 7, 2019 18:13
-
-
Save MarcBruins/d2f1b9bc4cee2e3bf21e909b946a493f to your computer and use it in GitHub Desktop.
calling the key vault
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var azureServiceTokenProvider = new AzureServiceTokenProvider(); | |
var keyVaultClient = new KeyVaultClient(new KeyVaultClient.AuthenticationCallback(azureServiceTokenProvider.KeyVaultTokenCallback)); | |
var secret = await keyVaultClient.GetSecretAsync("https://YOURKEYVAULT.azure.net/secrets/sqlAzure--AdminPassword").ConfigureAwait(false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment