您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

使用 Azure 门户管理 Azure 资源管理器资源组Manage Azure Resource Manager resource groups by using the Azure portal

了解如何将 Azure 门户Azure 资源管理器配合使用来管理 Azure 资源组。Learn how to use the Azure portal with Azure Resource Manager to manage your Azure resource groups. 若要管理 Azure 资源,请参阅使用 Azure 门户管理 Azure 资源For managing Azure resources, see Manage Azure resources by using the Azure portal.

有关资源组管理的其他文章:Other articles about managing resource groups:

备注

本文介绍如何删除设备或服务中的个人数据,并且可为 GDPR 下的任务提供支持。This article provides steps for how to delete personal data from the device or service and can be used to support your obligations under the GDPR. 如需关于 GDPR 的常规信息,请参阅服务信任门户的 GDPR 部分If you’re looking for general info about GDPR, see the GDPR section of the Service Trust portal.

什么是资源组What is a resource group

资源组是用于保存 Azure 解决方案相关资源的容器。A resource group is a container that holds related resources for an Azure solution. 资源组可以包含解决方案的所有资源,也可以只包含想要作为组来管理的资源。The resource group can include all the resources for the solution, or only those resources that you want to manage as a group. 根据对组织有利的原则,决定如何将资源分配到资源组。You decide how you want to allocate resources to resource groups based on what makes the most sense for your organization. 通常可将共享相同生命周期的资源添加到同一资源组,以便将其作为一个组轻松部署、更新和删除。Generally, add resources that share the same lifecycle to the same resource group so you can easily deploy, update, and delete them as a group.

资源组存储与资源有关的元数据。The resource group stores metadata about the resources. 因此,当指定资源组的位置时,也就指定了元数据的存储位置。Therefore, when you specify a location for the resource group, you are specifying where that metadata is stored. 出于合规性原因,可能需要确保数据存储在某一特定区域。For compliance reasons, you may need to ensure that your data is stored in a particular region.

” 资源组存储有关资源的元数据。The resource group stores metadata about the resources. 指定资源组的位置时,也会指定元数据的存储位置。When you specify a location for the resource group, you're specifying where that metadata is stored.

创建资源组Create resource groups

  1. 登录到 Azure 门户Sign in to the Azure portal.

  2. 选择“资源组” Select Resource groups

    添加资源组

  3. 选择 添加Select Add.

  4. 输入以下值:Enter the following values:

    • 订阅:选择 Azure 订阅。Subscription: Select your Azure subscription.

    • 资源组:输入新的资源组名称。Resource group: Enter a new resource group name.

    • 区域:选择某一 Azure 位置,如美国中部Region: Select an Azure location, such as Central US.

      创建资源组

  5. 选择“查看 + 创建” Select Review + Create

  6. 选择“创建” 。Select Create. 创建资源组需要几秒钟的时间。It takes a few seconds to create a resource group.

  7. 在顶部菜单中选择“刷新”以刷新资源组列表,然后选择新建的资源组将其打开。 Select Refresh from the top menu to refresh the resource group list, and then select the newly created resource group to open it. 或者,选择顶部的“通知”(钟形图标),然后选择“转到资源组”打开新建的资源组 Or select Notification(the bell icon) from the top, and then select Go to resource group to open the newly created resource group

    转到资源组

列出资源组List resource groups

  1. 登录到 Azure 门户Sign in to the Azure portal.

  2. 若要列出资源组,请选择“资源组” To list the resource groups, select Resource groups

    浏览资源组

  3. 若要自定义显示的资源组信息,请选择“编辑列” 。To customize the information displayed for the resource groups, select Edit columns. 以下屏幕截图显示了可添加到画面中的附加列:The following screenshot shows the addition columns you could add to the display:

打开资源组Open resource groups

  1. 登录到 Azure 门户Sign in to the Azure portal.
  2. 选择“资源组” 。Select Resource groups.
  3. 选择要打开的资源组。Select the resource group you want to open.

删除资源组Delete resource groups

  1. 打开要删除的资源组。Open the resource group you want to delete. 参阅打开资源组See Open resource groups.

  2. 选择“删除资源组” 。Select Delete resource group.

    删除 Azure 资源组

若要详细了解 Azure 资源管理器如何控制资源的删除,请参阅 Azure 资源管理器资源组的删除For more information about how Azure Resource Manager orders the deletion of resources, see Azure Resource Manager resource group deletion.

将资源部署到资源组Deploy resources to a resource group

创建资源管理器模板后,可以使用 Azure 门户部署 Azure 资源。After you have created a Resource Manager template, you can use the Azure portal to deploy your Azure resources. 有关如何创建模板,请参阅快速入门:使用 Azure 门户创建和部署 Azure 资源管理器模板For creating a template, see Quickstart: Create and deploy Azure Resource Manager templates by using the Azure portal. 有关如何使用门户部署模板,请参阅使用资源管理器模板和 Azure 门户部署资源For deploying a template using the portal, see Deploy resources with Resource Manager templates and Azure portal.

移到另一个资源组或订阅Move to another resource group or subscription

可将组中的资源移到另一个资源组。You can move the resources in the group to another resource group. 有关详细信息,请参阅将资源移到新资源组或订阅For more information, see Move resources to new resource group or subscription.

锁定资源组Lock resource groups

锁定可以防止组织中的其他用户意外删除或修改关键资源,例如 Azure 订阅、资源组或资源。Locking prevents other users in your organization from accidentally deleting or modifying critical resources, such as Azure subscription, resource group, or resource.

  1. 打开要删除的资源组。Open the resource group you want to delete. 参阅打开资源组See Open resource groups.

  2. 在左窗格中选择“锁定” 。In the left pane, select Locks.

  3. 若要将锁添加到资源组,请选择“添加”。 To add a lock to the resource group, select Add.

  4. 输入“锁定名”、“锁类型”和“备注”。 Enter Lock name, Lock type, and Notes. 锁类型包括“只读”和“删除”。 The lock types include Read-only, and Delete.

    锁定 Azure 资源组

有关详细信息,请参阅锁定资源以防止意外更改For more information, see Lock resources to prevent unexpected changes.

标记资源组Tag resource groups

可以将标记应用到资源组和资源,以按照逻辑组织资产。You can apply tags to resource groups and resources to logically organize your assets. 有关信息,请参阅使用标记组织 Azure 资源For information, see Using tags to organize your Azure resources.

将资源组导出到模板Export resource groups to templates

有关导出模板的信息,请参阅单个和多资源导出到模板中-门户For information about exporting templates, see Single and multi-resource export to template - Portal.

管理对资源组的访问Manage access to resource groups

可以在 Azure 中通过基于角色的访问控制 (RBAC) 这种方式管理对资源的访问。Role-based access control (RBAC) is the way that you manage access to resources in Azure. 有关详细信息,请参阅使用 RBAC 和 Azure 门户管理访问权限For more information, see Manage access using RBAC and the Azure portal.

后续步骤Next steps