Azure Recovery Services Vault public network access needs review

Restrict unnecessary public access while preserving required backup and restore paths.

Description

Public network access makes a Recovery Services vault reachable through a public endpoint. Reading or restoring backups still requires authorization. Connectivity varies by workload, and Azure VM backups do not inherently transfer data over the internet.

Potential impact

A public endpoint may violate a private-connectivity requirement. Removing it before the private paths are ready can break restores even when backups succeed.

Remediation

  1. Check private-endpoint support for your workload. A vault that has already protected or registered items has restrictions on adding its first private endpoint. If you need to migrate, preserve the existing recovery points.
  2. Configure the required private endpoints, DNS and service connections, then test backup and restore. Set public_network_access_enabled = false and verify the restores you need, including item-level recovery.

Examples

The excerpts change only the public-access setting on the same vault. Configure private endpoints and DNS separately.

Before

hcl
resource "azurerm_recovery_services_vault" "recovery_vault" {
  name                = "app-recovery-vault"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  sku                 = "Standard"
  public_network_access_enabled = true
}

After

hcl
resource "azurerm_recovery_services_vault" "recovery_vault" {
  name                = "app-recovery-vault"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  sku                 = "Standard"
  public_network_access_enabled = false
}

References