Gallery Images - Create Or Update

ギャラリー イメージ定義を作成または更新します。

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}?api-version=2023-07-03

URI パラメーター

名前 / 必須 説明
galleryImageName
path True

string

作成または更新するギャラリー イメージ定義の名前。 使用できる文字は、アルファベットと数字で、中央にドット、ダッシュ、ピリオドを使用できます。 最大長は 80 文字です。

galleryName
path True

string

イメージ定義を作成するShared Image Galleryの名前。

resourceGroupName
path True

string

リソース グループの名前。

subscriptionId
path True

string

Microsoft Azure サブスクリプションを一意に識別するサブスクリプション資格情報。 サブスクリプション ID は、全ての修理依頼についてURI の一部を生じさせます。

api-version
query True

string

クライアント API のバージョン。

要求本文

名前 必須 説明
location True

string

リソースの場所

properties.identifier True

GalleryImageIdentifier

これはギャラリー イメージ定義識別子です。

properties.osState True

OperatingSystemStateTypes

このプロパティを使用すると、ユーザーは、このイメージの下に作成された仮想マシンが "一般化" か "特殊化" かを指定できます。

properties.osType True

OperatingSystemTypes

このプロパティを使用すると、マネージド イメージから VM を作成するときにディスクに含まれる OS の種類を指定できます。 使用できる値は、 Windows、Linux です。

properties.architecture

Architecture

イメージのアーキテクチャ。 OS ディスクにのみ適用されます。

properties.description

string

このギャラリー イメージ定義リソースの説明。 このプロパティは更新可能です。

properties.disallowed

Disallowed

許可されていないディスクの種類について説明します。

properties.endOfLifeDate

string

ギャラリー イメージ定義の有効期間の終了日。 このプロパティは、使用停止の目的で使用できます。 このプロパティは更新可能です。

properties.eula

string

ギャラリー イメージ定義の Eula 契約。

properties.features

GalleryImageFeature[]

ギャラリー イメージ機能の一覧。

properties.hyperVGeneration

HyperVGeneration

仮想マシンのハイパーバイザーの生成。 OS ディスクにのみ適用されます。

properties.privacyStatementUri

string

プライバシーに関する声明 URI。

properties.purchasePlan

ImagePurchasePlan

ギャラリー イメージ定義の購入プランについて説明します。 これはマーケットプレース イメージで使用されます。

properties.recommended

RecommendedMachineConfiguration

プロパティでは、このイメージ定義に推奨されるマシン構成について説明します。 これらのプロパティは更新可能です。

properties.releaseNoteUri

string

リリース ノート URI。

tags

object

リソース タグ

応答

名前 説明
200 OK

GalleryImage

OK

201 Created

GalleryImage

作成済み

202 Accepted

GalleryImage

同意

Other Status Codes

CloudError

操作に失敗した理由を説明するエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名前 説明
user_impersonation ユーザー アカウントの借用

Sample Request

PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/images/myGalleryImageName?api-version=2023-07-03

{
  "location": "West US",
  "properties": {
    "osType": "Windows",
    "osState": "Generalized",
    "hyperVGeneration": "V1",
    "identifier": {
      "publisher": "myPublisherName",
      "offer": "myOfferName",
      "sku": "mySkuName"
    }
  }
}

Sample Response

{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGallery/Images/myGalleryImageName",
  "properties": {
    "osType": "Windows",
    "osState": "Generalized",
    "hyperVGeneration": "V1",
    "identifier": {
      "publisher": "myPublisherName",
      "offer": "myOfferName",
      "sku": "mySkuName"
    },
    "provisioningState": "Updating"
  },
  "location": "West US",
  "name": "myGalleryImageName"
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGallery/Images/myGalleryImageName",
  "properties": {
    "osType": "Windows",
    "osState": "Generalized",
    "hyperVGeneration": "V1",
    "identifier": {
      "publisher": "myPublisherName",
      "offer": "myOfferName",
      "sku": "mySkuName"
    },
    "provisioningState": "Creating"
  },
  "location": "West US",
  "name": "myGalleryImageName"
}
{
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGallery/Images/myGalleryImageName",
  "properties": {
    "osType": "Windows",
    "osState": "Generalized",
    "hyperVGeneration": "V1",
    "identifier": {
      "publisher": "myPublisherName",
      "offer": "myOfferName",
      "sku": "mySkuName"
    },
    "provisioningState": "Updating"
  },
  "location": "West US",
  "name": "myGalleryImageName"
}

定義

名前 説明
ApiError

API エラー。

ApiErrorBase

API エラーベース。

Architecture

イメージのアーキテクチャ。 OS ディスクにのみ適用されます。

CloudError

コンピューティング サービスからのエラー応答。

Disallowed

許可されていないディスクの種類について説明します。

GalleryImage

作成または更新するギャラリー イメージ定義に関する情報を指定します。

GalleryImageFeature

ギャラリー イメージの機能。

GalleryImageIdentifier

これはギャラリー イメージ定義識別子です。

GalleryProvisioningState

ギャラリーまたはギャラリー成果物の現在の状態。

HyperVGeneration

仮想マシンのハイパーバイザーの生成。 OS ディスクにのみ適用されます。

ImagePurchasePlan

ギャラリー イメージ定義の購入プランについて説明します。 これはマーケットプレース イメージで使用されます。

InnerError

内部エラーの詳細。

OperatingSystemStateTypes

このプロパティを使用すると、ユーザーは、このイメージの下に作成された仮想マシンが "一般化" か "特殊化" かを指定できます。

OperatingSystemTypes

このプロパティを使用すると、アプリケーションがビルドされる OS のサポートされている種類を指定できます。 使用できる値は、 Windows、Linux です。

RecommendedMachineConfiguration

プロパティでは、このイメージ定義に推奨されるマシン構成について説明します。 これらのプロパティは更新可能です。

ResourceRange

リソース範囲について説明します。

ApiError

API エラー。

名前 説明
code

string

エラー コード。

details

ApiErrorBase[]

Api エラーの詳細

innererror

InnerError

Api の内部エラー

message

string

エラー メッセージ。

target

string

特定のエラーのターゲット。

ApiErrorBase

API エラーベース。

名前 説明
code

string

エラー コード。

message

string

エラー メッセージ。

target

string

特定のエラーのターゲット。

Architecture

イメージのアーキテクチャ。 OS ディスクにのみ適用されます。

名前 説明
Arm64

string

x64

string

CloudError

コンピューティング サービスからのエラー応答。

名前 説明
error

ApiError

API エラー。

Disallowed

許可されていないディスクの種類について説明します。

名前 説明
diskTypes

string[]

ディスクの種類の一覧。

GalleryImage

作成または更新するギャラリー イメージ定義に関する情報を指定します。

名前 説明
id

string

リソース ID

location

string

リソースの場所

name

string

リソース名

properties.architecture

Architecture

イメージのアーキテクチャ。 OS ディスクにのみ適用されます。

properties.description

string

このギャラリー イメージ定義リソースの説明。 このプロパティは更新可能です。

properties.disallowed

Disallowed

許可されていないディスクの種類について説明します。

properties.endOfLifeDate

string

ギャラリー イメージ定義の有効期間の終了日。 このプロパティは、使用停止の目的で使用できます。 このプロパティは更新可能です。

properties.eula

string

ギャラリー イメージ定義の Eula 契約。

properties.features

GalleryImageFeature[]

ギャラリー イメージ機能の一覧。

properties.hyperVGeneration

HyperVGeneration

仮想マシンのハイパーバイザーの生成。 OS ディスクにのみ適用されます。

properties.identifier

GalleryImageIdentifier

これはギャラリー イメージ定義識別子です。

properties.osState

OperatingSystemStateTypes

このプロパティを使用すると、ユーザーは、このイメージの下に作成された仮想マシンが "一般化" か "特殊化" かを指定できます。

properties.osType

OperatingSystemTypes

このプロパティを使用すると、マネージド イメージから VM を作成するときにディスクに含まれる OS の種類を指定できます。 使用できる値は、 Windows、Linux です。

properties.privacyStatementUri

string

プライバシーに関する声明 URI。

properties.provisioningState

GalleryProvisioningState

ギャラリーまたはギャラリー成果物の現在の状態。
プロビジョニング状態。これは応答にのみ表示されます。

properties.purchasePlan

ImagePurchasePlan

ギャラリー イメージ定義の購入プランについて説明します。 これはマーケットプレース イメージで使用されます。

properties.recommended

RecommendedMachineConfiguration

プロパティでは、このイメージ定義に推奨されるマシン構成について説明します。 これらのプロパティは更新可能です。

properties.releaseNoteUri

string

リリース ノート URI。

tags

object

リソース タグ

type

string

リソースの種類

GalleryImageFeature

ギャラリー イメージの機能。

名前 説明
name

string

ギャラリー イメージ機能の名前。

value

string

ギャラリー イメージ機能の値。

GalleryImageIdentifier

これはギャラリー イメージ定義識別子です。

名前 説明
offer

string

ギャラリー イメージ定義オファーの名前。

publisher

string

ギャラリー イメージ定義パブリッシャーの名前。

sku

string

ギャラリー イメージ定義 SKU の名前。

GalleryProvisioningState

ギャラリーまたはギャラリー成果物の現在の状態。

名前 説明
Creating

string

Deleting

string

Failed

string

Migrating

string

Succeeded

string

Updating

string

HyperVGeneration

仮想マシンのハイパーバイザーの生成。 OS ディスクにのみ適用されます。

名前 説明
V1

string

V2

string

ImagePurchasePlan

ギャラリー イメージ定義の購入プランについて説明します。 これはマーケットプレース イメージで使用されます。

名前 説明
name

string

プラン ID。

product

string

製品 ID。

publisher

string

発行元 ID。

InnerError

内部エラーの詳細。

名前 説明
errordetail

string

内部エラー メッセージまたは例外ダンプ。

exceptiontype

string

例外の種類。

OperatingSystemStateTypes

このプロパティを使用すると、ユーザーは、このイメージの下に作成された仮想マシンが "一般化" か "特殊化" かを指定できます。

名前 説明
Generalized

string

Specialized

string

OperatingSystemTypes

このプロパティを使用すると、アプリケーションがビルドされる OS のサポートされている種類を指定できます。 使用できる値は、 Windows、Linux です。

名前 説明
Linux

string

Windows

string

RecommendedMachineConfiguration

プロパティでは、このイメージ定義に推奨されるマシン構成について説明します。 これらのプロパティは更新可能です。

名前 説明
memory

ResourceRange

リソース範囲について説明します。

vCPUs

ResourceRange

リソース範囲について説明します。

ResourceRange

リソース範囲について説明します。

名前 説明
max

integer

リソースの最大数。

min

integer

リソースの最小数。