As we know how much the wordpress keys are important to take us one step forward towards wordpress security. Setting up the authentication keys and salts is one of the important security tip. To know why they are important and how they make us secure, just go through this article: Why and How to Set Authentication keys in WordPress
Setting up the keys at azure web server is a bit different from the other web servers.

You can set wordpress keys and salts in two ways when your websites is running on azure:

When you are installing wordpress from the azure panel

  • Log in to Azure Portal then Click website in the left bar.
  • Go to bottom and click on New, then choose Compute –> Website –> From Gallery
  • Put your desired URL, choose you region and click on create website.
  • Select WordPress and go on.
  • Set up your keys as mentioned below.


Setting up the keys after installation by directly modifying wp-config.php

You can skip the keys at the time of installation. After that just go to your wp-config.php file and you will find the keys area as showing in the below image. Now to get the correct keys as per azure and setting them up , just look at the steps mentioned below.

Both the methods are correct, we can set them as per our comfort and choice.

Now just go through this WordPress authorized link to generate your keys and salts: https://api.wordpress.org/secret-key/1.1/salt
Keep in mind, we can use these keys directly to our config file if our website is on any other web server except Azure.

Keys generated by this API having “$” character and azure does not allow this. Azure require keys which are not having “$” in them.

So there are two ways to get keys for websites on azure:

  1. Generate keys from: https://api.wordpress.org/secret-key/1.1/salt and then replace “$” from any other character and use them.
  2. Go to this link: Secret Keys for WordPress on Azure and put your previous key values and get keys as per azure using text-box showing at bottom.

Choose as per your comfort and proceed accordingly, these keys will work for all websites on azure. To know about any question regarding the salts and keys just go to our another article here: Why and How to Set Authentication keys in WordPress. Here you know why these keys are important to set up and how they make your website more secure.

Always move one step forward from hacker and stay secure 🙂