Share via


Microsoft.Management ManagementGroups 2017-11-01-preview

Bicep 資源定義

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

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

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

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

備註

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

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

資源格式

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

resource symbolicname 'Microsoft.Management/managementGroups@2017-11-01-preview' = {
  name: 'string'
  scope: tenant()
  displayName: 'string'
  parentId: 'string'
}

屬性值

managementGroups

名稱 描述
NAME 資源名稱 需要字串 ()
scope 在與部署範圍不同的範圍內建立擴充資源時,請使用 。 針對 Bicep: tenant()
displayName 管理群組的易記名稱。 string
parentId (選擇性) 父管理群組的完整識別碼。 例如,/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": "2017-11-01-preview",
  "name": "string",
  "scope": "/",
  "displayName": "string",
  "parentId": "string"
}

屬性值

managementGroups

名稱 描述
類型 資源類型 'Microsoft.Management/managementGroups'
apiVersion 資源 API 版本 '2017-11-01-preview'
NAME 資源名稱 需要字串 ()
scope 在與部署範圍不同的範圍內建立擴充資源時,請使用 。 針對 JSON: /
displayName 管理群組的易記名稱。 string
parentId (選擇性) 父管理群組的完整識別碼。 例如,/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@2017-11-01-preview"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    displayName = "string"
    parentId = "string"
  })
}

屬性值

managementGroups

名稱 描述
類型 資源類型 「Microsoft.Management/managementGroups@2017-11-01-preview」
NAME 資源名稱 字串 (必要)
parent_id 要套用此延伸模組資源的資源識別碼。 字串 (必要)
displayName 管理群組的易記名稱。 string
parentId (選擇性) 父管理群組的完整識別碼。 例如,/providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-00000000000000 string