Azure Key Vault

Posted: June 13, 2018 in Azure

In Azure Key Vault,which is a secure secrets store, we can store passwords, connection strings, and other pieces of information that are needed to keep your applications working. You want to make sure that this information is available but that it is secured.Key Vault allows you to create multiple secure containers, called vaults. These vaults are backed by hardware security modules (HSMs).

To create key vault in create resource type key vault-Create

 

1.PNG

Give it a name,specify resource group and location and click create

 

2.PNG

Once vault is created click on secrets to add a new secret

 

3.PNG

In this example i stored Storage account keys in vault-first copied storage account keys

4.PNG

Then pasted it into vault,optionally, Activation and expiration dates can be specified.

5

Now, we need to point our application to this Key Vault.I’m not a developer so i created some fake (web) application,for demonstration purpose

Azure Active Directory-App registration-New application registration

 

6.png

Give application name and specify URL

 

7.PNG

Once application is created, go to it’s properties and click Keys

 

8.PNG

Create a key,specify expiration period

 

9.PNG

Copy key to clipboard, you will use it in your code to connect to Key Vault

 

10.PNG

Now we need to create Key Vault access policy-go to resource group-locate Key Vault-click access policy

11.png

Add new

 

12.PNG

Select your application we created earlier-click on Select principal

 

13.png

Select action application can perform against vault-in this case it can only get secret key

 

14.PNG

Now web application can get storage key from Key Vault

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s