Data protection procedures
Use these procedures with the data protection architecture, guidelines, and the per-resource implementation guidelines. Confirm resource-specific settings against IaC and deployed Azure state before changing them.
Onboard a data store
- Inventory the data fields, customer/tenant keys, authority, consumers, residency, approved retention, deletion path, and recovery objective.
- Enable Azure encryption at rest and TLS 1.2 or later.
- Grant workload access through managed identity and narrow data-plane RBAC.
- Apply the resource’s service-specific ZPA network configuration; use private access where it is implemented and supported.
- Configure backup or PITR and write a restore procedure.
- Enable audit diagnostics and alerts for anomalous or cross-tenant access.
- Test tenant isolation, denied principals, restore, and deletion behavior.
Store and rotate a third-party secret
- Confirm managed identity or federation is unavailable and record the exception.
- Store the credential as a new Key Vault secret version. Do not put it in App Configuration, source, workflow variables, logs, or traces.
- Grant the workload managed identity
Key Vault Secrets Useror a narrower approved role on the vault. - Read it with
DefaultAzureCredentialand the Key Vault SDK. - During rotation, create the new upstream credential and vault version, switch the workload, verify health, then revoke the old upstream credential.
Restore a Cosmos DB event store
- Identify the source account, containers, restore timestamp, and incident scope.
- Restore to a new account using the configured continuous-backup capability; do not assume in-place restore.
- Apply the target account’s identity, ZPA network configuration, diagnostics, and encryption settings before exposing it to workloads.
- Validate stream completeness, tenant boundaries, and expected checksums or event counts.
- Rebuild derived projections and compare domain invariants before cutover.
- Record recovered and unrecoverable intervals and retain incident evidence.
Implement event archival and retention
This is a target workflow, not a description of current deployment:
- Select events older than six months without changing event order or identity.
- Write immutable archive objects to Blob Storage with tenant and stream lookup metadata.
- Verify object durability, checksum, schema readability, and replay from hot plus cold history.
- Record an idempotent archival checkpoint.
- Only after verification, make the archived item eligible for event-store TTL.
- Retain the cold copy for one year, then delete it through a controlled, auditable lifecycle policy.
- Alert on archive lag, verification failure, replay failure, and premature TTL.
Until this workflow is deployed and tested, leave live events intact and report the current retention gap explicitly.
Fulfil a deletion request
- Resolve the subject and all customer/tenant aliases through an authorized workflow.
- Identify authoritative records, event payloads, projections, caches, indexes, telemetry, exports, and third-party copies.
- Apply the domain-approved deletion, redaction, or cryptographic erasure method.
- Rebuild or purge derived stores and invalidate caches.
- Record how backup copies expire under their retention schedule.
- Verify the subject can no longer be retrieved through supported product and operational paths, then retain non-sensitive completion evidence.
Investigate data access
Query by resource ID, principal, tenant/customer, operation, correlation ID, and time window. Correlate application authorization with Azure data-plane logs. Escalate bulk reads, unexpected principals, missing tenant scope, failed restores, and Key Vault spikes.