To keep your secure information like connection string, password, etc. in a more secure way, we have Azure Key Vault.
Azure Key Vault is a secure way of storing keys, certificates, and secrets so that the application can access it when needed.
Microsoft Azure Key Vault is a cloud-hosted management service that allows users to encrypt keys and small secrets by using keys that are protected by hardware security modules (HSMs).
Azure Key Vault helps solve the following problems
Secrets Management
Azure Key Vault can be used to securely store and tightly control access to tokens, passwords, certificates, API keys, and other secrets
Key Management
Azure Key Vault can also be used as a Key Management solution. Azure Key Vault makes it easy to create and control the encryption keys used to encrypt your data.
Certificate Management
Azure Key Vault is also a service that lets you easily provision, manage, and deploy public and private Secure Sockets Layer/Transport Layer Security (SSL/TLS) certificates for use with Azure and your internal connected resources.
Store secrets backed by Hardware Security Modules
The secrets and keys can be protected either by software or FIPS 140-2 Level 2 validates HSMs
Below are the steps in my article,
Step 1 - Create an Azure Key vault with the secret key
Open Azure Portal here.
Search Key Vaults -> Select Key Vaults

Select Key Vaults and click on + Add (To Create New Key Vaults)

Now click on Access Policy

Fill in all required values and leave the rest as default.

Click on Create.

Azure Key Vault has been created.
Now add a secret here. So from the left side menu click on Secret.



A new Secret has been added. Now click on this newly-created secret.

















Viknaraj ManogararajahPosted Oct 20, 2019, 10:27 AM
Superb article....
Sergio TerenasPosted Oct 17, 2019, 9:13 PM
Excelent article Rahul! Can this same methodology be used from a Winforms application to remove the connectionstring to a Azure SQL database from code?
Jaimin ShethiyaPosted Oct 17, 2019, 12:24 AM
Nice article sir