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.

Click on Pull reference values to pull the latest values from the key vault secret.

Click Confirm.

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