Microsoft Azure Application Key - Target key does not exist
101
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:57 PM
Symptom
When attempting to manage a Microsoft Azure Application Key, Verify works correctly, but Change and Reconcile fail with "Target key does not exist" even though the Description matches in both the "Client secrets" location in the Azure Portal, and the Key Description field in the PAS onboarded Account.
The below messages can be seen in the ThirdParty debug logs:
20/02/2020 12:45:45.863 | ERROR -> BaseAction :: SetPlatformOutputMessage -> Return code: 8101.
20/02/2020 12:45:45.863 | ERROR -> BaseAction :: SetPlatformOutputMessage -> Failure: Change process failed - Target key does not exist.
10/01/2020 12:02:23.060 | ERROR -> BaseAction :: SetPlatformOutputMessage -> Return code: 8101.
10/01/2020 12:02:23.060 | ERROR -> BaseAction :: SetPlatformOutputMessage -> Failure: Reconcile process failed - Target key does not exist.
Environment
10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2
Cause
It happens because Azure changed their API (2.0) without backwards compatibility for new keys. When new keys are generated in the Azure Portal, they use the new format and the older Azure API (1.6), which is used by the current plugin, cannot see them.
Resolution
The permanent resolution will be to update the Microsoft Azure Application Key plugin to utilize the current API; however, until that is done, the below workaround can be used.
Workaround:
Perform a reconcile on the Microsoft Azure Application Key allowing the plugin to "PopulateIfNotExist". By doing this, the plugin will add a new key to the application using the older API and will be able to manage it going forward. The original key that was added with the Azure Portal can then be removed.
More information on "PopulateIfNotExist" can be found in the Microsoft Azure Application Key documentation (https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/11.2/en/Content/PASIMP/MicrosoftAzureApplicationKeys.htm)