Networking
Azure Firewall Premium: validate the TLS inspection certificate rotation before cutover
A production runbook for qualifying an Azure Firewall Premium TLS inspection CA rotation across Key Vault, managed identity, client trust, canary traffic and rollback.
The intermediate CA used by Azure Firewall Premium TLS inspection expires in three weeks. A new certificate has been imported into Key Vault, and every endpoint should already trust the corporate root. Updating the Firewall Policy reference looks like a routine rotation.
It is also a change to every inspected TLS session covered by that policy. A valid Key Vault object can still be unusable by the firewall, a client estate can trust the old chain but not the new one, and an application can rely on certificate pinning or mutual TLS. This runbook proves each boundary before production cutover and ends with an explicit promote, hold or rollback decision.
Freeze the current inspection contract
Record the active Firewall Policy, intermediate CA secret reference, managed identity, Key Vault, affected rule collections, client populations and destinations. Preserve the current certificate until the rollback window closes; a new Key Vault version is not a rollback if the policy can no longer select the previous usable certificate.
change: CHG-NET-1042
firewall_policy: azfw-policy-prod
inspection_scope:
sources:
- spoke-app-prod
- spoke-build-prod
destinations:
- packages.example.net
- api.partner.example
current_ca:
secret_version: kv-version-old
expires_at: 2026-11-21T23:59:59Z
candidate_ca:
secret_version: kv-version-new
not_before: 2026-10-20T00:00:00Z
rollback:
previous_reference_preserved: true
previous_ca_still_valid: true
owner: network-on-call Do not treat “TLS inspection enabled” as the full scope. Inspection is activated by application rules, and traffic can also bypass it because of another rule, protocol or destination. Capture which flows must be inspected, which are deliberately excluded, and which are unsupported before comparing results.
Qualify the candidate CA before Azure reads it
Azure Firewall Premium expects an exportable intermediate CA with its private key, stored through the Key Vault secret interface as a password-less PFX. The object must contain one certificate rather than the full chain. Validate the candidate in a controlled certificate-handling environment, without copying private-key material into tickets or logs.
PFX="candidate-firewall-ca.pfx"
# Inspect metadata only in the approved certificate workspace.
openssl pkcs12 -in "$PFX" -passin pass: -nokeys | openssl x509 -noout -subject -issuer -serial -dates -fingerprint -sha256 -text
# Confirm that the password-less PFX contains a private key.
openssl pkcs12 -in "$PFX" -passin pass: -nocerts -nodes | openssl pkey -check -noout Review the output for an RSA key of at least 4096 bits, critical Basic Constraints with CA:TRUE, critical Key Usage including certificate signing, and a path length compatible with generated leaf certificates. Confirm that the validity window covers the operational period. A syntactically valid PFX that violates the CA profile must block the rotation.
Prove the Key Vault and identity path
Importing a certificate through Key Vault Certificates creates a corresponding secret, but Azure Firewall retrieves the material through the secret interface. Verify the exact secret version, that it is enabled and inside its validity window, and that the user-assigned managed identity configured on the policy can read the required secret without broader vault administration rights.
RG="rg-network-prod"
POLICY="azfw-policy-prod"
VAULT="kv-network-prod"
SECRET="azfw-tls-inspection-ca"
az network firewall policy show --resource-group "$RG" --name "$POLICY" --query '{identity:identity,transportSecurity:transportSecurity}' --output json > firewall-policy-before.json
az keyvault secret show --vault-name "$VAULT" --name "$SECRET" --query '{id:id,enabled:attributes.enabled,notBefore:attributes.notBefore,expires:attributes.expires,contentType:contentType}' --output json Do not print the secret value. Also verify Key Vault network controls and the authorization model actually deployed. The useful test is not that an administrator can browse the certificate; it is that the policy’s configured identity can retrieve the secret in the production network and authorization context.
Importing a new version does not by itself rotate the firewall. The change plan must explicitly update the Firewall Policy TLS inspection certificate selection, then wait for the policy deployment to finish before testing data-plane traffic.
Separate client trust from firewall retrieval
The firewall needs the intermediate CA private key to mint a certificate for the requested destination. The client needs a trust chain leading to the corporate root. Those are independent checks: successful policy deployment does not prove that Linux images, Windows devices, containers, Java trust stores and language runtimes trust the candidate chain.
Build a client matrix around real production families rather than one administrator workstation.
clients:
- family: windows-domain-joined
trust_source: enterprise-policy
canary: vm-win-canary
- family: linux-base-image
trust_source: ca-certificates-image-layer
canary: vm-linux-canary
- family: java-runtime
trust_source: application-truststore
canary: payments-worker-canary
- family: container-build
trust_source: build-image
canary: private-runner-canary
special_cases:
- certificate_pinning
- mutual_tls
- custom_trust_store
- quic_or_http3
- non_http_tls Certificate pinning can reject the firewall-generated leaf even when the chain is trusted. Mutual TLS requires separate treatment because the firewall does not have the client private key needed to replay client authentication. QUIC/HTTP3 traffic is not the same inspection path as HTTPS over TCP. Classify these flows before rotation; do not discover them by globally breaking traffic.
Rehearse on an isolated policy
Attach the candidate CA to a non-production Firewall Policy or an isolated Premium firewall that mirrors the production rule and routing path. Route only approved canary clients through it. The rehearsal must prove both an inspected destination and a control destination whose expected behavior is known.
From each client family, create a fresh TCP/TLS connection, retain the generated leaf certificate metadata, and complete an application-level request. A TLS handshake alone can pass while the HTTP request is denied, redirected or broken by the application.
TARGET="packages.example.net"
curl --fail --silent --show-error --connect-timeout 5 --max-time 20 --output /dev/null --write-out 'status=%{http_code} remote=%{remote_ip} time=%{time_total}
' "https://$TARGET/health"
openssl s_client -connect "$TARGET:443" -servername "$TARGET" </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -serial -dates -fingerprint -sha256 Match the observed issuer and fingerprint to the candidate PKI contract without exposing the private key. Repeat from a client that has not received the candidate trust chain: that negative canary should fail as designed. It proves that the test is actually traversing inspection instead of an uninspected path.
Correlate the canary with firewall evidence
Preserve client timestamp, source IP, FQDN, policy deployment state, HTTP result and certificate fingerprint. Then locate the same request in Azure Firewall application-rule logs. If resource-specific tables are not enabled, the legacy diagnostic view can still prove that the application rule processed the URL.
let start = datetime(2026-10-31T06:30:00Z);
let stop = datetime(2026-10-31T06:45:00Z);
let sourceIp = "10.42.6.17";
AzureDiagnostics
| where TimeGenerated between (start .. stop)
| where ResourceType == "AZUREFIREWALLS"
| where Category == "AzureFirewallApplicationRule"
| where msg_s has sourceIp
| where msg_s has "packages.example.net"
| project TimeGenerated, Resource, msg_s
| order by TimeGenerated asc Adapt the query to resource-specific tables when those are your diagnostic contract. Absence from logs is not a successful inspection result: first prove diagnostic coverage, rule selection and the effective route. Also watch client TLS failures, application dependency errors and firewall health during the same UTC window.
Cut over with gates, not calendar pressure
Schedule the production update while the old CA remains valid. Refresh a bounded client cohort first, establish new connections, and keep long-lived connection reuse from hiding the new handshake. Promotion requires evidence from every material client family and at least one representative destination per inspected rule family.
PROMOTE
Candidate CA profile and private-key presence validated
Exact Key Vault secret version is enabled and readable by policy identity
Isolated policy deployment completed
Positive canaries show the candidate chain and pass application checks
Negative canary proves inspection is traversed
Firewall logs correlate source, FQDN, rule and UTC window
Pinning, mTLS, QUIC and custom trust stores are classified
HOLD
Any client family has unknown trust distribution
Policy identity retrieval cannot be proved
Candidate certificate profile is incomplete
Canary succeeds without an explainable firewall log
ROLL BACK
Restore the previous Firewall Policy certificate selection
Wait for policy deployment completion
Open fresh TLS sessions from the same canaries
Confirm the previous chain and application result
Preserve failed fingerprints, logs and policy state Do not use “disable TLS inspection everywhere” as the default rollback. That changes the security contract and removes visibility on every covered flow. Return to the previous known-good CA reference while it is still valid. A bypass is a separate, explicitly scoped emergency decision.
Conclusion
An Azure Firewall Premium TLS inspection rotation crosses four systems: PKI, Key Vault, Firewall Policy and client trust. Validating only the new certificate leaves the most important production paths untested.
The cutover is ready when the candidate CA profile, policy identity, client matrix, inspected canary and firewall evidence agree. Otherwise hold the change or restore the previous certificate selection, then repeat the same canaries. The rollback is complete only when fresh sessions again present the expected chain and the application path is healthy.