Forum Discussion
saurabh15in
Aug 08, 2022Copper Contributor
How to Extend Azure Service Principle Secret Expiry Date
Hi, I have one Service Principle Secret which is going to expire very soon. I am not sure what all places, it has been used. Is there any way we can just extend the service principle Secret key ...
aammirmirza
Feb 22, 2023Copper Contributor
Use the below powershell module to get the expiring SP:
Install-Module -Name AzAppRegistrationExpiry
+----------------+----------------------------------------------------------+
| Expiry | E.g : Get-ExpiringSPN -TimeFrameInDays 30 -expiry |
+----------------+----------------------------------------------------------+
| InvalidExpiry | E.g : Get-ExpiringSPN -TimeFrameInDays 30 -InvalidExpiry |
+----------------+----------------------------------------------------------+
Install-Module -Name AzAppRegistrationExpiry
+----------------+----------------------------------------------------------+
| Expiry | E.g : Get-ExpiringSPN -TimeFrameInDays 30 -expiry |
+----------------+----------------------------------------------------------+
| InvalidExpiry | E.g : Get-ExpiringSPN -TimeFrameInDays 30 -InvalidExpiry |
+----------------+----------------------------------------------------------+