CPM- Failed to connect to Azure. Given application ID requires a 'Client Secret'. Code 8016

CPM- Failed to connect to Azure. Given application ID requires a 'Client Secret'. Code 8016

123
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 15:56 PM


Symptom


When attempting to initiate a verify or change task on a Microsoft Azure Password Managment target account in PVWA, you may encounter an error message similar to the following:

 

"Failed to connect to Azure. Given application ID requires a 'Client Secret'. Code 8016"

 

Additionally, within the third-party debug logs, the following log entries may be present:

 

Info -> ParametersManager :: GetOptionalParameter -> Using ApplicationID from platform properties. Value=[ApplicationID].

 

ERROR -> RequestBase :: SubmitRequest -> Failed to submit request. Received status code: 400 - BadRequest.

 

Info -> JsonParser :: GetValue -> Response parameter error value is unauthorized_client.

 

GetValue -> Response parameter error_description value is AADSTS700016: Application with identifier '[ApplicationID]' was not found in the directory 'xxx Environment'. 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. Trace ID: ### Correlation ID: ### Timestamp: ###.

 

Get -> Received error type: unauthorized_client. Error description: AADSTS700016: Application with identifier '[ApplicationID]' was not found in the directory 'xxx Environment'. 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. Trace ID: ### Correlation ID: ### Timestamp: ###

 

ERROR -> BaseAction :: PrintTokenErrorToLog -> Unable to connect to Azure. Received error: {"error":"unauthorized_client","error_description":"AADSTS700016: Application with identifier '[ApplicationID]' was not found in the directory 'xxx Environment'. 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. Trace ID: ### Correlation ID: ### Timestamp: ###","error_codes":[700016],"timestamp":"###","trace_id":"###","correlation_id":"###","error_uri":"https://login.microsoftonline.com/error?code=700016"



Environment


14.6 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)

Microsoft Azure/Entra



Cause


The application named X was not found in the tenant named Y. This can happen if the application with identifier X has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have misconfigured the Identifier value for the application or sent your authentication request to the wrong tenant. 

 

The string [ApplicationID] is being used to populate to populate as the application identifier within the request.  

 

This is because the ApplicationID parameter is present on the target account and/or target account platform (Microsoft Azure Password Managment). 



Resolution


There are two separate accounts involved in this situation: 

  • Target Account (Platform: Microsoft Azure Password Management)
  • Logon/Application/Reconcile Account (Platform: Microsoft Azure Application Key)

 

First, confirm that the associated Logon/Application/Reconcile Account (Platform: Microsoft Azure Application Key) is able to successfully verify.  If it is unable to verify, additional troubleshooting steps will be necessary to ensure the Logon/Application/Reconcile Account (Platform: Microsoft Azure Application Key) is correctly configured. 

 

If the Logon/Application/Reconcile Account (Platform: Microsoft Azure Application Key) is able to successfully verify, AND when attempting to verify the Target Account (Platform: Microsoft Azure Password Management) the Third Party debug logs indicate "AADSTS700016: Application with identifier '[ApplicationID]' was not found in the directory..." the ApplicationID must be removed from the Target Account (Microsoft Azure Password Management) at both the account level and the platform level.  

 

For the Target Account (Platform: Microsoft Azure Password Management)...

  1. Within the PVWA, navigate to the Target Account and fully remove any 'ApplicatinID' if configured at the account level.
  2. Within the PVWA, navigate to Administration --> Platform Management --> Edit the Azure Password management platform --> Automatic Password Management --> Additional Policy Settings --> Expand Parameters --> right click on and DELETE the ApplicationID parameter
  3. Navigate back to the Target Account (Platform: Microsoft Azure Password Management) and run a verify.


The Target Account (Platform: Microsoft Azure Password Management) should now successfully verify.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj00000011OhCAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail