使用 Azure Cosmos 帐户Work with Azure Cosmos account

Azure Cosmos DB 是完全托管的平台即服务 (PaaS)。Azure Cosmos DB is a fully managed platform-as-a-service (PaaS). 若要开始使用 Azure Cosmos DB,首先应在 Azure 订阅中创建一个 Azure Cosmos 帐户。To begin using Azure Cosmos DB, you should initially create an Azure Cosmos account in your Azure subscription. Azure Cosmos 帐户包含唯一的 DNS 名称,可以使用 Azure 门户、Azure CLI 或不同的特定于语言的 SDK 来管理帐户。Your Azure Cosmos account contains a unique DNS name and you can manage an account by using Azure portal, Azure CLI or by using different language-specific SDKs. 有关详细信息,请参阅如何管理 Azure Cosmos 帐户For more information, see how to manage your Azure Cosmos account.

Azure Cosmos 帐户是多区域分布和高可用性的基本单元。The Azure Cosmos account is the fundamental unit of multiple-region distribution and high availability. 要在多个 Azure 区域之间多区域分配数据和吞吐量,随时可在 Azure Cosmos 帐户中添加和删除 Azure 区域。For multiple-regionally distributing your data and throughput across multiple Azure regions, you can add and remove Azure regions to your Azure Cosmos account at any time. 可将 Azure Cosmos 帐户配置为使用一个或多个写入区域。You can configure your Azure Cosmos account to have either a single or multiple write regions. 有关详细信息,请参阅如何在 Azure Cosmos 帐户中添加和删除 Azure 区域For more information, see how to add and remove Azure regions to your Azure Cosmos account. 可以在 Azure Cosmos 帐户中配置默认一致性级别。You can configure the default consistency level on Azure Cosmos account. Azure Cosmos DB 提供综合性的 SLA,涵盖了吞吐量、99% 时间内的延迟、一致性和高可用性。Azure Cosmos DB provides comprehensive SLAs encompassing throughput, latency at the 99th percentile, consistency, and high availability. 有关详细信息,请参阅 Azure Cosmos DB SLAFor more information, see Azure Cosmos DB SLAs.

若要安全管理对 Azure Cosmos 帐户中所有数据的访问,可以使用与帐户关联的主密钥To securely manage access to all the data within your Azure Cosmos account, you can use the master keys associated with your account. 若要进一步保护对数据的访问,可在 Azure Cosmos 帐户中配置 VNET 服务终结点IP 防火墙To further secure access to your data, you can configure a VNET service endpoint and IP-firewall on your Azure Cosmos account.

Azure Cosmos 帐户中的元素Elements in an Azure Cosmos account

Azure Cosmos 容器是基本的缩放单元。Azure Cosmos container is the fundamental unit of scalability. 容器可以提供几乎无限的预配吞吐量 (RU/s) 和存储。You can virtually have an unlimited provisioned throughput (RU/s) and storage on a container. Azure Cosmos DB 使用指定的逻辑分区键以透明方式将容器分区,以弹性缩放预配吞吐量和存储。Azure Cosmos DB transparently partitions your container using the logical partition key that you specify in order to elastically scale your provisioned throughput and storage. 有关详细信息,请参阅使用 Azure Cosmos 容器和项For more information, see working with Azure Cosmos containers and items.

目前,在一个 Azure 订阅下最多可以创建 100 个 Azure Cosmos 帐户。Currently, you can create a maximum of 100 Azure Cosmos accounts under an Azure subscription. 单个 Azure Cosmos 帐户几乎可以管理无限量的数据和预配吞吐量。A single Azure Cosmos account can virtually manage unlimited amount of data and provisioned throughput. 若要管理数据和预配吞吐量,可以在帐户下创建一个或多个 Azure Cosmos 数据库,而在该数据库中,可以创建一个或多个容器。To manage your data and provisioned throughput, you can create one or more Azure Cosmos databases under your account and within that database, you can create one or more containers. 下图显示了 Azure Cosmos 帐户中的元素层次结构:The following image shows the hierarchy of elements in an Azure Cosmos account:

Azure Cosmos 帐户的层次结构

后续步骤Next steps

了解如何管理 Azure Cosmos 帐户,以及了解其他概念:Learn how to manage your Azure Cosmos account and other concepts: