You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New-AzureRmADAppCredential: Error 'Update to existing credential with KeyId is not allowed' when attempting to add secondary certificate credential
#6784
Closed
etortec opened this issue
Jul 26, 2018
· 2 comments
Attempting to use New-AzureRmADAppCredential to add a certificate credential when a certificate credential already exists for the service principal fails with the error message 'Update to existing credential with KeyId 'f5fc14f5-72d8-4fbd-b1fb-9ee43aacd2d7' is not allowed.'.
Looking at the powershell debug output the command seems to attempt to use a HTTP PATCH to modify the existing credential, whereas I would have expected it to add a new credential.
@etortec thanks for providing all of this information -- it appears that this is a duplicate of issue #6219, so I will close this in favor of the other since the appropriate parties have been looped in there.
Description
Attempting to use
New-AzureRmADAppCredential
to add a certificate credential when a certificate credential already exists for the service principal fails with the error message 'Update to existing credential with KeyId 'f5fc14f5-72d8-4fbd-b1fb-9ee43aacd2d7' is not allowed.'.Looking at the powershell debug output the command seems to attempt to use a HTTP PATCH to modify the existing credential, whereas I would have expected it to add a new credential.
Script/Steps for Reproduction
Module Version
Environment Data
Debug Output
The text was updated successfully, but these errors were encountered: