az vm host

Virtual Machines専用ホストを管理します。

コマンド

az vm host create

Create a dedicated host.

az vm host delete

Delete a dedicated host.

az vm host get-instance-view

Get instance information about a dedicated host.

az vm host group

専用ホスト グループを管理します。

az vm host group create

専用ホスト グループを作成します。

az vm host group delete

専用ホスト グループを削除します。

az vm host group get-instance-view

専用ホスト グループのインスタンス ビューを取得します。

az vm host group list

専用ホスト グループを一覧表示します。

az vm host group show

専用ホスト グループの詳細を取得します。

az vm host group update

専用ホスト グループを更新します。

az vm host list

List dedicated hosts.

az vm host restart

Restart the dedicated host.

az vm host show

Get the details of a dedicated host.

az vm host update

Update a dedicated host.

az vm host create

Create a dedicated host.

az vm host create --host-group
                  --name
                  --resource-group
                  --sku
                  [--auto-replace {false, true}]
                  [--license-type {None, Windows_Server_Hybrid, Windows_Server_Perpetual}]
                  [--location]
                  [--platform-fault-domain]
                  [--tags]

Create a dedicated host. エラー時に自動置換されることを確認する

az vm host create --host-group my-host-group --name my-host --platform-fault-domain 2 \
    --auto-replace --resource-group my-resource-group --sku DSv3-Type1

"東アジア" リージョンに専用ホストを作成します。 失敗した場合は自動置換しないでください。

az vm host create --host-group my-host-group --name my-host --platform-fault-domain 0 \
    --auto-replace false --resource-group my-resource-group --sku ESv3-Type1 --location eastasia

専用ホストを作成する (自動生成)

az vm host create --auto-replace true --host-group my-host-group --license-type None --location eastasia --name my-host --resource-group my-resource-group --sku DSv3-Type1

必須のパラメーター

--host-group

専用ホスト グループの名前。

--name -n

専用ホストの名前。

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

--sku

専用ホストの SKU。 使用可能な SKU: https://azure.microsoft.com/pricing/details/virtual-machines/dedicated-host/

省略可能のパラメーター

--auto-replace

障害が発生した場合は、ホストを自動的に置き換えます。

承認された値: false, true
--license-type

専用ホストにデプロイされた VM に適用されるソフトウェア ライセンスの種類。

承認された値: None, Windows_Server_Hybrid, Windows_Server_Perpetual
--location -l

場所。 値のソース: az account list-locations az configure --defaults location=<location> を使用して、既定の場所を構成できます。 それ以外の場合、場所は既定でリソース グループの場所になります。

--platform-fault-domain -d

グループ内のホストの障害ドメイン。 使用できる値: 0、1、2。

--tags

スペース区切りのタグ: key[=value] [key[=value] ...]。既存のタグをクリアするには、"" を使用します。

az vm host delete

Delete a dedicated host.

az vm host delete [--host-group]
                  [--ids]
                  [--name]
                  [--resource-group]
                  [--subscription]
                  [--yes]

省略可能のパラメーター

--host-group

Name of the Dedicated Host Group.

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids またはその他の 'Resource Id' 引数を指定する必要があります。

--name -n

Name of the Dedicated Host.

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--yes -y

確認のダイアログを表示しません。

既定値: False

az vm host get-instance-view

Get instance information about a dedicated host.

az vm host get-instance-view [--host-group]
                             [--ids]
                             [--name]
                             [--resource-group]
                             [--subscription]

専用ホストのインスタンス ビュー情報を取得します。

az vm host get-instance-view --host-group my-host-group --name my-host -g my-rg

ホスト グループ内のすべての専用ホストのインスタンス ビューを取得します。

az vm host get-instance-view --ids $(az vm host list -g my-rg --host-group my-host-group --query "[].id" -o tsv)

省略可能のパラメーター

--host-group

Name of the Dedicated Host Group.

--ids

1 つまたは複数のリソース ID (スペース区切り)。 It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

Name of the Dedicated Host.

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

az vm host list

List dedicated hosts.

az vm host list --host-group
                --resource-group

List dedicated hosts. (自動生成)

az vm host list --host-group my-host-group --resource-group my-rg

必須のパラメーター

--host-group

Name of the Dedicated Host Group.

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

az vm host restart

Restart the dedicated host.

The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.

az vm host restart [--host-group]
                   [--ids]
                   [--name]
                   [--resource-group]
                   [--subscription]

省略可能のパラメーター

--host-group

Name of the Dedicated Host Group.

--ids

1 つまたは複数のリソース ID (スペース区切り)。 It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

Name of the Dedicated Host.

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

az vm host show

専用ホストの詳細を取得します。

az vm host show [--host-group]
                [--ids]
                [--name]
                [--resource-group]
                [--subscription]

専用ホストの詳細を取得する (自動生成)

az vm host show --host-group my-host-group --name MyDedicatedHost --resource-group MyResourceGroup

省略可能のパラメーター

--host-group

Name of the Dedicated Host Group.

--ids

1 つまたは複数のリソース ID (スペース区切り)。 It should be a complete resource ID containing all information of 'Resource Id' arguments. --ids またはその他の 'Resource Id' 引数を指定する必要があります。

--name -n

専用ホストの名前。

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

az vm host update

専用ホストを更新します。

az vm host update [--add]
                  [--force-string]
                  [--host-group]
                  [--ids]
                  [--name]
                  [--remove]
                  [--resource-group]
                  [--set]
                  [--subscription]

専用ホストの 'autoReplaceOnFailure' フィールドを更新します。

az vm host update --host-group my-host-group --name my-host \
    --resource-group my-resource-group --set autoReplaceOnFailure=True

省略可能のパラメーター

--add

パスとキー値のペアを指定して、オブジェクトの一覧にオブジェクトを追加します。 例: --add property.listProperty <key=value、string、または JSON 文字列>。

既定値: []
--force-string

'set' または 'add' を使用する場合は、JSON への変換を試みるのではなく、文字列リテラルを保持します。

既定値: False
--host-group

専用ホスト グループの名前。

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 You should provide either --ids or other 'Resource Id' arguments.

--name -n

Name of the Dedicated Host.

--remove

リストからプロパティまたは要素を削除します。 例: --remove property.list OR --remove propertyToRemove。

既定値: []
--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

--set

設定するプロパティ パスと値を指定して、オブジェクトを更新します。 例: --set property1.property2=。

既定値: []
--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。