Error: unauthorized_client: 700016: AADSTS700016: Application with identifier was not found in the directory.

Nikki Dilling Hansen 0 Reputation points
2024-09-30T08:12:47.0366667+00:00

I have a pipeline in Azure DevOps that deployes .sppkg files to a test tenant. The login part of the pipeline used to work, but suddenly after another PR I am getting this error:

Error: unauthorized_client: 700016 - [2024-09-27 12:03:43Z]: AADSTS700016: Application with identifier '31359c7f-bd7e-475c-86db-fdb8c937548e' was not found in the directory. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.

I made sure that the credentials are correct and found the specified application in Enterprise Applications. All permissions seem to be granted for this app.

User's image

I tried fixing the error by specifing tenant Id, which still did not help.User's image

Can anyone please help me to resolve this?

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,499 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,649 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.