Microsoft Entra
Microsoft Entra App Credential Rotation: Safe Plan
A practical Microsoft Entra app credential rotation review: identify owners, check expiry, test a replacement and retire old credentials safely.
Microsoft Entra app credential rotation: review before expiry
Application credentials often sit unnoticed in an app registration until a scheduled job, integration or service needs to authenticate. Expiry can then interrupt a workload even when the application itself has not changed. A safe review begins with ownership and dependency mapping, not with deleting an old credential or creating a new one on a guess.
Microsoft Entra app registrations can use certificates, client secrets and, for supported workloads, federated identity credentials. Microsoft recommends certificates rather than client secrets for confidential client applications in production. Federation can remove the need to manage a stored secret in supported scenarios, but it is not a universal replacement. The right design depends on the workload, the identity platform and how the credential is protected. Include all app registration credentials and each credential expiry in the review record. See Microsoft's guidance for adding application credentials and certificate credentials, checked 4 December 2026.
Start with an inventory, not a rotation date
List the app registrations and enterprise applications in scope, then record enough non-secret information to route the review:
- application name and application ID;
- accountable service owner and support team;
- credential type, key identifier or certificate thumbprint, start date and expiry date;
- permission names and resource APIs the application can access;
- workloads, schedules and environments that consume the credential;
- the deployment process, maintenance window and rollback contact.
Never copy a client-secret value, private key or certificate PFX password into the inventory. Microsoft Learn notes that a client secret value is shown once at creation; a copied value should be handled through the approved secret-management process, not added to an audit spreadsheet or ticket. For a certificate, inventory metadata such as the thumbprint and expiry, while keeping the private key under the organisation's approved controls.
An expiry report is only a starting point. A credential that has not been used recently might belong to a monthly reconciliation, disaster recovery task or seasonal integration. A missing owner is a reason to investigate the application and its dependencies, not evidence that the registration can be removed. Ask the owning team to confirm the workload, environment, deployment path and service impact before planning a change.
Choose a supported replacement method
For a confidential client in production, Microsoft recommends a certificate instead of a client secret. The application must be configured to use the matching private key, and the corresponding public certificate must be registered with the application. Uploading the certificate to Entra does not update the code, service connection or scheduled job that signs its client assertion. The consuming workload must be changed and tested as part of the rotation.
Workload identity federation can be appropriate when a workload runs on a supported external identity platform, such as a CI pipeline or Kubernetes service. It allows the application to trust a token issued by that platform rather than keeping a long-lived client secret. Federation has specific issuer, subject and audience matching requirements. Confirm that the exact platform and deployment pattern are supported before deciding to migrate. Keep a documented fallback until the new authentication path is proven in the intended environment.
If a client secret remains necessary, use your organisation's approved store and delivery process, limit its permissions to what the workload needs, and set an expiry compatible with the review and release cadence. Microsoft documents a maximum client-secret lifetime of 24 months and recommends an expiry under 12 months. These are Microsoft product limits and guidance; your security policy may be stricter. If an application management policy is used to enforce standards, test its effect on existing registrations before applying it broadly.
Rotate in a controlled sequence
Plan the change as an application release with an owner and a rollback path:
- Confirm the owner, environments, dependent services and change window.
- Review the current credential type, expiry, permissions and documented Microsoft guidance.
- Create or register the replacement through the approved process, without exposing its value in logs or chat.
- Update the consuming application or service to use the replacement. Do not assume that adding a second credential changes the workload automatically.
- Test token acquisition and the application operation that depends on it in a safe environment, then follow the production change process.
- Monitor the workload and its sign-in evidence through the approved window. Keep the old credential available only for the planned rollback period.
- After the owner confirms success, remove the retired credential and record the date, approver and evidence reference without storing any secret material.
Microsoft's credential guidance recommends validating the application after adding credentials. For certificate authentication, use application sign-in evidence and the certificate identifier to help confirm which credential the workload used. A successful token request alone may not prove that the whole service operation is healthy; test the dependent function as well.
Evidence to keep, and evidence to exclude
A useful rotation record explains why the change was needed and how it was validated. Keep the application identifier, owner, credential metadata, change reference, deployment time, test result and any exception with the organisation's normal access controls. Do not include client-secret values, private keys, PFX passwords, bearer tokens or screenshots that expose them.
Separate what the inventory proves from what it cannot prove. An expiry date shows when a credential is scheduled to stop working; it does not establish that the application is unused or that all consumers have been found. A permission listing helps the owner understand potential access; it does not prove how the app is used at runtime. Mark missing data as not checked and route it to the relevant owner.
Where OpsPilot fits
OpsPilot's App credentials review is labelled Live in the reports library. The review surfaces app secrets and certificates that are expired, nearing expiry or long-lived, alongside an expiry calendar. It is a read-only Microsoft 365 review and does not rotate credentials, modify registrations or decide that an application is safe to retire. The app credential fix guide explains customer-run follow-up steps and the evidence limits.
The report is a way to organise an administrator's review. Confirm the owner and workload in the relevant Microsoft tools before making any change. Connected-tenant access is an invitation-only trial; the product pages describe the current scope and consent process.
Questions administrators ask
Does an expired credential mean that an application is unused?
No. Expiry metadata does not show whether an application is still needed. A scheduled or recovery workload may run infrequently. Find the owner, inspect approved sign-in evidence and dependencies, and confirm the service impact before deciding what to do.
Does adding a new certificate automatically rotate my app?
No. Registering a certificate makes it available to the application, but the consuming code or service must use the matching private key. Plan a deployment, test token acquisition and the dependent operation, and remove the previous credential only after the owner confirms success.
Is federation suitable for every workload?
No. Microsoft documents federation for supported workload identity providers and scenarios. Check the issuer, subject and audience requirements for the exact platform, then test the trust configuration before removing an existing credential.
Does OpsPilot change or reveal credential values?
OpsPilot is read-only. Its review surfaces credential metadata and does not rotate or change application credentials. Keep secret values and private keys in your approved secret-management process, not in reports or support notes.
Microsoft Learn sources checked 4 December 2026: Add and manage app credentials; Certificate credentials; Enforce secret and certificate standards using application management policies; Protect identities and secrets.
Frequently asked questions
How long can a Microsoft Entra client secret last?
Microsoft Learn says a client secret lifetime is limited to 24 months or less, and Microsoft recommends setting an expiry shorter than 12 months. Check the current tenant policy and the workload's release schedule before choosing a lifetime.
Should I replace a client secret with a certificate?
Microsoft recommends certificate credentials instead of client secrets for confidential client applications in production. The choice depends on the application and how it stores and accesses the private key; the certificate still needs an owner, expiry monitoring and a tested rotation process.
Can workload identity federation remove every application secret?
No. Federation is available for supported workload and identity-provider scenarios. Verify the platform, issuer, subject and audience requirements for the specific workload before planning a migration.
When should I remove the old credential?
Only after the replacement has been deployed and the application has passed its authentication and dependent-operation tests. Keep a rollback path for the approved change window, and remove the old credential when the owner confirms it is no longer needed.