Microsoft.Blueprint blueprints/artifacts

Bicep リソース定義

ブループリント/成果物のリソースの種類は、次をターゲットとする操作でデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.Blueprint/blueprints/artifacts リソースを作成するには、次の Bicep をテンプレートに追加します。

resource symbolicname 'Microsoft.Blueprint/blueprints/artifacts@2018-11-01-preview' = {
  name: 'string'
  kind: 'string'
  parent: resourceSymbolicName
  // For remaining properties, see blueprints/artifacts objects
}

blueprints/artifacts オブジェクト

kind プロパティを設定して、オブジェクトの種類を指定します。

policyAssignment の場合は、次の値を使用します。

  kind: 'policyAssignment'
  properties: {
    dependsOn: [
      'string'
    ]
    description: 'string'
    displayName: 'string'
    parameters: {}
    policyDefinitionId: 'string'
    resourceGroup: 'string'
  }

roleAssignment の場合は、次の値を使用します。

  kind: 'roleAssignment'
  properties: {
    dependsOn: [
      'string'
    ]
    description: 'string'
    displayName: 'string'
    principalIds: any()
    resourceGroup: 'string'
    roleDefinitionId: 'string'
  }

テンプレートの場合は、次の値を使用します。

  kind: 'template'
  properties: {
    dependsOn: [
      'string'
    ]
    description: 'string'
    displayName: 'string'
    parameters: {}
    resourceGroup: 'string'
    template: any()
  }

プロパティ値

blueprints/artifacts

名前 説明
name リソース名

Bicep で子リソースの名前と型を設定する方法を参照してください。
string (必須)
kind オブジェクトの種類を設定する policyAssignment
roleAssignment
テンプレート (必須)
parent Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。

詳細については、「 親リソースの外部にある子リソース」を参照してください。
種類のリソースのシンボル名: ブループリント

PolicyAssignmentArtifact

名前 説明
kind ブループリント 成果物の種類を指定します。 'policyAssignment' (必須)
properties policyAssignment Artifact のプロパティ PolicyAssignmentArtifactProperties (必須)

PolicyAssignmentArtifactProperties

名前 説明
dependsOn 指定した成果物の前にデプロイする必要がある成果物。 string[]
description 複数行でこのリソースについて説明します。 string
displayName このリソースを説明する 1 行の文字列。 string
parameters ポリシー定義のパラメーター値。 object (必須)
policyDefinitionId ポリシー定義の Azure リソース ID。 string (必須)
resourceGroup ポリシーが割り当てられるリソース グループ プレースホルダーの名前。 string

RoleAssignmentArtifact

名前 説明
kind ブループリント 成果物の種類を指定します。 'roleAssignment' (必須)
properties ロール割り当てブループリント 成果物のプロパティ。 RoleAssignmentArtifactProperties (必須)

RoleAssignmentArtifactProperties

名前 説明
dependsOn 指定した成果物の前にデプロイする必要がある成果物。 string[]
description 複数行でこのリソースについて説明します。 string
displayName このリソースを説明する 1 行の文字列。 string
principalIds Azure Active Directory のユーザーまたはグループ ID の配列。 roleDefinition は各 ID に適用されます。 Bicep の場合は、 any() 関数を使用できます。(必須)
resourceGroup RoleAssignment は、この resourceGroup のスコープになります。 空の場合は、サブスクリプションにスコープが設定されます。 string
roleDefinitionId RoleDefinition の Azure リソース ID。 string (必須)

TemplateArtifact

名前 説明
kind ブループリント 成果物の種類を指定します。 'template' (必須)
properties Resource Manager テンプレート ブループリント 成果物のプロパティ。 TemplateArtifactProperties (必須)

TemplateArtifactProperties

名前 説明
dependsOn 指定した成果物の前にデプロイする必要がある成果物。 string[]
description 複数行でこのリソースについて説明します。 string
displayName このリソースを説明する 1 行の文字列。 string
parameters テンプレート ブループリント成果物パラメーター値をResource Managerします。 object (必須)
resourceGroup 該当する場合は、Resource Manager テンプレートブループリント成果物のデプロイ先となるリソース グループ プレースホルダーの名前。 string
template Resource Manager テンプレートブループリント成果物本文。 Bicep の場合は、 any() 関数を使用できます。(必須)

クイック スタート テンプレート

次のクイックスタート テンプレートでは、このリソースの種類をデプロイします。

テンプレート 説明
ブループリント - 新しいブループリント定義を作成する

Azure へのデプロイ
このテンプレートは、Azure Blueprint ブループリント定義を作成します。 ブループリント定義にはポリシー割り当て成果物が含まれており、一貫性のある環境のために変更してから管理グループまたはサブスクリプションにデプロイできます。

ARM テンプレート リソース定義

ブループリント/成果物のリソースの種類は、次をターゲットとする操作でデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.Blueprint/blueprints/artifacts リソースを作成するには、次の JSON をテンプレートに追加します。

{
  "type": "Microsoft.Blueprint/blueprints/artifacts",
  "apiVersion": "2018-11-01-preview",
  "name": "string",
  "kind": "string",
  // For remaining properties, see blueprints/artifacts objects
}

blueprints/artifacts オブジェクト

kind プロパティを設定して、オブジェクトの種類を指定します。

policyAssignment の場合は、次の値を使用します。

  "kind": "policyAssignment",
  "properties": {
    "dependsOn": [ "string" ],
    "description": "string",
    "displayName": "string",
    "parameters": {},
    "policyDefinitionId": "string",
    "resourceGroup": "string"
  }

roleAssignment の場合は、次の値を使用します。

  "kind": "roleAssignment",
  "properties": {
    "dependsOn": [ "string" ],
    "description": "string",
    "displayName": "string",
    "principalIds": {},
    "resourceGroup": "string",
    "roleDefinitionId": "string"
  }

テンプレートの場合は、次の値を使用します。

  "kind": "template",
  "properties": {
    "dependsOn": [ "string" ],
    "description": "string",
    "displayName": "string",
    "parameters": {},
    "resourceGroup": "string",
    "template": {}
  }

プロパティ値

blueprints/artifacts

名前 説明
type リソースの種類 'Microsoft.Blueprint/blueprints/artifacts'
apiVersion リソース API のバージョン '2018-11-01-preview'
name リソース名

JSON ARM テンプレートで子リソースの名前と型を設定する方法を参照してください。
string (必須)
kind オブジェクトの種類を設定する policyAssignment
roleAssignment
テンプレート (必須)

PolicyAssignmentArtifact

名前 説明
kind ブループリント 成果物の種類を指定します。 'policyAssignment' (必須)
properties policyAssignment Artifact のプロパティ PolicyAssignmentArtifactProperties (必須)

PolicyAssignmentArtifactProperties

名前 説明
dependsOn 指定した成果物の前にデプロイする必要がある成果物。 string[]
description 複数行でこのリソースについて説明します。 string
displayName このリソースを説明する 1 行の文字列。 string
parameters ポリシー定義のパラメーター値。 object (必須)
policyDefinitionId ポリシー定義の Azure リソース ID。 string (必須)
resourceGroup ポリシーが割り当てられるリソース グループ プレースホルダーの名前。 string

RoleAssignmentArtifact

名前 説明
kind ブループリント 成果物の種類を指定します。 'roleAssignment' (必須)
properties ロール割り当てブループリント 成果物のプロパティ。 RoleAssignmentArtifactProperties (必須)

RoleAssignmentArtifactProperties

名前 説明
dependsOn 指定した成果物の前にデプロイする必要がある成果物。 string[]
description 複数行でこのリソースについて説明します。 string
displayName このリソースを説明する 1 行の文字列。 string
principalIds Azure Active Directory のユーザーまたはグループ ID の配列。 roleDefinition は各 ID に適用されます。
resourceGroup RoleAssignment は、この resourceGroup のスコープになります。 空の場合は、サブスクリプションにスコープが設定されます。 string
roleDefinitionId RoleDefinition の Azure リソース ID。 string (必須)

TemplateArtifact

名前 説明
kind ブループリント 成果物の種類を指定します。 'template' (必須)
properties Resource Manager テンプレート ブループリント 成果物のプロパティ。 TemplateArtifactProperties (必須)

TemplateArtifactProperties

名前 説明
dependsOn 指定した成果物の前にデプロイする必要がある成果物。 string[]
description 複数行でこのリソースについて説明します。 string
displayName このリソースを説明する 1 行の文字列。 string
parameters テンプレート ブループリント成果物パラメーター値をResource Managerします。 object (必須)
resourceGroup 該当する場合は、Resource Manager テンプレートブループリント成果物のデプロイ先となるリソース グループ プレースホルダーの名前。 string
template Resource Manager テンプレートブループリント成果物本文。

クイック スタート テンプレート

次のクイックスタート テンプレートでは、このリソースの種類をデプロイします。

テンプレート 説明
ブループリント - 新しいブループリント定義を作成する

Azure へのデプロイ
このテンプレートは、Azure Blueprint ブループリント定義を作成します。 ブループリント定義にはポリシー割り当て成果物が含まれており、一貫性のある環境のために変更してから管理グループまたはサブスクリプションにデプロイできます。

Terraform (AzAPI プロバイダー) リソース定義

ブループリント/成果物のリソースの種類は、次をターゲットとする操作でデプロイできます。

  • リソース グループ
  • サブスクリプション
  • 管理グループ

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.Blueprint/blueprints/artifacts リソースを作成するには、次の Terraform をテンプレートに追加します。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Blueprint/blueprints/artifacts@2018-11-01-preview"
  name = "string"
  parent_id = "string"
  // For remaining properties, see blueprints/artifacts objects
  body = jsonencode({
    kind = "string"
  })
}

blueprints/artifacts オブジェクト

kind プロパティを設定して、オブジェクトの種類を指定します。

policyAssignment の場合は、次の値を使用します。

  kind = "policyAssignment"
  properties = {
    dependsOn = [
      "string"
    ]
    description = "string"
    displayName = "string"
    parameters = {}
    policyDefinitionId = "string"
    resourceGroup = "string"
  }

roleAssignment の場合は、次の値を使用します。

  kind = "roleAssignment"
  properties = {
    dependsOn = [
      "string"
    ]
    description = "string"
    displayName = "string"
    resourceGroup = "string"
    roleDefinitionId = "string"
  }

テンプレートの場合は、次の値を使用します。

  kind = "template"
  properties = {
    dependsOn = [
      "string"
    ]
    description = "string"
    displayName = "string"
    parameters = {}
    resourceGroup = "string"
  }

プロパティ値

blueprints/artifacts

名前 説明
type リソースの種類 "Microsoft.Blueprint/blueprints/artifacts@2018-11-01-preview"
name リソース名 string (必須)
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: ブループリント
kind オブジェクトの種類を設定する policyAssignment
roleAssignment
テンプレート (必須)

PolicyAssignmentArtifact

名前 説明
kind ブループリント 成果物の種類を指定します。 "policyAssignment" (必須)
properties policyAssignment Artifact のプロパティ PolicyAssignmentArtifactProperties (必須)

PolicyAssignmentArtifactProperties

名前 説明
dependsOn 指定した成果物の前にデプロイする必要がある成果物。 string[]
description 複数行でこのリソースについて説明します。 string
displayName このリソースを説明する 1 行の文字列。 string
parameters ポリシー定義のパラメーター値。 object (必須)
policyDefinitionId ポリシー定義の Azure リソース ID。 string (必須)
resourceGroup ポリシーが割り当てられるリソース グループ プレースホルダーの名前。 string

RoleAssignmentArtifact

名前 説明
kind ブループリント 成果物の種類を指定します。 "roleAssignment" (必須)
properties ロール割り当てブループリント 成果物のプロパティ。 RoleAssignmentArtifactProperties (必須)

RoleAssignmentArtifactProperties

名前 説明
dependsOn 指定した成果物の前にデプロイする必要がある成果物。 string[]
description 複数行でこのリソースについて説明します。 string
displayName このリソースを説明する 1 行の文字列。 string
principalIds Azure Active Directory のユーザーまたはグループ ID の配列。 roleDefinition は各 ID に適用されます。
resourceGroup RoleAssignment は、この resourceGroup のスコープになります。 空の場合は、サブスクリプションにスコープが設定されます。 string
roleDefinitionId RoleDefinition の Azure リソース ID。 string (必須)

TemplateArtifact

名前 説明
kind ブループリント 成果物の種類を指定します。 "template" (必須)
properties Resource Manager テンプレート ブループリント 成果物のプロパティ。 TemplateArtifactProperties (必須)

TemplateArtifactProperties

名前 説明
dependsOn 指定した成果物の前にデプロイする必要がある成果物。 string[]
description 複数行でこのリソースについて説明します。 string
displayName このリソースを説明する 1 行の文字列。 string
parameters テンプレート ブループリントのアーティファクト パラメーター値をResource Managerします。 object (必須)
resourceGroup 該当する場合は、Resource Manager テンプレート ブループリント成果物のデプロイ先となるリソース グループ プレースホルダーの名前。 string
template Resource Manager テンプレート ブループリント成果物本文。