Microsoft.Resources 範本Specs/versions 2019-06-01-preview
言論
如需建立入口網站表單的詳細資訊,請參閱 教學課程:建立範本規格的 Azure 入口網站表單。
Bicep 資源定義
templateSpecs/versions 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Resources/templateSpecs/versions 資源,請將下列 Bicep 新增至您的範本。
resource symbolicname 'Microsoft.Resources/templateSpecs/versions@2019-06-01-preview' = {
parent: resourceSymbolicName
location: 'string'
name: 'string'
properties: {
artifacts: [
{
path: 'string'
kind: 'string'
// For remaining properties, see TemplateSpecArtifact objects
}
]
description: 'string'
template: any(Azure.Bicep.Types.Concrete.AnyType)
}
tags: {
{customized property}: 'string'
}
}
TemplateSpecArtifact 物件
設定 種類 屬性,以指定對象的類型。
針對 範本,請使用:
{
kind: 'template'
template: any(Azure.Bicep.Types.Concrete.AnyType)
}
屬性值
Microsoft.Resources/templateSpecs/versions
名字 | 描述 | 價值 |
---|---|---|
位置 | 範本規格版本的位置。 它必須符合父範本規格的位置。 | 字串 (必要) |
名字 | 資源名稱 | 字串 約束: 最小長度 = 1 最大長度 = 90 模式 = ^[-\w\._\(\)]+$ (必要) |
父母 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型資源的符號名稱:templateSpecs |
性能 | 範本規格版本屬性。 | TemplateSpecVersionProperties (必要) |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
TemplateSpecArtifact
名字 | 描述 | 價值 |
---|---|---|
類 | 針對 type TemplateSpecTemplateArtifact設定為 'template'。 | 'template' (必要) |
路徑 | 成品的文件系統安全相對路徑。 | 字串 (必要) |
TemplateSpecTemplateArtifact
名字 | 描述 | 價值 |
---|---|---|
類 | 成品的種類。 | 'template' (必要) |
範本 | Azure Resource Manager 範本。 | 任何 (必要) |
TemplateSpecVersionProperties
名字 | 描述 | 價值 |
---|---|---|
工件 | 範本規格成品的陣列。 | TemplateSpecArtifact[] |
描述 | 範本規格版本描述。 | 字串 約束: 最大長度 = 4096 |
範本 | Azure Resource Manager 範本內容。 | 任何 |
TemplateSpecVersionTags
名字 | 描述 | 價值 |
---|
ARM 樣本資源定義
templateSpecs/versions 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Resources/templateSpecs/versions 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Resources/templateSpecs/versions",
"apiVersion": "2019-06-01-preview",
"name": "string",
"location": "string",
"properties": {
"artifacts": [ {
"path": "string",
"kind": "string"
// For remaining properties, see TemplateSpecArtifact objects
} ],
"description": "string",
"template": {}
},
"tags": {
"{customized property}": "string"
}
}
TemplateSpecArtifact 物件
設定 種類 屬性,以指定對象的類型。
針對 範本,請使用:
{
"kind": "template",
"template": {}
}
屬性值
Microsoft.Resources/templateSpecs/versions
名字 | 描述 | 價值 |
---|---|---|
apiVersion | API 版本 | '2019-06-01-preview' |
位置 | 範本規格版本的位置。 它必須符合父範本規格的位置。 | 字串 (必要) |
名字 | 資源名稱 | 字串 約束: 最小長度 = 1 最大長度 = 90 模式 = ^[-\w\._\(\)]+$ (必要) |
性能 | 範本規格版本屬性。 | TemplateSpecVersionProperties (必要) |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
類型 | 資源類型 | 'Microsoft.Resources/templateSpecs/versions' |
TemplateSpecArtifact
名字 | 描述 | 價值 |
---|---|---|
類 | 針對 type TemplateSpecTemplateArtifact設定為 'template'。 | 'template' (必要) |
路徑 | 成品的文件系統安全相對路徑。 | 字串 (必要) |
TemplateSpecTemplateArtifact
名字 | 描述 | 價值 |
---|---|---|
類 | 成品的種類。 | 'template' (必要) |
範本 | Azure Resource Manager 範本。 | 任何 (必要) |
TemplateSpecVersionProperties
名字 | 描述 | 價值 |
---|---|---|
工件 | 範本規格成品的陣列。 | TemplateSpecArtifact[] |
描述 | 範本規格版本描述。 | 字串 約束: 最大長度 = 4096 |
範本 | Azure Resource Manager 範本內容。 | 任何 |
TemplateSpecVersionTags
名字 | 描述 | 價值 |
---|
Terraform (AzAPI 提供者) 資源定義
templateSpecs/versions 資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Resources/templateSpecs/versions 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Resources/templateSpecs/versions@2019-06-01-preview"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
artifacts = [
{
path = "string"
kind = "string"
// For remaining properties, see TemplateSpecArtifact objects
}
]
description = "string"
template = ?
}
})
}
TemplateSpecArtifact 物件
設定 種類 屬性,以指定對象的類型。
針對 範本,請使用:
{
kind = "template"
template = ?
}
屬性值
Microsoft.Resources/templateSpecs/versions
名字 | 描述 | 價值 |
---|---|---|
位置 | 範本規格版本的位置。 它必須符合父範本規格的位置。 | 字串 (必要) |
名字 | 資源名稱 | 字串 約束: 最小長度 = 1 最大長度 = 90 模式 = ^[-\w\._\(\)]+$ (必要) |
parent_id | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:templateSpecs |
性能 | 範本規格版本屬性。 | TemplateSpecVersionProperties (必要) |
標籤 | 資源標籤 | 標記名稱和值的字典。 |
類型 | 資源類型 | “Microsoft.Resources/templateSpecs/versions@2019-06-01-preview” |
TemplateSpecArtifact
名字 | 描述 | 價值 |
---|---|---|
類 | 針對 type TemplateSpecTemplateArtifact設定為 'template'。 | 'template' (必要) |
路徑 | 成品的文件系統安全相對路徑。 | 字串 (必要) |
TemplateSpecTemplateArtifact
名字 | 描述 | 價值 |
---|---|---|
類 | 成品的種類。 | 'template' (必要) |
範本 | Azure Resource Manager 範本。 | 任何 (必要) |
TemplateSpecVersionProperties
名字 | 描述 | 價值 |
---|---|---|
工件 | 範本規格成品的陣列。 | TemplateSpecArtifact[] |
描述 | 範本規格版本描述。 | 字串 約束: 最大長度 = 4096 |
範本 | Azure Resource Manager 範本內容。 | 任何 |
TemplateSpecVersionTags
名字 | 描述 | 價值 |
---|