From time to time you may need to update/refresh the client secret used in the Entra ID App for Provision Assist. This may be because the secret has expired or you wish to generate a new one.
When you deploy Provision Assist, the secret generated for the AD app has a default expiry of 1 year from the date the deployment script was executed.
The secret is used in a few places in the Provision Assist solution:
- Key Vault
- Key Vault API Connection
- Automation Account encrypted variable
It is advisable to note down the date when the secret expires as once this has expired, the Logic Apps and Automation Runbooks will fail until a new secret is created and Provision Assist updated.
*Appropriate permissions will be needed when following the process below. Ensure the account you are using has permissions to generate AAD app secrets, update secrets in Key Vault and update the Provision Assist API Connections.
When the secret expires (OR when you want to create a new one), please follow this process to update Provision Assist to use the new value:
- Open the Azure Portal.
- Navigate to Azure Active Directory.
- Click 'App registrations' on the left menu.
- Click 'All applications'.
- Locate your Provision Assist AAD application and click on it.
- Click 'Certificates and secrets' on the left menu.
- Click 'New cient secret' under Client secrets.
- Enter a description for the secret and choose an expiry date. Note down this expiry date.
- Copy the value of the secret. Once you leave this blade, the value will be permanently hidden.
- Open the Azure Portal.
- Locate the Key Vault for Provision Assist.
- Click 'Secrets' on the left menu. If you cannot view the secrets you will need to create an access policy for the account you are using OR use an account with appropriate permissions.
- Locate the 'appSecret' secret and click on it.
- Click 'New Version', enter the value of the new secret into the 'Secret value' box and click 'Create'.
- Key vault has now been updated.
- Locate the 'provisionassist-kv' API Connection in the Azure portal, you can use the search box to search for it.
- Click 'Edit API connect' on the left menu.
- Enter the new secret into the 'Client secret' textbox and click 'Save'.
- API Connection has now been updated.
- Open the Azure Portal.
- Locate the 'provisionassist-auto' Automation Account.
- Click 'Variables' in the left menu.
- Click on the 'appSecret' variable.
- Click 'Edit value'.
- Enter the value of the new secret into the 'Value' textbox and click 'Save'.
- Automation Account has now been updated.
The secret has now been updated for Provision Assist.