How to fix Access to appconfig was denied. Please ensure the required role assignment is made for the identity running this task.

Michael Agbogidi 0 Reputation points
2024-10-03T09:23:53.8866667+00:00

The client secret key of an app on azure portal expired and was renewed. The service connection from azure devops to the azure portal was also recreated. The creator of the service connection is having the owner role as well as the App Configuration Data Reader role. But when we try to raise a PR on azure devops, the build pipeline fails at the stage of fetch config with the error below:

Access to 'https://dms-dev-app-config.azconfig.io/kv?key=ConnectionStrings%3AAppConfig&label=%00&api-version=1.0' was denied. Please ensure the required role assignment is made for the identity running this task.

Can't figure out what the issue is since the expected roles have already been assigned.

Any help would be greatly appreciated.

Thanks in advance.

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
229 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.