An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
Dear Onur,
Yes, but the solution is architectural rather than a built-in Azure guarantee.
Options:
- Application-level fencing (recommended): Use a generation/epoch token. When the standby becomes active, it gets a new token, and downstream services reject traffic from the old gateway generation. This provides a strong, verifiable fence.
Connection draining + shutdown: Stop accepting new connections, drain existing sessions, then disable NIC/LB access and shut down the VM. This reduces risk but does not provide a formal "zero bytes after acknowledgment" guarantee.
Mutual TLS certificate rotation: Issue a new certificate to the replacement gateway and revoke/stop trusting the old one. Existing connections eventually terminate, but this is not an instant dataplane fence.
External lease/quorum system: Use a distributed lock (e.g., consensus-based leader election). Only the current lease holder can transmit. This prevents split-brain behavior and is commonly used for active/standby systems.