Update : updated script to support Azure Az powershell module. Once we register an Application with Azure AD, we configure Secrets or Certificates or sometimes both. This is required to set up application authentication and authorization, Sign-On or OAuth authorization service etc. The secret or the certificate we set on the application has an expiry….