Hi @Abhishek Goyal
You can use Azure AD PowerShell to renew client secrets, there is no maximum, and you can set any date.
1.Install the Azure Active Directory PowerShell module.
Install-Module -Name AzureAD
2.Connect to Azure AD and sign in as an administrator.
Connect-AzureAD
3.Run the script to create a client secret for your app with a 10-year lifetime.
# Parameters
$AppObjectID = "{object id of the app}"
$AppSecretDescription = "Renew Client Secret"
$AppYears = "10"
# Add App Client Secret - Valid for 10 years (change to 999 for unlimited years)
$StartDate = Get-Date
$EndDate = $StartDate.AddYears($AppYears)
$AppClientSecret = New-AzureADApplicationPasswordCredential -ObjectId $AppObjectID -StartDate $StartDate -EndDate $EndDate -CustomKeyIdentifier $AppSecretDescription
# Write Client Secret value
Write-Host $AppClientSecret.Value
Go to the Azure AD portal and refresh the browser page, you will be able to see the client secret with an expiration date of 2033.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".