az reservations reservation-order

Note

このリファレンスは、Azure CLI (バージョン 2.50.0 以降) の予約拡張機能の一部です。 拡張機能は、az reservations reservation-order コマンドを初めて実行するときに自動的にインストールされます。 拡張機能の詳細をご覧ください。

コマンド グループ 'reservations' はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

予約注文。

コマンド

名前 説明 Status
az reservations reservation-order calculate

を配置するための価格を計算します ReservationOrder

拡張 プレビュー
az reservations reservation-order calculate-refund

ポリシー エラーがない場合は、返品の Reservations 価格を計算します。

拡張 プレビュー
az reservations reservation-order change-directory

ディレクトリ (テナント) ReservationOrder とその下にあるすべての Reservation ディレクトリを、指定したテナント ID に変更します。

拡張 プレビュー
az reservations reservation-order list

現在のテナントで ReservationOrderユーザーがアクセスできるすべての s の一覧。

拡張 プレビュー
az reservations reservation-order purchase

指定した URI の下にリソースを作成 ReservationOrder して作成します。

拡張 プレビュー
az reservations reservation-order return

予約を返します。

拡張 プレビュー
az reservations reservation-order show

の詳細を取得します ReservationOrder

拡張 プレビュー
az reservations reservation-order wait

条件が満たされるまで CLI を待機状態にします。

拡張 プレビュー

az reservations reservation-order calculate

プレビュー

コマンド グループ 'reservations' はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

を配置するための価格を計算します ReservationOrder

az reservations reservation-order calculate [--applied-scope]
                                            [--applied-scope-property]
                                            [--applied-scope-type {ManagementGroup, Shared, Single}]
                                            [--billing-plan {Monthly, Upfront}]
                                            [--billing-scope]
                                            [--display-name]
                                            [--instance-flexibility {Off, On}]
                                            [--location]
                                            [--quantity]
                                            [--renew {0, 1, f, false, n, no, t, true, y, yes}]
                                            [--reserved-resource-type {AVS, AppService, AzureDataExplorer, AzureFiles, BlockBlob, CosmosDb, DataFactory, Databricks, DedicatedHost, ManagedDisk, MariaDb, MySql, NetAppStorage, PostgreSql, RedHat, RedHatOsa, RedisCache, SapHana, SqlAzureHybridBenefit, SqlDataWarehouse, SqlDatabases, SqlEdge, SuseLinux, VMwareCloudSimple, VirtualMachineSoftware, VirtualMachines}]
                                            [--review-date-time]
                                            [--sku]
                                            [--term {P1Y, P3Y, P5Y}]

価格を計算する

az reservations reservation-order calculate --applied-scope-type Shared --billing-scope 50000000-aaaa-bbbb-cccc-100000000002 --display-name name1 --quantity 1 --reserved-resource-type VirtualMachines --sku Standard_B1s --term P1Y --billing-plan Monthly --location eastus

省略可能のパラメーター

--applied-scope

特典が適用されるサブスクリプション。 --applied-scope-type が Single の場合は必須。 --applied-scope-type が Shared かどうかを指定しないでください。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。

--applied-scope-property

適用されたスコープの種類に固有のプロパティ。 該当しない場合は必須ではありません。 AppliedScopeType が ManagementGroup サポートの短縮構文、json-file、yaml-file の場合は、tenantId と managementGroupId を指定する必要があります。 詳細を表示するには、"??" を試してください。

--applied-scope-type

適用されたスコープの種類。

承認された値: ManagementGroup, Shared, Single
--billing-plan

課金プランを表します。

承認された値: Monthly, Upfront
--billing-scope

予約の購入に対して課金されるサブスクリプション。

--display-name

予約のフレンドリ名。

--instance-flexibility

これをオンにすると、同じ VM サイズ グループ内の他の VM に予約割引が適用されます。 VirtualMachines の予約済みリソースの種類にのみ指定します。

承認された値: Off, On
--location

予約済みリソースが存在する Azure リージョン。

--quantity

予約の一部である SKU の数量。

--renew

これを true に設定すると、有効期限の日時に新しい予約が自動的に購入されます。

承認された値: 0, 1, f, false, n, no, t, true, y, yes
既定値: False
--reserved-resource-type

予約されているリソースの種類。

承認された値: AVS, AppService, AzureDataExplorer, AzureFiles, BlockBlob, CosmosDb, DataFactory, Databricks, DedicatedHost, ManagedDisk, MariaDb, MySql, NetAppStorage, PostgreSql, RedHat, RedHatOsa, RedisCache, SapHana, SqlAzureHybridBenefit, SqlDataWarehouse, SqlDatabases, SqlEdge, SuseLinux, VMwareCloudSimple, VirtualMachineSoftware, VirtualMachines
--review-date-time

これは、Azure ハイブリッド特典を確認する必要がある日時です。

--sku

購入用の SKU 名。

--term

予約の期間を表します。

承認された値: P1Y, P3Y, P5Y
グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

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

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az reservations reservation-order calculate-refund

プレビュー

コマンド グループ 'reservations' はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

ポリシー エラーがない場合は、返品の Reservations 価格を計算します。

az reservations reservation-order calculate-refund --reservation-order-id
                                                   [--id]
                                                   [--quantity]
                                                   [--reservation-id]
                                                   [--scope]

払い戻しの計算

az reservations reservation-order calculate-refund --reservation-order-id 0000000-aaaa-bbbb-cccc-20000000001 --id /providers/microsoft.capacity/reservationOrders/0000000-aaaa-bbbb-cccc-20000000001 --scope Reservation --quantity 1 --reservation-id /providers/microsoft.capacity/reservationOrders/0000000-aaaa-bbbb-cccc-20000000001/reservations/50000000-aaaa-bbbb-cccc-200000000000

必須のパラメーター

--reservation-order-id

予約の注文 ID。

省略可能のパラメーター

--id

返される予約注文の完全修飾識別子。

--quantity

返される数量。 0 より大きくなければなりません。

--reservation-id

返される予約の完全修飾識別子。

--scope

払い戻しの範囲 (予約など)。

グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

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

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az reservations reservation-order change-directory

プレビュー

コマンド グループ 'reservations' はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

ディレクトリ (テナント) ReservationOrder とその下にあるすべての Reservation ディレクトリを、指定したテナント ID に変更します。

az reservations reservation-order change-directory --reservation-order-id
                                                   [--destination-tenant-id]

予約注文を別のテナントに変更する

az reservations reservation-order change-directory --reservation-order-id 50000000-aaaa-bbbb-cccc-200000000000 --destination-tenant-id 10000000-aaaa-bbbb-cccc-200000000011

必須のパラメーター

--reservation-order-id

予約の注文 ID。

省略可能のパラメーター

--destination-tenant-id

予約注文が転送されるテナント ID GUID。

グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

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

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az reservations reservation-order list

プレビュー

コマンド グループ 'reservations' はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

現在のテナントで ReservationOrderユーザーがアクセスできるすべての s の一覧。

az reservations reservation-order list [--max-items]
                                       [--next-token]

ユーザーが現在のテナントでアクセスできるすべての予約注文の一覧。

az reservations reservation-order list

省略可能のパラメーター

--max-items

コマンドの出力で返される項目の合計数。 使用可能な項目の合計数が指定された値を超える場合は、コマンドの出力にトークンが提供されます。 改ページ位置の変更を再開するには、後続のコマンドの引数に --next-token トークン値を指定します。

--next-token

ページ分割を開始する場所を指定するトークン。 これは、以前に切り捨てられた応答からのトークン値です。

グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

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

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az reservations reservation-order purchase

プレビュー

コマンド グループ 'reservations' はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

指定した URI の下にリソースを作成 ReservationOrder して作成します。

az reservations reservation-order purchase --reservation-order-id
                                           [--applied-scope]
                                           [--applied-scope-property]
                                           [--applied-scope-type {ManagementGroup, Shared, Single}]
                                           [--billing-plan {Monthly, Upfront}]
                                           [--billing-scope]
                                           [--display-name]
                                           [--instance-flexibility {Off, On}]
                                           [--location]
                                           [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                           [--quantity]
                                           [--renew {0, 1, f, false, n, no, t, true, y, yes}]
                                           [--reserved-resource-type {AVS, AppService, AzureDataExplorer, AzureFiles, BlockBlob, CosmosDb, DataFactory, Databricks, DedicatedHost, ManagedDisk, MariaDb, MySql, NetAppStorage, PostgreSql, RedHat, RedHatOsa, RedisCache, SapHana, SqlAzureHybridBenefit, SqlDataWarehouse, SqlDatabases, SqlEdge, SuseLinux, VMwareCloudSimple, VirtualMachineSoftware, VirtualMachines}]
                                           [--review-date-time]
                                           [--sku]
                                           [--term {P1Y, P3Y, P5Y}]

1 つのスコープ予約を購入する

az reservations reservation-order purchase --reservation-order-id 40000000-aaaa-bbbb-cccc-200000000005 --applied-scope-type Single --billing-scope 50000000-aaaa-bbbb-cccc-200000000005 --reserved-resource-type VirtualMachines --display-name name1 --quantity 1 --sku Standard_B1s --term P1Y --billing-plan Monthly --location eastus --applied-scope 50000000-aaaa-bbbb-cccc-200000000010

リソース グループの予約を使用して単一のスコープを購入する

az reservations reservation-order purchase --reservation-order-id 40000000-aaaa-bbbb-cccc-200000000005 --applied-scope-type Single --billing-scope 50000000-aaaa-bbbb-cccc-200000000005 --reserved-resource-type VirtualMachines --display-name testername1 --quantity 1 --sku Standard_B1s --term P1Y --billing-plan Monthly --location eastus --applied-scope '/subscriptions/50000000-aaaa-bbbb-cccc-200000000005/resourceGroups/rg1' --instance-flexibility Off

必須のパラメーター

--reservation-order-id

予約の注文 ID。

省略可能のパラメーター

--applied-scope

特典が適用されるサブスクリプション。 --applied-scope-type が Single の場合は必須。 --applied-scope-type が Shared かどうかを指定しないでください。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。

--applied-scope-property

適用されたスコープの種類に固有のプロパティ。 該当しない場合は必須ではありません。 AppliedScopeType が ManagementGroup サポートの短縮構文、json-file、yaml-file の場合は、tenantId と managementGroupId を指定する必要があります。 詳細を表示するには、"??" を試してください。

--applied-scope-type

適用されたスコープの種類。

承認された値: ManagementGroup, Shared, Single
--billing-plan

課金プランを表します。

承認された値: Monthly, Upfront
--billing-scope

予約の購入に対して課金されるサブスクリプション。

--display-name

予約のフレンドリ名。

--instance-flexibility

これをオンにすると、同じ VM サイズ グループ内の他の VM に予約割引が適用されます。 VirtualMachines の予約済みリソースの種類にのみ指定します。

承認された値: Off, On
--location

予約済みリソースが存在する Azure リージョン。

--no-wait

実行時間の長い操作の終了を待機しません。

承認された値: 0, 1, f, false, n, no, t, true, y, yes
--quantity

予約の一部である SKU の数量。

--renew

これを true に設定すると、有効期限の日時に新しい予約が自動的に購入されます。

承認された値: 0, 1, f, false, n, no, t, true, y, yes
既定値: False
--reserved-resource-type

予約されているリソースの種類。

承認された値: AVS, AppService, AzureDataExplorer, AzureFiles, BlockBlob, CosmosDb, DataFactory, Databricks, DedicatedHost, ManagedDisk, MariaDb, MySql, NetAppStorage, PostgreSql, RedHat, RedHatOsa, RedisCache, SapHana, SqlAzureHybridBenefit, SqlDataWarehouse, SqlDatabases, SqlEdge, SuseLinux, VMwareCloudSimple, VirtualMachineSoftware, VirtualMachines
--review-date-time

これは、Azure ハイブリッド特典を確認する必要がある日時です。

--sku

購入用の SKU 名。

--term

予約の期間を表します。

承認された値: P1Y, P3Y, P5Y
グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

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

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az reservations reservation-order return

プレビュー

コマンド グループ 'reservations' はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

予約を返します。

az reservations reservation-order return --reservation-order-id
                                         [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                         [--quantity]
                                         [--reservation-id]
                                         [--return-reason]
                                         [--scope]
                                         [--session-id]

予約を返す

az reservations reservation-order return --reservation-order-id 50000000-aaaa-bbbb-cccc-200000000000 --return-reason mockReason --scope Reservation --quantity 1 --reservation-id /providers/microsoft.capacity/reservationOrders/50000000-aaaa-bbbb-cccc-200000000000/reservations/30000000-aaaa-bbbb-cccc-200000000011 --session-id 40000000-aaaa-bbbb-cccc-200000000020

必須のパラメーター

--reservation-order-id

予約の注文 ID。

省略可能のパラメーター

--no-wait

実行時間の長い操作の終了を待機しません。

承認された値: 0, 1, f, false, n, no, t, true, y, yes
--quantity

返される数量。 0 より大きくなければなりません。

--reservation-id

返される予約の完全修飾識別子。

--return-reason

予約を返す理由。

--scope

払い戻しの範囲 (予約など)。

--session-id

CalculateRefund API によって返された SessionId。

グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

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

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az reservations reservation-order show

プレビュー

コマンド グループ 'reservations' はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

の詳細を取得します ReservationOrder

az reservations reservation-order show --reservation-order-id
                                       [--expand]

予約注文の詳細を取得する

az reservations reservation-order show --reservation-order-id 50000000-aaaa-bbbb-cccc-200000000005

必須のパラメーター

--reservation-order-id

予約の注文 ID。

省略可能のパラメーター

--expand

planInformation を展開するために使用できます。

グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

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

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az reservations reservation-order wait

プレビュー

コマンド グループ 'reservations' はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

条件が満たされるまで CLI を待機状態にします。

az reservations reservation-order wait --reservation-order-id
                                       [--created]
                                       [--custom]
                                       [--deleted]
                                       [--exists]
                                       [--expand]
                                       [--interval]
                                       [--timeout]
                                       [--updated]

必須のパラメーター

--reservation-order-id

予約の注文 ID。

省略可能のパラメーター

--created

'provisioningState' が 'Succeeded' で作成されるまで待ちます。

既定値: False
--custom

条件がカスタム JMESPath クエリを満たすまで待ちます。 例: provisioningState!='InProgress'、instanceView.statuses[?code=='PowerState/running']。

--deleted

削除されるまで待ちます。

既定値: False
--exists

リソースが存在するまで待ちます。

既定値: False
--expand

planInformation を展開するために使用できます。

--interval

ポーリング間隔 (秒単位)。

既定値: 30
--timeout

最大待機時間 (秒単位)。

既定値: 3600
--updated

provisioningState が 'Succeeded' で更新されるまで待ちます。

既定値: False
グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

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

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。