You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure Recovery Services Vault默认GRS,如何切换为LRS冗余配置?

How to Switch Your Azure Recovery Services Vault from GRS to LRS

Got it, let's break this down clearly. First, a critical prerequisite: you can only modify the replication type if there are no existing backup items in the vault. Once you've backed up any resources (VMs, databases, etc.), the replication setting gets locked and can't be changed. So if you already have backups stored, you'll need to delete all recovery points and backup items first before proceeding.

Method 1: Azure Portal

This is the most straightforward way for most users:

  • Log into the Azure Portal and navigate to your Recovery Services Vault.
  • On the left sidebar, under the Settings section, click Properties.
  • Scroll down to the Backup Replication area. If the vault is empty, you'll see an Update button next to the current replication type (which defaults to Geo-redundant storage (GRS)).
  • Click Update, select Locally-redundant storage (LRS) from the dropdown menu, then hit Save to confirm the change.

Method 2: PowerShell

If you prefer scripting or need to automate this:
First, ensure you have the Azure PowerShell module installed and you're authenticated to your Azure account with Connect-AzAccount. Then run these commands:

# Replace with your vault name and resource group name
$vaultName = "YourRecoveryServicesVaultName"
$resourceGroupName = "YourResourceGroupName"

# Retrieve the vault object
$vault = Get-AzRecoveryServicesVault -Name $vaultName -ResourceGroupName $resourceGroupName

# Set replication to LRS
Set-AzRecoveryServicesBackupProperty -Vault $vault -BackupStorageRedundancy LocallyRedundant

Method 3: Azure CLI

For CLI users, authenticate first with az login, then execute:

# Replace with your vault and resource group details
az backup vault backup-properties set \
  --name "YourRecoveryServicesVaultName" \
  --resource-group "YourResourceGroupName" \
  --backup-storage-redundancy "LocallyRedundant"

Quick Note

If the replication type option is grayed out in the portal, that's a sure sign there's still backup data in the vault. Head to the Backup items section, delete all existing items, and wait for the recovery points to be fully removed before trying to update the replication setting again.

内容的提问来源于stack exchange,提问作者Manu

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.12 04:36:13