Microsoft.CustomProviders 關聯
Bicep 資源定義
您可以使用目標作業來部署關聯資源類型:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.CustomProviders/associations 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.CustomProviders/associations@2018-09-01-preview' = {
scope: resourceSymbolicName or scope
name: 'string'
properties: {
targetResourceId: 'string'
}
}
屬性值
AssociationProperties
名字 | 描述 | 價值 |
---|---|---|
targetResourceId | 這個關聯之目標資源的 REST 資源實例。 | 字串 |
Microsoft.CustomProviders/associations
名字 | 描述 | 價值 |
---|---|---|
名字 | 資源名稱 | 字串 (必要) |
性能 | 關聯的屬性。 | AssociationProperties |
範圍 | 在與部署範圍不同的範圍內建立資源時,請使用 。 | 將此屬性設定為資源的符號名稱,以套用 擴充資源。 |
ARM 樣本資源定義
您可以使用目標作業來部署關聯資源類型:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.CustomProviders/associations 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.CustomProviders/associations",
"apiVersion": "2018-09-01-preview",
"name": "string",
"properties": {
"targetResourceId": "string"
}
}
屬性值
AssociationProperties
名字 | 描述 | 價值 |
---|---|---|
targetResourceId | 這個關聯之目標資源的 REST 資源實例。 | 字串 |
Microsoft.CustomProviders/associations
名字 | 描述 | 價值 |
---|---|---|
apiVersion | API 版本 | '2018-09-01-preview' |
名字 | 資源名稱 | 字串 (必要) |
性能 | 關聯的屬性。 | AssociationProperties |
類型 | 資源類型 | 'Microsoft.CustomProviders/associations' |
快速入門範本
下列快速入門範本會部署此資源類型。
範本 | 描述 |
---|---|
使用自定義提供者擴充現有的 Azure 資源 |
此範例將詳細說明如何擴充現有的 Azure 資源和 Resource Manager 範本,以新增自定義工作負載。 |
Terraform (AzAPI 提供者) 資源定義
您可以使用目標作業來部署關聯資源類型:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.CustomProviders/associations 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.CustomProviders/associations@2018-09-01-preview"
name = "string"
parent_id = "string"
body = jsonencode({
properties = {
targetResourceId = "string"
}
})
}
屬性值
AssociationProperties
名字 | 描述 | 價值 |
---|---|---|
targetResourceId | 這個關聯之目標資源的 REST 資源實例。 | 字串 |
Microsoft.CustomProviders/associations
名字 | 描述 | 價值 |
---|---|---|
名字 | 資源名稱 | 字串 (必要) |
parent_id | 要套用此延伸模組資源之資源的標識碼。 | 字串 (必要) |
性能 | 關聯的屬性。 | AssociationProperties |
類型 | 資源類型 | “Microsoft.CustomProviders/associations@2018-09-01-preview” |