A cloud-based identity and access management service for securing user authentication and resource access
To update secret keys for an Azure App Registration, the user must have appropriate directory-level permissions in Microsoft Entra ID, not just a Contributor role at the subscription or resource group level. While the Contributor role allows management of Azure resources such as virtual machines and web apps, it does not grant access to manage app registrations or their secrets, as these are directory-level objects.
To perform actions like updating client secrets, the user must be assigned one of the following Entra roles: Application Administrator, Cloud Application Administrator, or Privileged Role Administrator.
You can assign these roles by navigating to Microsoft Entra ID > Roles and administrators, selecting the appropriate role, and adding the user under Add assignment.
For your reference: https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/manage-roles-portal?tabs=admin-center
The error you're seeing AADSTS7000222: The provided client secret keys for app '[App ID]' are expired indicates that the current secret has expired and must be renewed by a user with the required permissions. For detailed steps on updating credentials, refer to the official documentation: Add credentials to a Microsoft Entra application.
Hope this helps. Do let us know if you any further queries.
Please remember to "Accept Answer" if answer helped you. This will help us as well as others in the community who might be researching similar questions.