Function app in Azure is not working due to the Visual Studio Team Services Project getting an error when deploying
The deployment fails when trying to get the access token. This was working without issues until recently. We have looked through various places to locate the resource it is failing to find or key that is expired, but the original developers didn't leave any notes. There are app registrations we found that are expired, however, we don't know if these are related and, if new secrets are created, where to apply them.
##[debug]Deployment Failed with Error: Error: Failed to get resource ID for resource type 'Microsoft.Web/Sites' and resource name 'DFM'. Error: Could not fetch access token for Azure. Status code: invalid_client, status message: Error(s): 7000222 - Timestamp: 2025-07-01 20:32:41Z - Description: AADSTS7000222: The provided client secret keys for app '***' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: c59494a9-5dbc-4950-b6bc-0a28915f5500 Correlation ID: 4603d1e9-b4c0-477f-9b6a-96dbca9a3746 Timestamp: 2025-07-01 20:32:41Z - Correlation ID: 4603d1e9-b4c0-477f-9b6a-96dbca9a3746 - Trace ID: c59494a9-5dbc-4950-b6bc-0a28915f5500