Update License Secret in Azure Key Vault
Prerequisites
Azure Roles:
You must have the Key Vault Administrator role for the key vault to add the new license key secret.
You must have the Contributor role for the key vault to change the network settings of the key vault.
You must have the Contributor role for the App Service to restart the App Service.
Step 1: Turn on Public Access to Key Vault (Temporary)
Go to the Azure Portal.
Navigate to your Key Vault.
In the left pane, select Networking in the Settings section.

Under Firewalls and Virtual Networks, switch from 'Disable public access' to 'Allow public access from specific virtual networks and IP addresses'.

Click on Add your client IP address.

Open a browser and search “What is my IP” to get your IP address.

Copy the IP address and enter it into IP address or CIDR.

Click Apply.

Step 2: Update the License Secret in Azure Key Vault
Go to the Secrets section under the Objects menu in the Key Vault.

Click on workspaceLicense.

Click + New Version.

Enter your license key into 'Secret value' and click Create.

Step 3: Ensure App Service Picks Up the New Secret
Go to the Environment Variables section in the App Service.

Search for “BOOTSTRAP_ON_PREMISE_WORKSPACE_LICENSE” in the search bar.

Click “BOOTSTRAP_ON_PREMISE_WORKSPACE_LICENSE” and then copy both the name and value and paste them in a notepad; we will need to use them later.

Close this window, and delete this environment variable now.

Click Apply.

Once the configurations are applied, we need to add the removed env to the app service back again. To do this, click +Add.

Now paste the copied values into the name and value fields and click Apply.

Step 4: Revert Key Vault to Private Access.
Go back to Key Vault’s Networking section, select Disable public access, and then click Apply.

Last updated