如何满足 Azure Cosmos DB 的数据驻留要求How to meet data residency requirements in Azure Cosmos DB

通过 Azure Cosmos DB 可以将数据和备份配置并保留到单个区域中,满足驻留要求。In Azure Cosmos DB, you can configure your data and backups to remain in a single region to meet the residency requirements.

数据驻留要求Residency requirements for data

在 Azure Cosmos DB,必须显式配置跨区域数据复制。In Azure Cosmos DB, you must explicitly configure the cross-region data replication. 了解如何使用 Azure 门户Azure CLI 配置异地复制数据。Learn how to configure geo-replication using Azure portal, Azure CLI. 为满足数据驻留要求,可以创建一个 Azure 策略,阻止某些区域向不需要的区域复制数据。To meet data residency requirements, you can create an Azure policy that allows certain regions to prevent data replication to unwanted regions.

备份的驻留要求Residency requirements for backups

周期模式备份:默认情况下,周期模式备份会存储到异地冗余存储中。Periodic mode Backups: By default, periodic mode account backups will be stored in geo-redundant storage. 对于周期备份模式,可以在帐户级别配置数据冗余。For periodic backup modes, you can configure data redundancy at the account level. 备份存储有三个冗余选项。There are three redundancy options for the backup storage. 分别是本地冗余、区域冗余或异地冗余。They are local redundancy, zone redundancy, or geo redundancy. 了解更多信息,请参阅如何使用门户配置备份冗余To learn more, see how to configure backup redundancy using portal.

使用 Azure Policy 强制实施驻留要求Use Azure Policy to enforce the residency requirements

如果你有将所有数据保留在单个 Azure 区域中的数据冗余要求,可以使用 Azure Policy 为帐户强制实施零冗余或本地冗余备份。If you have data residency requirements that require you to keep all your data in a single Azure region, you can enforce zone-redundant or locally redundant backups for your account by using an Azure Policy. 还可以强制执行策略:不将 Azure Cosmos DB 帐户异地复制到其他区域。You can also enforce a policy that the Azure Cosmos DB accounts are not geo-replicated to other regions.

Azure Policy 是一项服务,可用于创建、分配和管理将规则应用于 Azure 资源的策略。Azure Policy is a service that you can use to create, assign, and manage policies that apply rules to Azure resources. Azure Policy 可帮助你确保这些资源始终符合公司标准和服务级别协议。Azure Policy helps you to keep these resources compliant with your corporate standards and service level agreements. 更多信息,请参阅如何使用 Azure Policy 实现 Azure Cosmos DB 资源的治理和控制For more information, see how to use Azure Policy to implement governance and controls for Azure Cosmos DB resources

后续步骤Next steps