共用方式為


Microsoft.Blueprint 藍圖

Bicep 資源定義

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

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

藍圖資源類型可以使用目標作業來部署:

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

資源格式

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

resource symbolicname 'Microsoft.Blueprint/blueprints@2018-11-01-preview' = {
  name: 'string'
  scope: resourceSymbolicName
  properties: {
    description: 'string'
    displayName: 'string'
    parameters: {}
    resourceGroups: {}
    targetScope: 'string'
    versions: any()
  }
}

屬性值

blueprints

名稱 描述
NAME 資源名稱 字串 (必要)
scope 在與部署範圍不同的範圍建立擴充資源時,請使用 。 目標資源

針對 Bicep,請將此屬性設定為資源的符號名稱,以套用 延伸模組資源
properties 藍圖定義的詳細屬性。 藍圖屬性 (必要)

BlueprintProperties

名稱 描述
description 多行說明此資源。 字串
displayName 單行字串說明此資源。 字串
參數 此藍圖定義所需的參數。 object
resourceGroups 此藍圖定義所定義的資源群組預留位置。 object
targetScope 可以指派此藍圖定義的範圍。 'managementGroup'
'subscription'
versions 此藍圖定義的已發佈版本。 針對 Bicep,您可以使用 any () 函式。

快速入門範本

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

[範本] 描述
藍圖 - 建立新的藍圖定義

部署至 Azure
此範本會建立 Azure 藍圖定義。 藍圖定義包含原則指派成品,並可加以修改,然後部署至一致的環境管理群組或訂用帳戶。

ARM 範本資源定義

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

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

藍圖資源類型可以使用目標作業來部署:

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

資源格式

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

{
  "type": "Microsoft.Blueprint/blueprints",
  "apiVersion": "2018-11-01-preview",
  "name": "string",
  "scope": "string",
  "properties": {
    "description": "string",
    "displayName": "string",
    "parameters": {},
    "resourceGroups": {},
    "targetScope": "string",
    "versions": {}
  }
}

屬性值

blueprints

名稱 描述
類型 資源類型 'Microsoft.Blueprint/blueprints'
apiVersion 資源 API 版本 '2018-11-01-preview'
NAME 資源名稱 字串 (必要)
scope 在與部署範圍不同的範圍建立擴充資源時,請使用 。 目標資源

針對 JSON,請將值設定為要套用 擴充資源 的資源完整名稱。
properties 藍圖定義的詳細屬性。 藍圖屬性 (必要)

BlueprintProperties

名稱 描述
description 多行說明此資源。 字串
displayName 單行字串說明此資源。 字串
參數 此藍圖定義所需的參數。 object
resourceGroups 此藍圖定義所定義的資源群組預留位置。 object
targetScope 可以指派此藍圖定義的範圍。 'managementGroup'
'subscription'
versions 此藍圖定義的已發佈版本。

快速入門範本

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

範本 描述
藍圖 - 建立新的藍圖定義

部署至 Azure
此範本會建立 Azure 藍圖定義。 藍圖定義包含原則指派成品,並可加以修改,然後部署至一致的環境管理群組或訂用帳戶。

Terraform (AzAPI 提供者) 資源定義

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

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

藍圖資源類型可以使用目標作業來部署:

  • 資源群組
  • 訂用帳戶
  • 管理群組

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Blueprint/blueprints@2018-11-01-preview"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      description = "string"
      displayName = "string"
      parameters = {}
      resourceGroups = {}
      targetScope = "string"
    }
  })
}

屬性值

blueprints

名稱 描述
類型 資源類型 「Microsoft.Blueprint/blueprints@2018-11-01-preview」
NAME 資源名稱 字串 (必要)
parent_id 要套用此延伸模組資源的資源識別碼。 字串 (必要)
properties 藍圖定義的詳細屬性。 藍圖屬性 (必要)

BlueprintProperties

名稱 描述
description 多行說明此資源。 字串
displayName 單行字串說明此資源。 字串
參數 此藍圖定義所需的參數。 object
resourceGroups 此藍圖定義所定義的資源群組預留位置。 object
targetScope 可以指派此藍圖定義的範圍。 「managementGroup」
"subscription"
versions 此藍圖定義的已發佈版本。