次の方法で共有


Microsoft.VirtualMachineImages imageTemplates 2018-02-01-preview

Bicep リソース定義

imageTemplates リソースの種類は、次のようにデプロイできます。

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

リソース形式

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

resource symbolicname 'Microsoft.VirtualMachineImages/imageTemplates@2018-02-01-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    customize: [
      {
        name: 'string'
        type: 'string'
        // For remaining properties, see ImageTemplateCustomizer objects
      }
    ]
    distribute: [
      {
        artifactTags: {}
        runOutputName: 'string'
        type: 'string'
        // For remaining properties, see ImageTemplateDistributor objects
      }
    ]
    source: {
      type: 'string'
      // For remaining properties, see ImageTemplateSource objects
    }
  }
}

ImageTemplateCustomizer オブジェクト

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

シェルの場合は、次を使用します。

  type: 'shell'
  script: 'string'

ImageTemplateDistributor オブジェクト

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

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

  type: 'managedImage'
  imageId: 'string'
  location: 'string'

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

  type: 'sharedImage'
  galleryImageId: 'string'
  replicationRegions: [
    'string'
  ]

ImageTemplateSource オブジェクト

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

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

  type: 'ISO'
  sha256Checksum: 'string'
  sourceURI: 'string'

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

  type: 'PlatformImage'
  offer: 'string'
  publisher: 'string'
  sku: 'string'
  version: 'string'

プロパティ値

imageTemplates

名前 説明
name リソース名 string (必須)
location リソースの場所 string (必須)
tags リソース タグ タグ名と値のディクショナリ。 「テンプレートのタグ」を参照してください
properties ImageTemplateProperties

ImageTemplateProperties

名前 説明
カスタマイズ イメージ ソースなど、イメージのカスタマイズ手順を記述するために使用されるプロパティを指定します ImageTemplateCustomizer[]
配布 (distribute) イメージ出力を移動する必要がある配布ターゲット。 ImageTemplateDistributor[] (必須)
source ソース イメージの説明に使用するプロパティを指定します。 ImageTemplateSource (必須)

ImageTemplateCustomizer

名前 説明
name このカスタマイズ手順の内容に関するコンテキストを提供するフレンドリ名 string
type オブジェクトの種類を設定する shell (必須)

ImageTemplateShellCustomizer

名前 説明
type イメージで使用するカスタマイズ ツールの種類。 たとえば、"shell" は shellCustomizer にすることができます 'shell' (必須)
script カスタマイズのために実行するシェル スクリプト。 GitHub リンク、Azure Storage の SAS URI などです。 string

ImageTemplateDistributor

名前 説明
artifactTags ディストリビューターによって作成または更新された成果物に適用されるタグ。 object
runOutputName 関連付けられた RunOutput に使用する名前。 string (必須)
オブジェクトの種類を設定する managedImage
sharedImage (必須)

ImageTemplateManagedImageDistributor

名前 説明
type 分布の種類。 'managedImage' (必須)
imageId マネージド ディスク イメージのリソース ID string (必須)
location イメージの Azure の場所。イメージが既に存在する場合は一致する必要があります string (必須)

ImageTemplateSharedImageDistributor

名前 説明
type 分布の種類。 'sharedImage' (必須)
galleryImageId Shared Image Gallery イメージのリソース ID string (必須)
replicationRegions string[] (必須)

ImageTemplateSource

名前 説明
type オブジェクトの種類を設定する ISO
PlatformImage (必須)

ImageTemplateIsoSource

名前 説明
type 開始するソース イメージの種類を指定します。 'ISO' (必須)
sha256Checksum SHA256 ISO イメージのチェックサム。 string (必須)
sourceURI ISO イメージを取得する URL。 この URL は、imageTemplate の作成時にリソース プロバイダーからアクセスできる必要があります。 string (必須)

ImageTemplatePlatformImageSource

名前 説明
type 開始するソース イメージの種類を指定します。 'PlatformImage' (必須)
offer Azure ギャラリー イメージからのイメージ オファー。 string
publisher Azure ギャラリー イメージの Image Publisher。 string
sku Azure ギャラリー イメージからのイメージ SKU。 string
version Azure ギャラリー イメージのイメージ バージョン。 string

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

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

Template 説明
Azure Windows ベースラインを使用した Azure Image Builder

Azure にデプロイする
Azure Image Builder 環境を作成し、最新の Windows 更新と Azure Windows ベースラインが適用された Windows Server イメージをビルドします。
Dev Box サービスを構成する

Azure にデプロイする
このテンプレートでは、Dev Box クイック スタート ガイドに従って、すべての Dev Box 管理リソースが作成されます。 作成されたすべてのリソースを表示することも、DevPortal.microsoft.com に直接移動して最初の Dev Box を作成することもできます。

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

imageTemplates リソースの種類は、次のようにデプロイできます。

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

リソース形式

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

{
  "type": "Microsoft.VirtualMachineImages/imageTemplates",
  "apiVersion": "2018-02-01-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "customize": [
      {
        "name": "string",
        "type": "string"
        // For remaining properties, see ImageTemplateCustomizer objects
      }
    ],
    "distribute": [
      {
        "artifactTags": {},
        "runOutputName": "string",
        "type": "string"
        // For remaining properties, see ImageTemplateDistributor objects
      }
    ],
    "source": {
      "type": "string"
      // For remaining properties, see ImageTemplateSource objects
    }
  }
}

ImageTemplateCustomizer オブジェクト

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

シェルの場合は、次を使用します。

  "type": "shell",
  "script": "string"

ImageTemplateDistributor オブジェクト

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

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

  "type": "managedImage",
  "imageId": "string",
  "location": "string"

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

  "type": "sharedImage",
  "galleryImageId": "string",
  "replicationRegions": [ "string" ]

ImageTemplateSource オブジェクト

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

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

  "type": "ISO",
  "sha256Checksum": "string",
  "sourceURI": "string"

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

  "type": "PlatformImage",
  "offer": "string",
  "publisher": "string",
  "sku": "string",
  "version": "string"

プロパティ値

imageTemplates

名前 説明
type リソースの種類 'Microsoft.VirtualMachineImages/imageTemplates'
apiVersion リソース API のバージョン '2018-02-01-preview'
name リソース名 string (必須)
location リソースの場所 string (必須)
tags リソース タグ タグ名と値のディクショナリ。 「テンプレートのタグ」を参照してください
properties ImageTemplateProperties

ImageTemplateProperties

名前 説明
カスタマイズ イメージ ソースなど、イメージのカスタマイズ手順を記述するために使用されるプロパティを指定します ImageTemplateCustomizer[]
配布 (distribute) イメージ出力を移動する必要がある配布ターゲット。 ImageTemplateDistributor[] (必須)
source ソース イメージの説明に使用するプロパティを指定します。 ImageTemplateSource (必須)

ImageTemplateCustomizer

名前 説明
name このカスタマイズ手順の内容に関するコンテキストを提供するフレンドリ名 string
type オブジェクトの種類を設定する shell (必須)

ImageTemplateShellCustomizer

名前 説明
type イメージで使用するカスタマイズ ツールの種類。 たとえば、"shell" は shellCustomizer にすることができます 'shell' (必須)
script カスタマイズのために実行するシェル スクリプト。 GitHub リンク、Azure Storage の SAS URI などです。 string

ImageTemplateDistributor

名前 説明
artifactTags ディストリビューターによって作成または更新された成果物に適用されるタグ。 object
runOutputName 関連付けられた RunOutput に使用する名前。 string (必須)
オブジェクトの種類を設定する managedImage
sharedImage (必須)

ImageTemplateManagedImageDistributor

名前 説明
type 分布の種類。 'managedImage' (必須)
imageId マネージド ディスク イメージのリソース ID string (必須)
location イメージの Azure の場所。イメージが既に存在する場合は一致する必要があります string (必須)

ImageTemplateSharedImageDistributor

名前 説明
type 分布の種類。 'sharedImage' (必須)
galleryImageId Shared Image Gallery イメージのリソース ID string (必須)
replicationRegions string[] (必須)

ImageTemplateSource

名前 説明
type オブジェクトの種類を設定する ISO
PlatformImage (必須)

ImageTemplateIsoSource

名前 説明
type 開始するソース イメージの種類を指定します。 'ISO' (必須)
sha256Checksum ISO イメージの SHA256 チェックサム。 string (必須)
sourceURI ISO イメージを取得する URL。 この URL は、imageTemplate の作成時にリソース プロバイダーからアクセスできる必要があります。 string (必須)

ImageTemplatePlatformImageSource

名前 説明
type 開始するソース イメージの種類を指定します。 'PlatformImage' (必須)
offer Azure ギャラリー イメージからのイメージ オファー。 string
publisher Azure ギャラリー イメージの Image Publisher。 string
sku Azure ギャラリー イメージのイメージ SKU。 string
version Azure ギャラリー イメージのイメージ バージョン。 string

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

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

Template 説明
Azure Image Builder と Azure Windows ベースライン

Azure にデプロイする
Azure Image Builder 環境を作成し、最新の Windows 更新と Azure Windows ベースラインが適用された Windows Server イメージを構築します。
Dev Box サービスを構成する

Azure にデプロイする
このテンプレートでは、Dev Box クイック スタート ガイドに従って、すべての Dev Box 管理リソースが作成されます。 作成されたすべてのリソースを表示することも、DevPortal.microsoft.com に直接移動して最初の Dev Box を作成することもできます。

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

imageTemplates リソースの種類は、次の対象にデプロイできます。

  • リソース グループ

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

リソース形式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.VirtualMachineImages/imageTemplates@2018-02-01-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      customize = [
        {
          name = "string"
          type = "string"
          // For remaining properties, see ImageTemplateCustomizer objects
        }
      ]
      distribute = [
        {
          artifactTags = {}
          runOutputName = "string"
          type = "string"
          // For remaining properties, see ImageTemplateDistributor objects
        }
      ]
      source = {
        type = "string"
        // For remaining properties, see ImageTemplateSource objects
      }
    }
  })
}

ImageTemplateCustomizer オブジェクト

オブジェクトの を指定するには、type プロパティを設定します。

シェルの場合は、次を使用します。

  type = "shell"
  script = "string"

ImageTemplateDistributor オブジェクト

オブジェクトの を指定するには、type プロパティを設定します。

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

  type = "managedImage"
  imageId = "string"
  location = "string"

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

  type = "sharedImage"
  galleryImageId = "string"
  replicationRegions = [
    "string"
  ]

ImageTemplateSource オブジェクト

オブジェクトの を指定するには、type プロパティを設定します。

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

  type = "ISO"
  sha256Checksum = "string"
  sourceURI = "string"

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

  type = "PlatformImage"
  offer = "string"
  publisher = "string"
  sku = "string"
  version = "string"

プロパティ値

imageTemplates

名前 説明
type リソースの種類 "Microsoft.VirtualMachineImages/imageTemplates@2018-02-01-preview"
name リソース名 string (必須)
location リソースの場所 string (必須)
parent_id リソース グループにデプロイするには、そのリソース グループの ID を使用します。 string (必須)
tags リソース タグ タグの名前と値のディクショナリ。
properties ImageTemplateProperties

ImageTemplateProperties

名前 説明
カスタマイズ イメージ ソースなど、イメージのカスタマイズ手順を記述するために使用されるプロパティを指定します。 ImageTemplateCustomizer[]
配布 (distribute) イメージ出力の移動先となる配布ターゲット。 ImageTemplateDistributor[] (必須)
source ソース イメージの記述に使用するプロパティを指定します。 ImageTemplateSource (必須)

ImageTemplateCustomizer

名前 説明
name このカスタマイズ手順の内容に関するコンテキストを提供するフレンドリ名 string
type オブジェクトの種類を設定する シェル (必須)

ImageTemplateShellCustomizer

名前 説明
type イメージで使用するカスタマイズ ツールの種類。 たとえば、"shell" は shellCustomizer にすることができます "shell" (必須)
script カスタマイズのために実行するシェル スクリプト。 GitHub リンク、Azure Storage の SAS URI などです。 string

ImageTemplateDistributor

名前 説明
artifactTags ディストリビューターによって作成または更新されると、成果物に適用されるタグ。 object
runOutputName 関連付けられた RunOutput に使用する名前。 string (必須)
オブジェクトの種類を設定する managedImage
sharedImage (必須)

ImageTemplateManagedImageDistributor

名前 説明
type 分布の種類。 "managedImage" (必須)
imageId マネージド ディスク イメージのリソース ID string (必須)
location イメージの Azure の場所は、イメージが既に存在する場合は一致する必要があります string (必須)

ImageTemplateSharedImageDistributor

名前 説明
type 分布の種類。 "sharedImage" (必須)
galleryImageId Shared Image Gallery イメージのリソース ID string (必須)
replicationRegions string[] (必須)

ImageTemplateSource

名前 説明
type オブジェクトの種類を設定する ISO
PlatformImage (必須)

ImageTemplateIsoSource

名前 説明
type 開始するソース イメージの種類を指定します。 "ISO" (必須)
sha256Checksum ISO イメージの SHA256 チェックサム。 string (必須)
sourceURI ISO イメージを取得する URL。 この URL は、imageTemplate の作成時にリソース プロバイダーからアクセスできる必要があります。 string (必須)

ImageTemplatePlatformImageSource

名前 説明
type 開始するソース イメージの種類を指定します。 "PlatformImage" (必須)
offer Azure ギャラリー イメージからのイメージ オファー。 string
publisher Azure ギャラリー イメージの Image Publisher。 string
sku Azure ギャラリー イメージのイメージ SKU。 string
version Azure ギャラリー イメージのイメージ バージョン。 string