User cost attribution secret expiry
Symptoms
-
From the UCA console, you may experience a message that reads:
"Unexpected Status on /getSasUri endpoint. Status code: 502 (BadGateway). Response body: <DOCTYPE html PUBLIC "-//W3CJ/OTD XHTML Strict//EN" etc.
-
From the Settings > Nerdio environment page, under User cost attribution, you may see an error that reads:
"User cost attribution diagnostics ERROR"
The details of this error look similar to a Trigger Diagnostics Error, including the 502 – Web Server received an invalid response error.
Resolution
Note: Ensure you are the application registration owner or an Entra ID Global Administrator before performing these actions.
-
In Entra ID, navigate to the UCA app service registration.
Note: This is generally prefixed with nmw-ccl-app.
Select App Registration.
From the Overview page, copy the Application (client) ID value.
In the Manage blade, select Certificates & secrets.
Select + New client secret.
-
Enter the following information:
Description: Type the required description.
Expiry duration: Specify an expiry duration (730 days is recommended).
Once you have entered the desired information, select Add,
-
Copy the Value value that is generated.
Note: You are not able to access this value again if it is lost. If it is lost, you need to restart this process.
-
Navigate to the User Cost Attribution Key Vault.
Note: This is generally prefixed with nmw-ccl-kv.
Within the vault, select Objects > Secrets from the menu.
Identify the secret with the same name as your Application (client) ID, which was recorded previously.
Select this secret, then select New Version.
Paste the Value, which was previously recorded, as the new secret value.
Apply the change and close the page.
-
Restart the User Cost Attribution Web App.
This completes the required actions.
Comments (0 comments)