Microsoft.Management managementGroups

Bicep 資源定義

managementGroups 資源類型是 延伸模組資源,這表示您可以將它套用至另一個資源。

scope使用此資源上的 屬性來設定此資源的範圍。 請參閱 在 Bicep 中設定擴充功能資源的範圍

managementGroups 資源類型可以使用目標作業進行部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

備註

部署在租使用者範圍時,請勿設定 scope 屬性。 請參閱在 Bicep 檔案ARM 範本中使用租使用者部署來建立管理群組。

在其他範圍部署時,請將 Bicep 檔案或 / ARM 範本的範圍屬性 tenant() 設定為 。 請參閱在 Bicep 檔案ARM 範本中使用管理群組部署來建立管理群組。

資源格式

若要建立 Microsoft.Management/managementGroups 資源,請將下列 Bicep 新增至您的範本。

resource symbolicname 'Microsoft.Management/managementGroups@2021-04-01' = {
  name: 'string'
  scope: tenant()
  properties: {
    details: {
      parent: {
        id: 'string'
      }
    }
    displayName: 'string'
  }
}

屬性值

managementGroups

名稱 描述
NAME 資源名稱 需要字串 ()
scope 在與部署範圍不同的範圍內建立擴充資源時,請使用 。 針對 Bicep: tenant()
properties 建立期間使用之管理群組的泛型屬性。 CreateManagementGroupPropertiesOrManagementGroupProp...

CreateManagementGroupPropertiesOrManagementGroupProp...

名稱 描述
詳細資料 建立期間使用之管理群組的詳細資料。 CreateManagementGroupDetailsOrManagementGroupDetails
displayName 管理群組的易記名稱。 如果未傳遞任何值,此欄位將會設定為 groupId。 string

CreateManagementGroupDetailsOrManagementGroupDetails

名稱 描述
父系 (parent) (選擇性) 建立期間使用的父管理群組識別碼。 CreateParentGroupInfoOrParentGroupInfo

CreateParentGroupInfoOrParentGroupInfo

名稱 描述
id 父管理群組的完整識別碼。 例如,/providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-00000000000000 string

快速入門範本

下列快速入門範本會部署此資源類型。

[範本] 描述
建立新的管理群組

部署至 Azure
此範本是將建立新管理群組的租使用者層級範本。

ARM 範本資源定義

managementGroups 資源類型是 延伸模組資源,這表示您可以將它套用至另一個資源。

scope使用此資源上的 屬性來設定此資源的範圍。 請參閱 在 ARM 範本中設定擴充功能資源的範圍

managementGroups 資源類型可以使用目標作業進行部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

備註

部署在租使用者範圍時,請勿設定 scope 屬性。 請參閱在 Bicep 檔案ARM 範本中使用租使用者部署來建立管理群組。

在其他範圍部署時,請將 Bicep 檔案或 / ARM 範本的範圍屬性 tenant() 設定為 。 請參閱在 Bicep 檔案ARM 範本中使用管理群組部署來建立管理群組。

資源格式

若要建立 Microsoft.Management/managementGroups 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.Management/managementGroups",
  "apiVersion": "2021-04-01",
  "name": "string",
  "scope": "/",
  "properties": {
    "details": {
      "parent": {
        "id": "string"
      }
    },
    "displayName": "string"
  }
}

屬性值

managementGroups

名稱 描述
類型 資源類型 'Microsoft.Management/managementGroups'
apiVersion 資源 API 版本 '2021-04-01'
NAME 資源名稱 需要字串 ()
scope 在與部署範圍不同的範圍內建立擴充資源時,請使用 。 針對 JSON: /
properties 建立期間使用之管理群組的泛型屬性。 CreateManagementGroupPropertiesOrManagementGroupProp...

CreateManagementGroupPropertiesOrManagementGroupProp...

名稱 描述
詳細資料 建立期間使用之管理群組的詳細資料。 CreateManagementGroupDetailsOrManagementGroupDetails
displayName 管理群組的易記名稱。 如果未傳遞任何值,此欄位將會設定為 groupId。 string

CreateManagementGroupDetailsOrManagementGroupDetails

名稱 描述
父系 (parent) (選擇性) 建立期間使用的父管理群組識別碼。 CreateParentGroupInfoOrParentGroupInfo

CreateParentGroupInfoOrParentGroupInfo

名稱 描述
id 父管理群組的完整識別碼。 例如,/providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-00000000000000 string

快速入門範本

下列快速入門範本會部署此資源類型。

[範本] 描述
建立新的管理群組

部署至 Azure
此範本是將建立新管理群組的租使用者層級範本。

Terraform (AzAPI 提供者) 資源定義

managementGroups 資源類型是 延伸模組資源,這表示您可以將它套用至另一個資源。

parent_id使用此資源上的 屬性來設定此資源的範圍。

managementGroups 資源類型可以使用目標作業進行部署:

  • 租用戶

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

若要建立 Microsoft.Management/managementGroups 資源,請將下列 Terraform 新增至您的範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Management/managementGroups@2021-04-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      details = {
        parent = {
          id = "string"
        }
      }
      displayName = "string"
    }
  })
}

屬性值

managementGroups

名稱 描述
類型 資源類型 「Microsoft.Management/managementGroups@2021-04-01」
NAME 資源名稱 需要字串 ()
parent_id 要套用此擴充功能資源的資源識別碼。 需要字串 ()
properties 建立期間使用之管理群組的泛型屬性。 CreateManagementGroupPropertiesOrManagementGroupProp...

CreateManagementGroupPropertiesOrManagementGroupProp...

名稱 描述
詳細資料 建立期間使用之管理群組的詳細資料。 CreateManagementGroupDetailsOrManagementGroupDetails
displayName 管理群組的易記名稱。 如果未傳遞任何值,此欄位將會設定為 groupId。 string

CreateManagementGroupDetailsOrManagementGroupDetails

名稱 描述
父系 (parent) (選擇性) 建立期間使用的父管理群組識別碼。 CreateParentGroupInfoOrParentGroupInfo

CreateParentGroupInfoOrParentGroupInfo

名稱 描述
id 父管理群組的完整識別碼。 例如,/providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-00000000000000 string