Azure database connection string retrieve REST API vault.azure.net/secrets/
Box 1: cpandlkeyvault -
We specify the key vault, cpandlkeyvault.
Scenario: The database connection string is stored in Azure Key Vault with the following attributes:
Azure Key Vault name: cpandlkeyvault
Secret name: PostgreSQLConn -
Id: 80df3e46ffcd4f1cb187f79905e9a1e8
Box 2: PostgreSQLConn -
We specify the secret, PostgreSQLConn
Example, sample request:
https://myvault.vault.azure.net//secrets/mysecretname/4387e9f3d6e14c459867679a90fd0f79?api-version=7.1
Box 3: Querystring -
Reference:
https://docs.microsoft.com/en-us/rest/api/keyvault/getsecret/getsecret