快速入门:创建管理组Quickstart: Create a management group

管理组是一些容器,可以帮助跨多个订阅管理访问权限、策略和符合性。Management groups are containers that help you manage access, policy, and compliance across multiple subscriptions. 可以创建这些容器来构建可以与 Azure PolicyAzure 基于角色的访问控制配合使用的有效且高效的层次结构。Create these containers to build an effective and efficient hierarchy that can be used with Azure Policy and Azure Role Based Access Controls. 若要详细了解管理组,请参阅使用 Azure 管理组整理资源For more information on management groups, see Organize your resources with Azure management groups.

在目录中创建的第一个管理组可能需要最多 15 分钟才能完成。The first management group created in the directory could take up to 15 minutes to complete. 一些进程会首次运行以在 Azure 中为目录设置管理组服务。There are processes that run the first time to set up the management groups service within Azure for your directory. 在进程完成后将显示通知。You receive a notification when the process is complete. 有关详细信息,请参阅管理组的初始设置For more information, see initial setup of management groups.

先决条件Prerequisites

  • 如果没有 Azure 订阅,请在开始前创建一个试用帐户If you don't have an Azure subscription, create a trial account before you begin.

  • 如果未启用层次结构保护,则租户中的任何 Azure AD 用户即使未分配有管理组写入权限,也可创建管理组。Any Azure AD user in the tenant can create a management group without the management group write permission assigned to that user if hierarchy protection isn't enabled. 这个新的管理组将成为根管理组的子级或默认管理组,并将为创建者分配“所有者”角色。This new management group becomes a child of the Root Management Group or the default management group and the creator is given an "Owner" role assignment. 管理组服务允许此功能,因此不需要在根级别分配角色。Management group service allows this ability so that role assignments aren't needed at the root level. 创建根管理组时,用户没有访问权限。No users have access to the Root Management Group when it's created. 为避免在查找 Azure AD 全局管理员以开始使用管理组方面遇到阻碍,我们允许在根级别创建初始管理组。To avoid the hurdle of finding the Azure AD Global Admins to start using management groups, we allow the creation of the initial management groups at the root level.

在门户中创建Create in portal

  1. 登录到 Azure 门户Log into the Azure portal.

  2. 选择“所有服务” > “管理 + 治理” 。Select All services > Management + governance.

  3. 选择“管理组”。Select Management Groups.

  4. 选择“+ 添加管理组”。****Select + Add management group.

    显示子管理组和订阅的“管理组”页面的屏幕截图。

  5. 选择“新建”,然后填写管理组 ID 字段。Leave Create new selected and fill in the management group ID field.

    • “管理组 ID”是用来在此管理组上提交命令的目录唯一标识符。The Management Group ID is the directory unique identifier that is used to submit commands on this management group. 此标识符一旦创建便无法再编辑,因为它用来在整个 Azure 系统中标识这个组。This identifier isn't editable after creation as it's used throughout the Azure system to identify this group. 根管理组是自动创建的,其 ID 为 Azure Active Directory ID。The root management group is automatically created with an ID that is the Azure Active Directory ID. 对于所有其他管理组,请分配唯一的 ID。For all other management groups, assign a unique ID.
    • 显示名称字段是在 Azure 门户中显示的名称。The display name field is the name that is displayed within the Azure portal. 创建管理组时,单独的显示名称是一个可选字段,并且可以随时更改。A separate display name is an optional field when creating the management group and can be changed at any time.

    用于创建新管理组的“添加管理组”选项的屏幕截图。

  6. 选择“保存” 。Select Save.

清理资源Clean up resources

若要删除创建的管理组,请执行以下步骤:To remove the management group created, follow these steps:

  1. 选择“所有服务” > “管理 + 治理” 。Select All services > Management + governance.

  2. 选择“管理组”。Select Management Groups.

  3. 找到前面创建的管理组,选择它,然后选择名称旁边的“详细信息”。Find the management group created above, select it, then select Details next to the name. 然后选择“删除”并确认提示。Then select Delete and confirm the prompt.

后续步骤Next steps

在本快速入门中,你创建了一个管理组来整理资源层次结构。In this quickstart, you created a management group to organize your resource hierarchy. 管理组可以包含订阅或其他管理组。The management group can hold subscriptions or other management groups.

要详细了解管理组以及如何管理资源层次结构,请继续执行以下操作:To learn more about management groups and how to manage your resource hierarchy, continue to: