Function app in Azure is not working due to the Visual Studio Team Services Project getting an error when deploying

Logan Angel 0 Reputation points
2025-07-02T12:26:44.9833333+00:00

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

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,936 questions
{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.