次の方法で共有


az reservations

Note

This reference is part of the reservation extension for the Azure CLI (version 2.50.0 or higher). The extension will automatically install the first time you run an az reservations command. Learn more about extensions.

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

Azure Reservations.

コマンド

名前 説明 状態
az reservations calculate-exchange

ポリシー エラーがない場合に Reservations を交換するための価格を計算します。

Extension Preview
az reservations catalog

Reservations catalog.

Extension Preview
az reservations catalog show

利用可能な予約のカタログを取得します。

Extension Preview
az reservations exchange

1 つ以上の Reservations 購入と引き換えに、1 つ以上の Reservation を返します。

Extension Preview
az reservations list

ユーザーが現在のテナントでアクセスできる予約を一覧表示します。

Extension Preview
az reservations reservation

Reservations reservation.

Extension Preview
az reservations reservation-order

Reservations reservation-order.

Extension Preview
az reservations reservation-order-id

Reservations reservation-order-id.

Extension Preview
az reservations reservation-order-id list

このサブスクリプションまたはこのサブスクリプションのリソース グループに適用される該当する Reservationを一覧表示します。

Extension Preview
az reservations reservation-order calculate

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

Extension Preview
az reservations reservation-order calculate-refund

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

Extension Preview
az reservations reservation-order change-directory

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

Extension Preview
az reservations reservation-order list

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

Extension Preview
az reservations reservation-order purchase

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

Extension Preview
az reservations reservation-order return

予約を返します。

Extension Preview
az reservations reservation-order show

ReservationOrderの詳細を取得します。

Extension Preview
az reservations reservation-order wait

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

Extension Preview
az reservations reservation archive

取り消された状態または期限切れの状態にある Reservation をアーカイブし、Archived 状態に移動します。

Extension Preview
az reservations reservation list

1 つの ReservationOrder内の予約を一覧表示します。

Extension Preview
az reservations reservation list-available-scope

Reservationで使用可能なスコープを一覧表示します。

Extension Preview
az reservations reservation list-history

Reservationのすべてのリビジョンの一覧。

Extension Preview
az reservations reservation merge

指定した Reservationを新しい Reservationにマージします。 マージされる 2 つの Reservationは、同じプロパティを持つ必要があります。

Extension Preview
az reservations reservation show

特定の Reservation の詳細を取得します。

Extension Preview
az reservations reservation split

指定した数量分布を持つ 2 つの ReservationReservation を分割します。

Extension Preview
az reservations reservation unarchive

Reservation のアーカイブを解除すると、アーカイブ前の状態に移動されます。

Extension Preview
az reservations reservation update

適用されたスコープ、更新、名前、Reservationのインスタンスの柔軟性を更新します。

Extension Preview
az reservations reservation wait

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

Extension Preview

az reservations calculate-exchange

プレビュー

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

ポリシー エラーがない場合に Reservations を交換するための価格を計算します。

az reservations calculate-exchange [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                   [--ris-to-exchange]
                                   [--ris-to-purchase]
                                   [--sp-to-purchase]

Calculate exchange

az reservations calculate-exchange --ris-to-exchange "[{reservation-id:/providers/microsoft.capacity/reservationOrders/40000000-aaaa-bbbb-cccc-200000000012/reservations/51000000-aaaa-bbbb-cccc-200000000012,quantity:1},{reservation-id:/providers/microsoft.capacity/reservationOrders/90000000-aaaa-bbbb-cccc-200000000012/reservations/36000000-aaaa-bbbb-cccc-200000000012,quantity:1}]" --ris-to-purchase "[{reserved-resource-type:VirtualMachines,applied-scope-type:Shared,billing-scope:12350000-aaaa-bbbb-cccc-200000000012,display-name:exchangeTest1,quantity:1,sku:Standard_B1s,term:P1Y,billing-plan:Monthly,location:eastus},{reserved-resource-type:VirtualMachines,applied-scope-type:Shared,billing-scope:12350000-aaaa-bbbb-cccc-200000000012,display-name:exchangeTest2,quantity:1,sku:Standard_B1s,term:P1Y,billing-plan:Monthly,location:eastus}]"

省略可能のパラメーター

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--no-wait

実行時間の長い操作が完了するまで待つ必要はありません。

プロパティ
指定可能な値: 0, 1, f, false, n, no, t, true, y, yes
--ris-to-exchange

この交換で返される予約の一覧。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。

プロパティ
Parameter group: Properties Arguments
--ris-to-purchase

この交換で購入される予約の一覧。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。

プロパティ
Parameter group: Properties Arguments
--sp-to-purchase

この取引所で購入されている節約計画の一覧。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。

プロパティ
Parameter group: Properties Arguments
グローバル パラメーター
--debug

ログの詳細度を上げて、すべてのデバッグ ログを表示します。

プロパティ
規定値: False
--help -h

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

--only-show-errors

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

プロパティ
規定値: False
--output -o

Output format.

プロパティ
規定値: json
指定可能な値: json, jsonc, none, table, tsv, yaml, yamlc
--query

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

--subscription

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

--verbose

ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。

プロパティ
規定値: False

az reservations exchange

プレビュー

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

1 つ以上の Reservations 購入と引き換えに、1 つ以上の Reservation を返します。

az reservations exchange [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                         [--session-id]

Exchange reservations

az reservations exchange --session-id 40000000-aaaa-bbbb-cccc-200000000012

省略可能のパラメーター

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--no-wait

実行時間の長い操作が完了するまで待つ必要はありません。

プロパティ
指定可能な値: 0, 1, f, false, n, no, t, true, y, yes
--session-id

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

プロパティ
Parameter group: Properties Arguments
グローバル パラメーター
--debug

ログの詳細度を上げて、すべてのデバッグ ログを表示します。

プロパティ
規定値: False
--help -h

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

--only-show-errors

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

プロパティ
規定値: False
--output -o

Output format.

プロパティ
規定値: json
指定可能な値: json, jsonc, none, table, tsv, yaml, yamlc
--query

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

--subscription

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

--verbose

ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。

プロパティ
規定値: False

az reservations list

プレビュー

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

ユーザーが現在のテナントでアクセスできる予約を一覧表示します。

az reservations list [--filter]
                     [--max-items]
                     [--next-token]
                     [--orderby]
                     [--selected-state]

現在のテナントの下に予約を一覧表示する

az reservations list

現在のテナントで "失敗" 状態の予約を一覧表示する

az reservations list --selected-state "Failed"

現在のテナントのすべての "VirtualMachines" 予約を一覧表示する

az az reservations list --filter "properties/reservedResourceType eq 'VirtualMachines'"

予約を一覧表示し、結果を数量別に降順に並べ替えます

az reservations list --orderby 'properties/quantity desc'

省略可能のパラメーター

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--filter

予約プロパティでフィルター処理するために使用できます。 フィルターは、'eq'、'or'、および 'and' をサポートします。 現在、'ne'、'gt'、'le'、'ge'、または 'not' はサポートされていません。 予約プロパティには、sku/name、properties/{appliedScopeType、archived、displayName、displayProvisioningState、effectiveDateTime、expiryDate、provisioningState、quantity、renew、reservedResourceType、term、userFriendlyAppliedScopeType、userFriendlyRenewState} が含まれます。

--max-items

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

プロパティ
Parameter group: Pagination Arguments
--next-token

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

プロパティ
Parameter group: Pagination Arguments
--orderby

予約プロパティ別の並べ替えに使用できます。

--selected-state

選択したプロビジョニング状態。

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

ログの詳細度を上げて、すべてのデバッグ ログを表示します。

プロパティ
規定値: False
--help -h

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

--only-show-errors

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

プロパティ
規定値: False
--output -o

Output format.

プロパティ
規定値: json
指定可能な値: json, jsonc, none, table, tsv, yaml, yamlc
--query

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

--subscription

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

--verbose

ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。

プロパティ
規定値: False