Microsoft.DevTestLab labs/virtualmachines 2018-09-15

Bicep リソース定義

ラボ/virtualmachines リソースの種類は、次を対象とする操作でデプロイできます。

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

リソース形式

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

resource symbolicname 'Microsoft.DevTestLab/labs/virtualmachines@2018-09-15' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  parent: resourceSymbolicName
  properties: {
    allowClaim: bool
    artifacts: [
      {
        artifactId: 'string'
        artifactTitle: 'string'
        deploymentStatusMessage: 'string'
        installTime: 'string'
        parameters: [
          {
            name: 'string'
            value: 'string'
          }
        ]
        status: 'string'
        vmExtensionStatusMessage: 'string'
      }
    ]
    createdDate: 'string'
    customImageId: 'string'
    dataDiskParameters: [
      {
        attachNewDataDiskOptions: {
          diskName: 'string'
          diskSizeGiB: int
          diskType: 'string'
        }
        existingLabDiskId: 'string'
        hostCaching: 'string'
      }
    ]
    disallowPublicIpAddress: bool
    environmentId: 'string'
    expirationDate: 'string'
    galleryImageReference: {
      offer: 'string'
      osType: 'string'
      publisher: 'string'
      sku: 'string'
      version: 'string'
    }
    isAuthenticationWithSshKey: bool
    labSubnetName: 'string'
    labVirtualNetworkId: 'string'
    networkInterface: {
      dnsName: 'string'
      privateIpAddress: 'string'
      publicIpAddress: 'string'
      publicIpAddressId: 'string'
      rdpAuthority: 'string'
      sharedPublicIpAddressConfiguration: {
        inboundNatRules: [
          {
            backendPort: int
            frontendPort: int
            transportProtocol: 'string'
          }
        ]
      }
      sshAuthority: 'string'
      subnetId: 'string'
      virtualNetworkId: 'string'
    }
    notes: 'string'
    ownerObjectId: 'string'
    ownerUserPrincipalName: 'string'
    password: 'string'
    planId: 'string'
    scheduleParameters: [
      {
        name: 'string'
        properties: {
          dailyRecurrence: {
            time: 'string'
          }
          hourlyRecurrence: {
            minute: int
          }
          notificationSettings: {
            emailRecipient: 'string'
            notificationLocale: 'string'
            status: 'string'
            timeInMinutes: int
            webhookUrl: 'string'
          }
          status: 'string'
          targetResourceId: 'string'
          taskType: 'string'
          weeklyRecurrence: {
            time: 'string'
            weekdays: [
              'string'
            ]
          }
        }
        tags: {}
      }
    ]
    size: 'string'
    sshKey: 'string'
    storageType: 'string'
    userName: 'string'
  }
}

プロパティ値

labs/virtualmachines

名前 説明
name リソース名

Bicep で子リソースの名前と型を設定する方法を参照してください。
string (必須)

文字制限: 1 から 15 (Windows)
1-64 (Linux)

有効な文字:
英数字とハイフン。

先頭と末尾には英数字を使用します。 すべて数字にすることはできません。
location リソースの場所。 string
tags リソースのタグ。 タグの名前と値のディクショナリ。 「テンプレート内のタグ」を参照してください
parent Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。

詳細については、「 親リソースの外部の子リソース」を参照してください。
種類のリソースのシンボル名: ラボ
properties リソースのプロパティ。 LabVirtualMachineProperties (必須)

LabVirtualMachineProperties

名前 説明
allowClaim 別のユーザーが仮想マシンの所有権を取得できるかどうかを示します [bool]
artifacts 仮想マシンにインストールする成果物。 ArtifactInstallProperties[]
createdDate 仮想マシンの作成日。 string
customImageId 仮想マシンのカスタム イメージ識別子。 string
dataDiskParameters 作成後に仮想マシンにアタッチする新規または既存のデータ ディスク DataDiskProperties[]
disallowPublicIpAddress パブリック IP アドレスなしで仮想マシンを作成するかどうかを示します。 [bool]
environmentId この仮想マシンを含む環境のリソース ID (存在する場合)。 string
expirationDate VM の有効期限。 string
galleryImageReference 仮想マシンの Microsoft Azure Marketplace イメージ 参照。 GalleryImageReference
isAuthenticationWithSshKey この仮想マシンが認証に SSH キーを使用するかどうかを示します。 [bool]
labSubnetName 仮想マシンのラボ サブネット名。 string
labVirtualNetworkId 仮想マシンのラボ仮想ネットワーク識別子。 string
networkInterface ネットワーク インターフェイスのプロパティ。 NetworkInterfaceProperties
notes 仮想マシンのメモ。 string
ownerObjectId 仮想マシンの所有者のオブジェクト識別子。 string
ownerUserPrincipalName 仮想マシン所有者のユーザー プリンシパル名。 string
password 仮想マシン管理者のパスワード。 string
planId 仮想マシン イメージに関連付けられているプランの ID string
scheduleParameters 作成する仮想マシンのスケジュール ScheduleCreationParameter[]
size 仮想マシンのサイズ。 string
sshKey 仮想マシン管理者の SSH キー。 string
storageType 仮想マシンに使用するストレージの種類 (Standard、Premium など)。 string
userName 仮想マシンのユーザー名。 string

ArtifactInstallProperties

名前 説明
artifactId 成果物の識別子。 string
artifactTitle 成果物のタイトル。 string
deploymentStatusMessage デプロイからのステータス メッセージ。 string
installTime 成果物が仮想マシンへのインストールを開始する時間。 string
parameters 成果物のパラメーター。 ArtifactParameterProperties[]
status 成果物の状態。 string
vmExtensionStatusMessage 仮想マシン拡張機能からのステータス メッセージ。 string

ArtifactParameterProperties

名前 説明
name 成果物パラメーターの名前。 string
value 成果物パラメーターの値。 string

DataDiskProperties

名前 説明
attachNewDataDiskOptions 新しいディスクを仮想マシンにアタッチするオプションを指定します。 AttachNewDataDiskOptions
existingLabDiskId 仮想マシンにアタッチする既存のラボ ディスク ID を指定します。 string
hostCaching データ ディスクのキャッシュ オプション (None、ReadOnly、ReadWrite など)。 'None'
'ReadOnly'
'ReadWrite'

AttachNewDataDiskOptions

名前 説明
diskName 接続するディスクの名前。 string
diskSizeGiB ギビバイト単位で接続するディスクのサイズ。 INT
diskType ディスクのストレージの種類 (Standard、Premium など)。 'Premium'
'Standard'
'StandardSSD'

GalleryImageReference

名前 説明
offer ギャラリー イメージのオファー。 string
osType ギャラリー イメージの OS の種類。 string
publisher ギャラリー イメージの発行元。 string
sku ギャラリー イメージの SKU。 string
version ギャラリー イメージのバージョン。 string

NetworkInterfaceProperties

名前 説明
dnsName DNS 名。 string
privateIpAddress プライベート IP アドレス。 string
publicIpAddress パブリック IP アドレス。 string
publicIpAddressId パブリック IP アドレスのリソース ID。 string
rdpAuthority RdpAuthority プロパティは、サーバー DNS ホスト名または IP アドレスの後に RDP (リモート デスクトップ プロトコル) のサービス ポート番号が続くものです。 string
sharedPublicIpAddressConfiguration 複数の仮想マシン間でパブリック IP アドレスを共有するための構成。 SharedPublicIpAddressConfiguration
sshAuthority SshAuthority プロパティは、サーバー DNS ホスト名または IP アドレスの後に SSH のサービス ポート番号が続くものです。 string
subnetId サブネットのリソース ID。 string
virtualNetworkId 仮想ネットワークのリソース ID。 string

SharedPublicIpAddressConfiguration

名前 説明
inboundNatRules 受信 NAT 規則 InboundNatRule[]

InboundNatRule

名前 説明
backendPort 外部トラフィックがリダイレクトされるポート。 INT
frontendPort 受信接続の外部エンドポイント ポート。 指定できる値は 1 以上 65535 以下です。 指定しない場合、値は自動的に割り当てられます。 INT
transportProtocol エンドポイントのトランスポート プロトコル。 'Tcp'
'Udp'

ScheduleCreationParameter

名前 説明
name 仮想マシンまたは環境の名前 string
properties スケジュールのプロパティ。 ScheduleCreationParameterProperties
tags リソースのタグ。 object

ScheduleCreationParameterProperties

名前 説明
dailyRecurrence スケジュールが週の各日に 1 回行われる場合は、毎日の繰り返しを指定します。 DayDetails
hourlyRecurrence スケジュールが 1 日に複数回発生する場合は、時間単位の繰り返しを指定します。 HourDetails
notificationSettings 通知設定。 NotificationSettings
status スケジュールの状態 (有効、無効) 'Disabled'
'Enabled'
targetResourceId スケジュールが属するリソース ID string
taskType スケジュールのタスクの種類 (LabVmsShutdownTask、LabVmAutoStart など)。 string
weeklyRecurrence スケジュールが週の数日だけ発生する場合は、週単位の繰り返しを指定します。 WeekDetails

DayDetails

名前 説明
time スケジュールが発生する時刻。 string

HourDetails

名前 説明
minute スケジュールが実行される時間の分数。 INT

NotificationSettings

名前 説明
emailRecipient 通知を送信する電子メール受信者 (セミコロンで区切られた電子メール アドレスの一覧を指定できます)。 string
notificationLocale 通知を送信するときに使用するロケール (サポートされていない言語のフォールバックは EN です)。 string
status このスケジュールに対して通知が有効になっている場合 (つまり、有効、無効)。 'Disabled'
'Enabled'
timeInMinutes 通知が送信されるイベントの前の時間 (分)。 INT
webhookUrl 通知の送信先となる Webhook URL。 string

WeekDetails

名前 説明
time スケジュールが発生する時刻。 string
平日 スケジュールが設定されている曜日 (日曜日、月曜日、火曜日など)。 string[]

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

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

Template 説明
Windows Server VM を使用してAzure DevTest Labsにラボを作成する

Azure にデプロイする
このテンプレートは、Windows Server 2019 Datacenter VM を含む新しい DevTest Lab/DTL インスタンスを作成します。 その他の Azure Resource Manager クイック スタート テンプレート (Azure DevTest Labs)https://github.com/Azure/azure-devtestlab/tree/master/ARMTemplates
要求された VM を使用してAzure DevTest Labsにラボを作成します

Azure にデプロイする
このテンプレートは、要求された Windows Server 2019 Datacenter VM を含む新しい DevTest Lab/DTL インスタンスを作成します。 その他の Azure Resource Manager クイック スタート テンプレート (Azure DevTest Labs)https://github.com/Azure/azure-devtestlab/tree/master/ARMTemplates

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

ラボ/virtualmachines リソースの種類は、次を対象とする操作でデプロイできます。

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

リソース形式

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

{
  "type": "Microsoft.DevTestLab/labs/virtualmachines",
  "apiVersion": "2018-09-15",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "allowClaim": "bool",
    "artifacts": [
      {
        "artifactId": "string",
        "artifactTitle": "string",
        "deploymentStatusMessage": "string",
        "installTime": "string",
        "parameters": [
          {
            "name": "string",
            "value": "string"
          }
        ],
        "status": "string",
        "vmExtensionStatusMessage": "string"
      }
    ],
    "createdDate": "string",
    "customImageId": "string",
    "dataDiskParameters": [
      {
        "attachNewDataDiskOptions": {
          "diskName": "string",
          "diskSizeGiB": "int",
          "diskType": "string"
        },
        "existingLabDiskId": "string",
        "hostCaching": "string"
      }
    ],
    "disallowPublicIpAddress": "bool",
    "environmentId": "string",
    "expirationDate": "string",
    "galleryImageReference": {
      "offer": "string",
      "osType": "string",
      "publisher": "string",
      "sku": "string",
      "version": "string"
    },
    "isAuthenticationWithSshKey": "bool",
    "labSubnetName": "string",
    "labVirtualNetworkId": "string",
    "networkInterface": {
      "dnsName": "string",
      "privateIpAddress": "string",
      "publicIpAddress": "string",
      "publicIpAddressId": "string",
      "rdpAuthority": "string",
      "sharedPublicIpAddressConfiguration": {
        "inboundNatRules": [
          {
            "backendPort": "int",
            "frontendPort": "int",
            "transportProtocol": "string"
          }
        ]
      },
      "sshAuthority": "string",
      "subnetId": "string",
      "virtualNetworkId": "string"
    },
    "notes": "string",
    "ownerObjectId": "string",
    "ownerUserPrincipalName": "string",
    "password": "string",
    "planId": "string",
    "scheduleParameters": [
      {
        "name": "string",
        "properties": {
          "dailyRecurrence": {
            "time": "string"
          },
          "hourlyRecurrence": {
            "minute": "int"
          },
          "notificationSettings": {
            "emailRecipient": "string",
            "notificationLocale": "string",
            "status": "string",
            "timeInMinutes": "int",
            "webhookUrl": "string"
          },
          "status": "string",
          "targetResourceId": "string",
          "taskType": "string",
          "weeklyRecurrence": {
            "time": "string",
            "weekdays": [ "string" ]
          }
        },
        "tags": {}
      }
    ],
    "size": "string",
    "sshKey": "string",
    "storageType": "string",
    "userName": "string"
  }
}

プロパティ値

labs/virtualmachines

名前 説明
type リソースの種類 'Microsoft.DevTestLab/labs/virtualmachines'
apiVersion リソース API のバージョン '2018-09-15'
name リソース名

JSON ARM テンプレートで子リソースの名前と型を設定する方法を参照してください。
string (必須)

文字制限: 1 から 15 (Windows)
1-64 (Linux)

有効な文字:
英数字とハイフン。

先頭と末尾には英数字を使用します。 すべて数字にすることはできません。
location リソースの場所。 string
tags リソースのタグ。 タグの名前と値のディクショナリ。 「テンプレート内のタグ」を参照してください
properties リソースのプロパティ。 LabVirtualMachineProperties (必須)

LabVirtualMachineProperties

名前 説明
allowClaim 別のユーザーが仮想マシンの所有権を取得できるかどうかを示します [bool]
artifacts 仮想マシンにインストールする成果物。 ArtifactInstallProperties[]
createdDate 仮想マシンの作成日。 string
customImageId 仮想マシンのカスタム イメージ識別子。 string
dataDiskParameters 作成後に仮想マシンにアタッチする新規または既存のデータ ディスク DataDiskProperties[]
disallowPublicIpAddress パブリック IP アドレスなしで仮想マシンを作成するかどうかを示します。 [bool]
environmentId この仮想マシンを含む環境のリソース ID (存在する場合)。 string
expirationDate VM の有効期限。 string
galleryImageReference 仮想マシンの Microsoft Azure Marketplace イメージ 参照。 GalleryImageReference
isAuthenticationWithSshKey この仮想マシンが認証に SSH キーを使用するかどうかを示します。 [bool]
labSubnetName 仮想マシンのラボ サブネット名。 string
labVirtualNetworkId 仮想マシンのラボ仮想ネットワーク識別子。 string
networkInterface ネットワーク インターフェイスのプロパティ。 NetworkInterfaceProperties
notes 仮想マシンのメモ。 string
ownerObjectId 仮想マシンの所有者のオブジェクト識別子。 string
ownerUserPrincipalName 仮想マシン所有者のユーザー プリンシパル名。 string
password 仮想マシン管理者のパスワード。 string
planId 仮想マシン イメージに関連付けられているプランの ID string
scheduleParameters 仮想マシンの作成スケジュール ScheduleCreationParameter[]
size 仮想マシンのサイズ。 string
sshKey 仮想マシン管理者の SSH キー。 string
storageType 仮想マシンに使用するストレージの種類 (Standard、Premium など)。 string
userName 仮想マシンのユーザー名。 string

ArtifactInstallProperties

名前 説明
artifactId 成果物の識別子。 string
artifactTitle 成果物のタイトル。 string
deploymentStatusMessage デプロイからのステータス メッセージ。 string
installTime 成果物が仮想マシンへのインストールを開始する時間。 string
parameters 成果物のパラメーター。 ArtifactParameterProperties[]
status 成果物の状態。 string
vmExtensionStatusMessage 仮想マシン拡張機能からのステータス メッセージ。 string

ArtifactParameterProperties

名前 説明
name 成果物パラメーターの名前。 string
value 成果物パラメーターの値。 string

DataDiskProperties

名前 説明
attachNewDataDiskOptions 新しいディスクを仮想マシンにアタッチするオプションを指定します。 AttachNewDataDiskOptions
existingLabDiskId 仮想マシンにアタッチする既存のラボ ディスク ID を指定します。 string
hostCaching データ ディスクのキャッシュ オプション (None、ReadOnly、ReadWrite など)。 'None'
'ReadOnly'
'ReadWrite'

AttachNewDataDiskOptions

名前 説明
diskName アタッチするディスクの名前。 string
diskSizeGiB ギビバイト単位で接続するディスクのサイズ。 INT
diskType ディスクのストレージの種類 (Standard、Premium など)。 'Premium'
'Standard'
'StandardSSD'

GalleryImageReference

名前 説明
offer ギャラリー イメージのオファー。 string
osType ギャラリー イメージの OS の種類。 string
publisher ギャラリー イメージの発行元。 string
sku ギャラリー イメージの SKU。 string
version ギャラリー イメージのバージョン。 string

NetworkInterfaceProperties

名前 説明
dnsName DNS 名。 string
privateIpAddress プライベート IP アドレス。 string
publicIpAddress パブリック IP アドレス。 string
publicIpAddressId パブリック IP アドレスのリソース ID。 string
rdpAuthority RdpAuthority プロパティは、サーバー DNS ホスト名または IP アドレスの後に RDP (リモート デスクトップ プロトコル) のサービス ポート番号が続くものです。 string
sharedPublicIpAddressConfiguration 複数の仮想マシン間でパブリック IP アドレスを共有するための構成。 SharedPublicIpAddressConfiguration
sshAuthority SshAuthority プロパティは、サーバー DNS ホスト名または IP アドレスの後に SSH のサービス ポート番号が続くものです。 string
subnetId サブネットのリソース ID。 string
virtualNetworkId 仮想ネットワークのリソース ID。 string

SharedPublicIpAddressConfiguration

名前 説明
inboundNatRules 受信 NAT 規則 InboundNatRule[]

InboundNatRule

名前 説明
backendPort 外部トラフィックがリダイレクトされるポート。 INT
frontendPort 受信接続の外部エンドポイント ポート。 指定できる値は 1 以上 65535 以下です。 指定しない場合、値は自動的に割り当てられます。 INT
transportProtocol エンドポイントのトランスポート プロトコル。 'Tcp'
'Udp'

ScheduleCreationParameter

名前 説明
name 仮想マシンまたは環境の名前 string
properties スケジュールのプロパティ。 ScheduleCreationParameterProperties
tags リソースのタグ。 object

ScheduleCreationParameterProperties

名前 説明
dailyRecurrence スケジュールが週の各日に 1 回行われる場合は、毎日の繰り返しを指定します。 DayDetails
hourlyRecurrence スケジュールが 1 日に複数回発生する場合は、時間単位の繰り返しを指定します。 HourDetails
notificationSettings 通知設定。 NotificationSettings
status スケジュールの状態 (有効、無効) 'Disabled'
'Enabled'
targetResourceId スケジュールが属するリソース ID string
taskType スケジュールのタスクの種類 (LabVmsShutdownTask、LabVmAutoStart など)。 string
weeklyRecurrence スケジュールが週の数日だけ発生する場合は、週単位の繰り返しを指定します。 WeekDetails

DayDetails

名前 説明
time スケジュールが発生する時刻。 string

HourDetails

名前 説明
minute スケジュールが実行される時間の分数。 INT

NotificationSettings

名前 説明
emailRecipient 通知を送信するメール受信者 (セミコロンで区切られたメール アドレスの一覧を指定できます)。 string
notificationLocale 通知を送信するときに使用するロケール (サポートされていない言語のフォールバックは EN)。 string
status このスケジュールに対して通知が有効になっている場合 (つまり、有効、無効)。 'Disabled'
'Enabled'
timeInMinutes 通知が送信されるイベントの前の時間 (分)。 INT
webhookUrl 通知の送信先となる Webhook URL。 string

WeekDetails

名前 説明
time スケジュールが発生する時刻。 string
平日 スケジュールが設定されている曜日 (日曜日、月曜日、火曜日など)。 string[]

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

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

Template 説明
Windows Server VM を使用してAzure DevTest Labsにラボを作成します

Azure にデプロイする
このテンプレートは、Windows Server 2019 Datacenter VM を含む新しい DevTest Lab/DTL インスタンスを作成します。 その他の Azure Resource Manager Azure DevTest Labs 用クイック スタート テンプレートについては、以下を参照してください。https://github.com/Azure/azure-devtestlab/tree/master/ARMTemplates
要求された VM を使用してAzure DevTest Labsにラボを作成します

Azure にデプロイする
このテンプレートは、要求された Windows Server 2019 Datacenter VM を含む新しい DevTest Lab/DTL インスタンスを作成します。 その他の Azure Resource Manager Azure DevTest Labs 用クイック スタート テンプレートについては、以下を参照してください。https://github.com/Azure/azure-devtestlab/tree/master/ARMTemplates

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

labs/virtualmachines リソースの種類は、次をターゲットとする操作でデプロイできます。

  • リソース グループ

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

リソース形式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DevTestLab/labs/virtualmachines@2018-09-15"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      allowClaim = bool
      artifacts = [
        {
          artifactId = "string"
          artifactTitle = "string"
          deploymentStatusMessage = "string"
          installTime = "string"
          parameters = [
            {
              name = "string"
              value = "string"
            }
          ]
          status = "string"
          vmExtensionStatusMessage = "string"
        }
      ]
      createdDate = "string"
      customImageId = "string"
      dataDiskParameters = [
        {
          attachNewDataDiskOptions = {
            diskName = "string"
            diskSizeGiB = int
            diskType = "string"
          }
          existingLabDiskId = "string"
          hostCaching = "string"
        }
      ]
      disallowPublicIpAddress = bool
      environmentId = "string"
      expirationDate = "string"
      galleryImageReference = {
        offer = "string"
        osType = "string"
        publisher = "string"
        sku = "string"
        version = "string"
      }
      isAuthenticationWithSshKey = bool
      labSubnetName = "string"
      labVirtualNetworkId = "string"
      networkInterface = {
        dnsName = "string"
        privateIpAddress = "string"
        publicIpAddress = "string"
        publicIpAddressId = "string"
        rdpAuthority = "string"
        sharedPublicIpAddressConfiguration = {
          inboundNatRules = [
            {
              backendPort = int
              frontendPort = int
              transportProtocol = "string"
            }
          ]
        }
        sshAuthority = "string"
        subnetId = "string"
        virtualNetworkId = "string"
      }
      notes = "string"
      ownerObjectId = "string"
      ownerUserPrincipalName = "string"
      password = "string"
      planId = "string"
      scheduleParameters = [
        {
          name = "string"
          properties = {
            dailyRecurrence = {
              time = "string"
            }
            hourlyRecurrence = {
              minute = int
            }
            notificationSettings = {
              emailRecipient = "string"
              notificationLocale = "string"
              status = "string"
              timeInMinutes = int
              webhookUrl = "string"
            }
            status = "string"
            targetResourceId = "string"
            taskType = "string"
            weeklyRecurrence = {
              time = "string"
              weekdays = [
                "string"
              ]
            }
          }
          tags = {}
        }
      ]
      size = "string"
      sshKey = "string"
      storageType = "string"
      userName = "string"
    }
  })
}

プロパティ値

labs/virtualmachines

名前 説明
type リソースの種類 "Microsoft.DevTestLab/labs/virtualmachines@2018-09-15"
name リソース名 string (必須)

文字制限: 1 から 15 (Windows)
1-64 (Linux)

有効な文字:
英数字とハイフン。

先頭と末尾には英数字を使用します。 すべて数字にすることはできません。
location リソースの場所。 string
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: ラボ
tags リソースのタグ。 タグの名前と値のディクショナリ。
properties リソースのプロパティ。 LabVirtualMachineProperties (必須)

LabVirtualMachineProperties

名前 説明
allowClaim 別のユーザーが仮想マシンの所有権を取得できるかどうかを示します [bool]
artifacts 仮想マシンにインストールする成果物。 ArtifactInstallProperties[]
createdDate 仮想マシンの作成日。 string
customImageId 仮想マシンのカスタム イメージ識別子。 string
dataDiskParameters 作成後に仮想マシンにアタッチする新規または既存のデータ ディスク DataDiskProperties[]
disallowPublicIpAddress パブリック IP アドレスなしで仮想マシンを作成するかどうかを示します。 [bool]
environmentId この仮想マシンを含む環境のリソース ID (存在する場合)。 string
expirationDate VM の有効期限。 string
galleryImageReference 仮想マシンの Microsoft Azure Marketplace イメージ 参照。 GalleryImageReference
isAuthenticationWithSshKey この仮想マシンが認証に SSH キーを使用するかどうかを示します。 [bool]
labSubnetName 仮想マシンのラボ サブネット名。 string
labVirtualNetworkId 仮想マシンのラボ仮想ネットワーク識別子。 string
networkInterface ネットワーク インターフェイスのプロパティ。 NetworkInterfaceProperties
notes 仮想マシンのメモ。 string
ownerObjectId 仮想マシンの所有者のオブジェクト識別子。 string
ownerUserPrincipalName 仮想マシン所有者のユーザー プリンシパル名。 string
password 仮想マシン管理者のパスワード。 string
planId 仮想マシン イメージに関連付けられているプランの ID string
scheduleParameters 仮想マシンの作成スケジュール ScheduleCreationParameter[]
size 仮想マシンのサイズ。 string
sshKey 仮想マシン管理者の SSH キー。 string
storageType 仮想マシンに使用するストレージの種類 (Standard、Premium など)。 string
userName 仮想マシンのユーザー名。 string

ArtifactInstallProperties

名前 説明
artifactId 成果物の識別子。 string
artifactTitle 成果物のタイトル。 string
deploymentStatusMessage デプロイからのステータス メッセージ。 string
installTime 成果物が仮想マシンへのインストールを開始する時間。 string
parameters 成果物のパラメーター。 ArtifactParameterProperties[]
status 成果物の状態。 string
vmExtensionStatusMessage 仮想マシン拡張機能からのステータス メッセージ。 string

ArtifactParameterProperties

名前 説明
name 成果物パラメーターの名前。 string
value 成果物パラメーターの値。 string

DataDiskProperties

名前 説明
attachNewDataDiskOptions 新しいディスクを仮想マシンにアタッチするオプションを指定します。 AttachNewDataDiskOptions
existingLabDiskId 仮想マシンにアタッチする既存のラボ ディスク ID を指定します。 string
hostCaching データ ディスクのキャッシュ オプション (None、ReadOnly、ReadWrite など)。 "None"
"ReadOnly"
"ReadWrite"

AttachNewDataDiskOptions

名前 説明
diskName 接続するディスクの名前。 string
diskSizeGiB ギビバイト単位で接続するディスクのサイズ。 INT
diskType ディスクのストレージの種類 (Standard、Premium など)。 "Premium"
"Standard"
"StandardSSD"

GalleryImageReference

名前 説明
offer ギャラリー イメージのオファー。 string
osType ギャラリー イメージの OS の種類。 string
publisher ギャラリー イメージの発行元。 string
sku ギャラリー イメージの SKU。 string
version ギャラリー イメージのバージョン。 string

NetworkInterfaceProperties

名前 説明
dnsName DNS 名。 string
privateIpAddress プライベート IP アドレス。 string
publicIpAddress パブリック IP アドレス。 string
publicIpAddressId パブリック IP アドレスのリソース ID。 string
rdpAuthority RdpAuthority プロパティは、サーバー DNS ホスト名または IP アドレスの後に RDP (リモート デスクトップ プロトコル) のサービス ポート番号が続くものです。 string
sharedPublicIpAddressConfiguration 複数の仮想マシン間でパブリック IP アドレスを共有するための構成。 SharedPublicIpAddressConfiguration
sshAuthority SshAuthority プロパティは、サーバー DNS ホスト名または IP アドレスの後に SSH のサービス ポート番号が続くものです。 string
subnetId サブネットのリソース ID。 string
virtualNetworkId 仮想ネットワークのリソース ID。 string

SharedPublicIpAddressConfiguration

名前 説明
inboundNatRules 受信 NAT 規則 InboundNatRule[]

InboundNatRule

名前 説明
backendPort 外部トラフィックがリダイレクトされるポート。 INT
frontendPort 受信接続の外部エンドポイント ポート。 指定できる値は 1 以上 65535 以下です。 指定しない場合、値は自動的に割り当てられます。 INT
transportProtocol エンドポイントのトランスポート プロトコル。 "Tcp"
"Udp"

ScheduleCreationParameter

名前 説明
name 仮想マシンまたは環境の名前 string
properties スケジュールのプロパティ。 ScheduleCreationParameterProperties
tags リソースのタグ。 object

ScheduleCreationParameterProperties

名前 説明
dailyRecurrence スケジュールが曜日ごとに 1 回発生する場合は、毎日の繰り返しを指定します。 DayDetails
hourlyRecurrence スケジュールが 1 日に複数回発生する場合は、時間単位の繰り返しを指定します。 HourDetails
notificationSettings 通知設定。 NotificationSettings
status スケジュールの状態 (有効、無効) "無効"
"有効"
targetResourceId スケジュールが属するリソース ID string
taskType スケジュールのタスクの種類 (LabVmsShutdownTask、LabVmAutoStart など)。 string
weeklyRecurrence スケジュールが週の数日だけ発生する場合は、週単位の繰り返しを指定します。 WeekDetails

DayDetails

名前 説明
time スケジュールが発生する時刻。 string

HourDetails

名前 説明
minute スケジュールが実行される時間の分数。 INT

NotificationSettings

名前 説明
emailRecipient 通知を送信する電子メール受信者 (セミコロンで区切られた電子メール アドレスの一覧を指定できます)。 string
notificationLocale 通知を送信するときに使用するロケール (サポートされていない言語のフォールバックは EN)。 string
status このスケジュールに対して通知が有効になっている場合 (つまり、有効、無効)。 "無効"
"有効"
timeInMinutes 通知が送信されるイベントの前の時間 (分)。 INT
webhookUrl 通知の送信先となる Webhook URL。 string

WeekDetails

名前 説明
time スケジュールが発生する時刻。 string
平日 スケジュールが設定されている曜日 (日曜日、月曜日、火曜日など)。 string[]