Add Password to Principal with Graph

POST https://graph.microsoft.com/v1.0/servicePrincipals/{{service_principal}}/addPassword
 
{
  "passwordCredential": {
    "displayName": "Password friendly name"
  }
}
 
{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#microsoft.graph.passwordCredential",
    "customKeyIdentifier": null,
    "displayName": "Password friendly name",
    "endDateTime": "2028-02-17T20:00:08.3296014Z",
    "hint": "08T",
    "keyId": "2ace399a-7399-415c-bb58-784a3675e9be",
    "secretText": "08T8Q~3zF.b23OAGD4FvsbL6.xcnyd2bwPlRWbYX",
    "startDateTime": "2026-02-17T20:00:08.3296014Z"
}