Microsoft.Resources resourceGroups

Bicep 資源定義

resourceGroups 資源類型可以部署到:

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

資源格式

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

resource symbolicname 'Microsoft.Resources/resourceGroups@2022-09-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  managedBy: 'string'
  properties: {}
}

屬性值

resourceGroups

名稱 描述
NAME 資源名稱 字串 (必要)

字元限制:1-90

合法字元:
Char.IsLetterOrDigit 函式所定義的底線、連字號、句號、括號和字母或數字。

有效字元是 UnicodeCategory 中下列類別的成員:
UppercaseLetter
LowercaseLetter
TitlecaseLetter
ModifierLetter
OtherLetter
DecimalDigitNumber

不能以句號結尾。
location 資源群組的位置。 建立資源群組之後無法變更它。 它必須是其中一個支援的 Azure 位置。 字串 (必要)
tags 附加至資源群組的標記。 標記名稱和值的字典。 請參閱 範本中的標記
managedBy 管理此資源群組的資源識別碼。 字串
properties 資源群組屬性。 ResourceGroupProperties

ResourceGroupProperties

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。

快速入門範本

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

範本 描述
建立新的Datadog組織

部署至 Azure
此範本會建立新的 Datadog - Azure 原生 ISV 服務資源和 Datadog 組織,以監視訂用帳戶中的資源。
建立 resourceGroup

部署至 Azure
此範本是將建立 resourceGroup 的訂用帳戶層級範本。 目前,此範本可透過 Azure 入口網站進行部署。
建立 resourceGroup,套用鎖定和 RBAC

部署至 Azure
此範本是訂用帳戶層級範本,將建立 resourceGroup、套用鎖定 resourceGroup,並將參與者效能指派給提供的 principalId。 目前無法透過 Azure 入口網站部署此範本。
建立 Azure 虛擬網路 管理員和範例 VNET

部署至 Azure
此範本會將 Azure 虛擬網路 Manager 和範例虛擬網路部署到具名資源群組中。 它支援多個連線拓撲和網路群組成員資格類型。

ARM 範本資源定義

resourceGroups 資源類型可以部署到:

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

資源格式

若要建立 Microsoft.Resources/resourceGroups 資源,請將下列 JSON 新增至您的範本。

{
  "type": "Microsoft.Resources/resourceGroups",
  "apiVersion": "2022-09-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "managedBy": "string",
  "properties": {}
}

屬性值

resourceGroups

名稱 描述
類型 資源類型 'Microsoft.Resources/resourceGroups'
apiVersion 資源 API 版本 '2022-09-01'
NAME 資源名稱 字串 (必要)

字元限制:1-90

合法字元:
Char.IsLetterOrDigit 函式所定義的底線、連字號、句號、括號和字母或數字。

有效字元是 UnicodeCategory 中下列類別的成員:
UppercaseLetter
LowercaseLetter
TitlecaseLetter
ModifierLetter
OtherLetter
DecimalDigitNumber

不能以句號結尾。
location 資源群組的位置。 建立資源群組之後無法變更它。 它必須是其中一個支援的 Azure 位置。 需要字串 ()
tags 附加至資源群組的標記。 標記名稱和值的字典。 請參閱 範本中的標籤
managedBy 管理此資源群組之資源的標識碼。 字串
properties 資源群組屬性。 ResourceGroupProperties

ResourceGroupProperties

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。

快速入門範本

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

範本 描述
建立新的Datadog組織

部署至 Azure
此範本會建立新的 Datadog - Azure 原生 ISV 服務資源和 Datadog 組織,以監視訂用帳戶中的資源。
建立 resourceGroup

部署至 Azure
此範本是將建立 resourceGroup 的訂用帳戶層級範本。 目前,此範本可透過 Azure 入口網站進行部署。
建立 resourceGroup,套用鎖定和 RBAC

部署至 Azure
此範本是訂用帳戶層級範本,將建立 resourceGroup、套用資源群組的鎖定,並將參與者分派給提供的 principalId。 目前無法透過 Azure 入口網站部署此範本。
建立 Azure 虛擬網路 管理員和範例 VNET

部署至 Azure
此範本會將 Azure 虛擬網路 Manager 和範例虛擬網路部署到具名資源群組。 它支援多個連線拓撲和網路群組成員資格類型。

Terraform (AzAPI 提供者) 資源定義

resourceGroups 資源類型可以部署到:

  • 訂用帳戶

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

資源格式

若要建立 Microsoft.Resources/resourceGroups 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Resources/resourceGroups@2022-09-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {}
    managedBy = "string"
  })
}

屬性值

resourceGroups

名稱 描述
類型 資源類型 “Microsoft.Resources/resourceGroups@2022-09-01”
NAME 資源名稱 需要字串 ()

字元限制:1-90

合法字元:
Char.IsLetterOrDigit 函式所定義的底線、連字號、句號、括號和字母或數字。

有效字元是 UnicodeCategory 中下列類別的成員:
UppercaseLetter
LowercaseLetter
TitlecaseLetter
ModifierLetter
OtherLetter
DecimalDigitNumber

不能以句號結尾。
location 資源群組的位置。 建立資源群組之後無法變更它。 它必須是其中一個支援的 Azure 位置。 需要字串 ()
parent_id 若要部署至訂用帳戶,請使用該訂用帳戶的標識碼。 需要字串 ()
tags 附加至資源群組的標記。 標記名稱和值的字典。
managedBy 管理此資源群組之資源的標識碼。 字串
properties 資源群組屬性。 ResourceGroupProperties

ResourceGroupProperties

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。