Update Entra ID Secret

To update the Entra ID secret, we need to create a new secret in the Inforiver Entra ID application.

Steps to Create Secret in Inforiver Entra ID App

  1. Select the Inforiver App Registration.

App Overview
  1. Go to the Certificates & secrets menu and then click New client secret.

Secret Generation
  1. Add 'O365_APP_SECRET_ID' as a client secret and set its expiration as well.

Adding the client secret and its expiration

The client secret is added, as shown below:

Methods To Update Entra ID Secret

  1. Direct Update in Azure App Service

  2. Update via Azure Key Vault

1. Direct Update in App Service Environment Variables

  1. Select the App Service.

  2. In the left-side menu, click Environment Variables.

  3. Select 'O365_APP_SECRET_ID'. Click the Edit icon to edit.

Edit O365_APP_SECRET_ID
  1. Enter the 'Secret Key' in the Value field.

Enter Secret Key
  1. Click Apply to save the changes.

2. Update the Entra ID 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)

  1. Go to the Azure Portal.

  2. Navigate to your Key Vault.

  3. In the left pane, select Networking in the Settings section.

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

Allow public access from specific networks and IP addresses
  1. Click on Add your client IP address and click Apply.

Adding your client IP address
  1. Open a browser and search โ€œWhat is my IPโ€ to get your IP address.

Get your IP address
  1. Copy the IP address and enter the value into the 'IP address or CIDR' block and click Apply.

Enter IP Address

Step 2: Update the License Secret in Azure Key Vault

  1. Go to the Secrets section under the Objects menu in the Key Vault.

Go to 'Secrets' section
  1. Click on aadAppSecret.

Click 'aadAppSecret'
  1. Click + New Version.

Adding new version
  1. Enter your license key into 'Secret value' field and click Create.

Enter the secret

Step 3: Ensure App Service Picks Up the New Secret

  1. 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.

Pull reference values

2. Click Confirm.

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.

Disable public access
circle-info

Note: It may take a few minutes to replicate the secrets from the Key Vault. If this does not happen immediately, we recommend restarting your app service.

Last updated

Was this helpful?