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 |
ポリシー エラーがない場合に |
Extension | Preview |
az reservations catalog |
Reservations catalog. |
Extension | Preview |
az reservations catalog show |
利用可能な予約のカタログを取得します。 |
Extension | Preview |
az reservations exchange |
1 つ以上の |
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 |
このサブスクリプションまたはこのサブスクリプションのリソース グループに適用される該当する |
Extension | Preview |
az reservations reservation-order calculate |
|
Extension | Preview |
az reservations reservation-order calculate-refund |
ポリシー エラーがない場合は、 |
Extension | Preview |
az reservations reservation-order change-directory |
|
Extension | Preview |
az reservations reservation-order list |
ユーザーが現在のテナントでアクセスできるすべての |
Extension | Preview |
az reservations reservation-order purchase |
|
Extension | Preview |
az reservations reservation-order return |
予約を返します。 |
Extension | Preview |
az reservations reservation-order show |
|
Extension | Preview |
az reservations reservation-order wait |
条件が満たされるまで CLI を待機状態にします。 |
Extension | Preview |
az reservations reservation archive |
取り消された状態または期限切れの状態にある |
Extension | Preview |
az reservations reservation list |
1 つの |
Extension | Preview |
az reservations reservation list-available-scope |
|
Extension | Preview |
az reservations reservation list-history |
|
Extension | Preview |
az reservations reservation merge |
指定した |
Extension | Preview |
az reservations reservation show |
特定の |
Extension | Preview |
az reservations reservation split |
指定した数量分布を持つ 2 つの |
Extension | Preview |
az reservations reservation unarchive |
|
Extension | Preview |
az reservations reservation update |
適用されたスコープ、更新、名前、 |
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.
実行時間の長い操作が完了するまで待つ必要はありません。
プロパティ | 値 |
---|---|
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
この交換で返される予約の一覧。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
この交換で購入される予約の一覧。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
この取引所で購入されている節約計画の一覧。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --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.
実行時間の長い操作が完了するまで待つ必要はありません。
プロパティ | 値 |
---|---|
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
CalculateExchange API によって返された SessionId。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --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.
予約プロパティでフィルター処理するために使用できます。 フィルターは、'eq'、'or'、および 'and' をサポートします。 現在、'ne'、'gt'、'le'、'ge'、または 'not' はサポートされていません。 予約プロパティには、sku/name、properties/{appliedScopeType、archived、displayName、displayProvisioningState、effectiveDateTime、expiryDate、provisioningState、quantity、renew、reservedResourceType、term、userFriendlyAppliedScopeType、userFriendlyRenewState} が含まれます。
コマンドの出力で返される項目の合計数。 使用可能な項目の合計数が指定された値を超える場合は、コマンドの出力にトークンが提供されます。 改ページ位置の変更を再開するには、後続のコマンドの引数 --next-token
トークン値を指定します。
プロパティ | 値 |
---|---|
Parameter group: | Pagination Arguments |
ページ分割を開始する場所を指定するトークン。 これは、以前に切り捨てられた応答からのトークン値です。
プロパティ | 値 |
---|---|
Parameter group: | Pagination Arguments |
予約プロパティ別の並べ替えに使用できます。
選択したプロビジョニング状態。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |