I have 2 app registration (2 service principals). First of them I use as my credentials to have token. I need from my Python script to create and delete the secrets of the second service principal. Unfortunately, I did not find such an example in the documentation. How can I do that? Answer You can use the below code for
Tag: service-principal
Azure KeyVault: how to retrieve clientId, clientSecret and the tenantId for an existing Service Principal?
The cloud engineer in my organization has set up an Azure KeyVault and a Service Principal. I know the id of this Service Principal, but I also need clientId, clientSecret, and tenantId. The documentation shows that these variables are exposed to you when you create a Service Principal using Azure CLI, but in my case, there is one already. I