Microsoft.DevCenter 專案 2022-09-01-preview
Bicep 資源定義
專案資源類型可以使用目標作業進行部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.DevCenter/projects 資源,請將下列 Bicep 新增至您的範本。
resource symbolicname 'Microsoft.DevCenter/projects@2022-09-01-preview' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
properties: {
description: 'string'
devCenterId: 'string'
}
}
屬性值
projects
名稱 | 描述 | 值 |
---|---|---|
NAME | 資源名稱 | 字串 (必要) |
location | 資源所在的地理位置 | 字串 (必要) |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標記 |
properties | 專案的屬性。 | ProjectProperties |
ProjectProperties
名稱 | 描述 | 值 |
---|---|---|
description | 專案的描述。 | string |
devCenterId | 相關聯 DevCenter 的資源識別碼 | string |
ARM 範本資源定義
專案資源類型可以使用目標作業進行部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.DevCenter/projects 資源,請將下列 JSON 新增至您的範本。
{
"type": "Microsoft.DevCenter/projects",
"apiVersion": "2022-09-01-preview",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"properties": {
"description": "string",
"devCenterId": "string"
}
}
屬性值
projects
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 'Microsoft.DevCenter/projects' |
apiVersion | 資源 API 版本 | '2022-09-01-preview' |
NAME | 資源名稱 | 字串 (必要) |
location | 資源所在的地理位置 | 字串 (必要) |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標記 |
properties | 專案的屬性。 | ProjectProperties |
ProjectProperties
名稱 | 描述 | 值 |
---|---|---|
description | 專案的描述。 | string |
devCenterId | 相關聯 DevCenter 的資源識別碼 | string |
Terraform (AzAPI 提供者) 資源定義
專案資源類型可以使用目標作業進行部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.DevCenter/projects 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.DevCenter/projects@2022-09-01-preview"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
body = jsonencode({
properties = {
description = "string"
devCenterId = "string"
}
})
}
屬性值
projects
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 「Microsoft.DevCenter/projects@2022-09-01-preview」 |
NAME | 資源名稱 | 需要字串 () |
location | 資源所在的地理位置 | 需要字串 () |
parent_id | 若要部署至資源群組,請使用該資源群組的識別碼。 | 需要字串 () |
tags | 資源標籤。 | 標記名稱和值的字典。 |
properties | 專案的屬性。 | ProjectProperties |
ProjectProperties
名稱 | 描述 | 值 |
---|---|---|
description | 專案的描述。 | string |
devCenterId | 相關聯 DevCenter 的資源識別碼 | string |