- In case of an East US Key Vault resource failure, will the
mykv-eus-pep
private endpoint point to the West US replica?- No, the private endpoint (
mykv-eus-pep
) in the East US (eus_vnet/eus_sub
) is tied specifically to the Key Vault's primary region. If the Key Vault in East US fails, private endpoint connections frommykv-eus-pep
will not automatically redirect to the West US replica. Failover to the paired region (West US) happens at the Key Vault resource level, but the private endpoint does not automatically re-establish connectivity to the new primary region.
- No, the private endpoint (
- In case of an entire East US region failure, will
mykv-eus-pep
continue to work?- No, the private endpoint (
mykv-eus-pep
) in the East US (eus_vnet/eus_sub
) is also hosted in the East US region. If the entire East US region fails, the private endpoint will no longer function because both the endpoint and its associated network infrastructure depend on the East US region.
- No, the private endpoint (
- How to configure private access from
wus_vnet/wus_sub
for failover scenarios?- You need to create a second private endpoint in the West US virtual network (
wus_vnet/wus_sub
). However, private endpoints can only be created for the primary region of a resource. In your scenario, this would mean:- During normal operation (East US is active), the Key Vault is only accessible via the East US private endpoint (
mykv-eus-pep
). - During a failover, you would need to manually create or reconfigure a private endpoint in the West US (
wus_vnet/wus_sub
) to connect to the Key Vault in its new primary region.
- During normal operation (East US is active), the Key Vault is only accessible via the East US private endpoint (
- You need to create a second private endpoint in the West US virtual network (
- Does this apply to similar resources like ACR and CosmosDB?
- Azure Container Registry (ACR): ACR also supports private endpoints and geo-replication. Similar to Key Vault, the private endpoint is tied to the primary region. During failover, you would need to manually create a new private endpoint in the secondary region.
- Azure Cosmos DB: Cosmos DB has multi-region write capabilities, and private endpoints can be configured per region. For high availability, you can pre-create private endpoints in multiple regions (e.g., East US and West US) to ensure continued access during a failover event.
Recommendations:
- Design for Resiliency:
- Pre-create private endpoints in both East US and West US regions for services like CosmosDB, which support multi-region private endpoints.
- For Key Vault and ACR, prepare failover scripts to create new private endpoints in the secondary region in case of a region-wide failure.
- Monitor Failover: Use Azure monitoring tools to detect failovers and automate the creation or reconfiguration of private endpoints.
- Test Disaster Recovery: Simulate region failures and test the behavior of private endpoints and failover configurations to validate your approach.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin