INSIGHTS
AI & Data

Microsoft SC-500: Azure Key Vault, Private Endpoints, and Secret Rotation

An Azure Key Vault can contain the keys, certificates and secrets that protect a production workload.

In this article
  1. Decide vault boundaries before assigning access
  2. Use private connectivity with explicit DNS verification
  3. Separate key, secret and certificate lifecycle responsibilities
  4. Use rotation tests that include dependent workloads
  5. Combine Defender protections with access controls
  6. Protect against irreversible administration mistakes
  7. Verify the complete authorization and network story

An Azure Key Vault can contain the keys, certificates and secrets that protect a production workload. A compromised secret may grant an attacker data access even when the workload is otherwise isolated. Microsoft SC-500 requires engineers to deploy and configure Key Vault, restrict its network reachability, manage data-plane access, handle lifecycle operations and use Microsoft Defender for Key Vault and posture scans. These controls address separate attack paths and must work together.

Consider an application retrieving a database connection value at startup. The runtime needs access to one secret, deployment automation may need to create new versions, and a small security team administers the vault. Those are three distinct privilege sets. A firewall rule does not make the application authorized; an Azure RBAC role does not ensure that the vault is unreachable from an unauthorized network; and an audit log that records a denied request does not itself stop a leaked credential.

Decide vault boundaries before assigning access

Define whether different applications and environments should share a vault. A shared vault can simplify operations but concentrate trust; separate vaults can restrict blast radius and allow independent policy, recovery and monitoring. Consider the ownership of keys, secrets and certificates, the allowed administrators and the expected business recovery time. Avoid assuming a single enterprise vault is always safer than several bounded ones.

Azure separates management-plane control from access to vault data. A person allowed to deploy or configure a vault may not need permission to retrieve secret values. Favor the supported Azure RBAC permission model with narrowly scoped data-plane roles where appropriate, and inspect effective assignments inherited from management groups, subscriptions or resource groups. The AZ-104 RBAC fundamentals support the distinction between a role definition and a real principal’s effective access.

Use private connectivity with explicit DNS verification

A proper negative test makes two independent assertions: a caller from a disallowed network should not reach the data plane over an unintended public path, and a caller on the approved private path without the correct vault data role should still be denied. Private DNS resolution to privatelink.vaultcore.azure.net is evidence about the network path, not proof that the authorization configuration is secure.

A private endpoint can give an approved virtual network a private path to Key Vault, provided endpoint approval, routing, name resolution and public-access configuration are checked separately. It does not automatically fix name resolution or prevent public endpoint access if the service remains configured to allow it. Determine whether the business requirement is selected public sources or private-only reachability, configure the network controls accordingly and verify from intended client networks. Microsoft’s Key Vault network policy reference identifies relevant firewall and Private Link controls.

Test with an authorized workload inside the correct network, the same workload from an unapproved network, and an identity lacking vault data permissions. Expect different failure modes and collect relevant diagnostics. Incorrect private DNS zone links can resolve the vault’s name to a public address, causing traffic to bypass the path the architect expected. A private endpoint also does not eliminate the need to secure the client, the virtual network or the identity.

Separate key, secret and certificate lifecycle responsibilities

Secrets are versioned values used by applications. Keys may be used for cryptographic operations, where exporting key material and authorizing cryptographic actions have different implications. Certificates introduce issuance, renewal, trust-chain and distribution considerations. Design lifecycle rules for each type, including ownership, expiration detection, access review, backup or recovery expectations and revocation where relevant.

A certificate replacement is not complete when the new certificate appears in the vault. Consumers may cache old versions; an application gateway, web service or managed connector may need to reload or bind the new certificate. Test the actual client endpoint after rollout and retain a controlled rollback plan. The certificate lifecycle spans issuance, renewal, consumer binding and trust validation; SC-500 adds the security review of identities, vault networking and risk signals.

Use rotation tests that include dependent workloads

Write down every deployment that reads a critical secret, whether it uses a versionless URI, a pinned version or a copied configuration value. Rotate in a test environment, confirm all clients can use the new version, and verify that retired credentials stop working when the underlying provider is updated. For an external API credential, creating a new secret version in Key Vault does not invalidate the old value at the provider; the two changes must be coordinated.

Set alerts for nearing expiration and unusual retrieval behavior, but avoid relying on a notification as the entire continuity plan. When a rotation fails, restore service through the approved path without exposing the secret in a ticket, chat or log. Audit the origin and principal of retrieval attempts to distinguish a broken deployment from a potential credential misuse incident.

Combine Defender protections with access controls

Microsoft Defender for Key Vault can identify suspicious vault access patterns, while Defender CSPM can surface certain exposure and secret-management risks. Verify the intended protection plan and prerequisites, and confirm the service is actually generating relevant alerts rather than assuming it is enabled from a subscription label. Alerts are detection evidence, not preventive authorization rules. Respond according to the risk and observed context.

A sudden series of denied secret reads may indicate misconfiguration, credential guessing or compromised automation. Examine principal identity, source network, request result and prior changes before declaring a breach. A successful read from a normally quiet identity deserves attention, especially when preceded by a role assignment change. Route findings into the team’s incident workflow without leaking secret values into analysis notes.

Protect against irreversible administration mistakes

Use the available soft-delete, purge-protection and recovery capabilities that meet the organization’s data and retention requirements. A resource lock can discourage casual deletion but is not a substitute for vault recovery controls or privileged change management. Understand which administrator operations remain possible and which require additional approvals. Recovery drills should prove that a vault or deleted secret can be restored within acceptable business conditions, including dependent app recovery.

Check backup and restore compatibility, expected encryption-key access and the effect of disabling a customer-managed key on a dependent service. A secure design can produce an outage if a critical key becomes unavailable without a continuity plan. SC-500 engineers should be able to evaluate that trade-off while keeping key material and elevated privileges appropriately protected.

Verify the complete authorization and network story

A concise lab can test four outcomes: approved workload and allowed network succeeds; unapproved identity on allowed network fails; approved identity from blocked network fails; and a newly revoked role no longer retrieves a secret. Observe the response and logs for each case. If all requests succeed, a security boundary is missing; if all fail, the deployment is not functional security.

Document vault settings, private endpoint, DNS zone, network restrictions, principal assignments, lifecycle actions, Defender configuration and recovery ownership. Preserve the final state in infrastructure code where supported and investigate drift with Azure Policy and governance controls. The SC-500 implementation skill is not clicking “Enable firewall”; it is establishing that a named workload gets exactly the secret access it needs from the intended location and no broader entitlement.

Filed under AI & Data