entra-powershell icon indicating copy to clipboard operation
entra-powershell copied to clipboard

🪲 Remove-EntraServicePrincipalKeyCredential does not support passing a Proof property

Open willfiddes opened this issue 3 months ago • 2 comments

Remove-EntraServicePrincipalKeyCredential calls the removeKey method which requires a Proof... https://learn.microsoft.com/en-us/graph/api/serviceprincipal-removekey?view=graph-rest-1.0&tabs=http

However this cmdlet does not allow to pass Proof which results in a 403

Remove-EntraServicePrincipalKeyCredential needs to support passing Proof property

willfiddes avatar Sep 26 '25 20:09 willfiddes

AzureAD cmdlet didn't have a Proof parameter https://github.com/Azure/azure-docs-powershell-azuread/blob/main/azureadps-2.0/AzureAD/Remove-AzureADServicePrincipalKeyCredential.md

Graph cmdlet has the Proof parameter https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.applications/remove-mgserviceprincipalkey?view=graph-powershell-1.0

API reference https://learn.microsoft.com/en-us/graph/api/serviceprincipal-removekey?view=graph-rest-1.0&tabs=http

KenitoInc avatar Oct 03 '25 08:10 KenitoInc

For backwards compatibility with AzureAD cmdlet, Proof should not be a required parameter.

KenitoInc avatar Oct 03 '25 08:10 KenitoInc