Forum Discussion
mgfeal
Mar 14, 2023Brass Contributor
Service Principal - Applications ... - Monitoring Certificates and Secrets Expiration
This is an example: We need to monitoring the expiration time for our certificates and secrets, and receive an alert when there are a few weeks left until it expires. How can we do it? ...
- Mar 22, 2023Hi
There is no way to do this in the Azure GUI, you have to do it programmatically.
Here is an example of how to do it using PowerShell.
https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/scripts/powershell-export-apps-with-expriring-secrets
Florian185
Jan 07, 2024Copper Contributor
For example you can do this easy with an Azure Automation Account , use a powershell Runbook , with get-AzureADServicePrincipalKeyCredential u can get the expire Date , then u can send a mail or use Event Grid or anythink else. If this Solution works for you, you can also write a bit more Code, and renew the secret automatetically and store it in a KeyVault, so u have no more manually doings