I need to link my API Management with an Azure Active Directory Identity Provider.
In order to do that I have to use the REST API which requires the client secret as a part of the body:
https://docs.microsoft.com/en-us/rest/api/apimanagement/2019-01-01/identityprovider/createorupdate
I don't want to check in the client secret to source control so I thought I would retrieve the client secret from Active Directory on the fly:
When I try to list the app credentials with az ad app credential list --id xxxx-my-long-id-xxx
it doesn't return the secret:
[
{
"additionalProperties": null,
"customKeyIdentifier": null,
"endDate": "2020-08-16T14:11:44.782000+00:00",
"keyId": "xxxxx-xxxx-x-xxx--xx-xxxxx",
"startDate": "2019-08-16T14:11:53.862000+00:00",
"value": null
}
]
Is there an alternative way to get the client secret?
Maybe via the rest api?