az billing-benefits savings-plan-order savings-plan
Note
This reference is part of the billing-benefits extension for the Azure CLI (version 2.43.0 or higher). 拡張機能は、az billing-benefits savings-plan-order savings-plan コマンド を初めて実行すると、自動的にインストールされます。 Learn more about extensions.
Azure の課金特典により、節約プランの注文コマンドでプランが節約されます。
コマンド
名前 | 説明 | 型 | 状態 |
---|---|---|---|
az billing-benefits savings-plan-order savings-plan list |
節約計画を注文で一覧表示します。 |
Extension | GA |
az billing-benefits savings-plan-order savings-plan show |
節約計画を取得します。 |
Extension | GA |
az billing-benefits savings-plan-order savings-plan update |
節約計画を更新します。 |
Extension | GA |
az billing-benefits savings-plan-order savings-plan validate-update |
節約計画の修正プログラムを検証します。 |
Extension | GA |
az billing-benefits savings-plan-order savings-plan list
節約計画を注文で一覧表示します。
az billing-benefits savings-plan-order savings-plan list --savings-plan-order-id
例
節約プランを注文で一覧表示する
az billing-benefits savings-plan-order savings-plan list --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000017
必須のパラメーター
割引プランの注文 ID。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | 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 billing-benefits savings-plan-order savings-plan show
節約計画を取得します。
az billing-benefits savings-plan-order savings-plan show --savings-plan-id
--savings-plan-order-id
[--expand]
例
節約プランの詳細を取得する
az billing-benefits savings-plan-order savings-plan show --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000017 --savings-plan-id 30000000-aaaa-bbbb-cccc-200000000019
プロパティを更新して節約プランの詳細を取得する
az billing-benefits savings-plan-order savings-plan show --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000017 --savings-plan-id 30000000-aaaa-bbbb-cccc-200000000019 --expand renewProperties
必須のパラメーター
節約計画の ID。
割引プランの注文 ID。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一部のプロパティの詳細情報を展開するために使用できます。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | 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 billing-benefits savings-plan-order savings-plan update
節約計画を更新します。
az billing-benefits savings-plan-order savings-plan update --savings-plan-id
--savings-plan-order-id
[--applied-scope-prop]
[--applied-scope-type {ManagementGroup, Shared, Single}]
[--display-name]
[--renew {0, 1, f, false, n, no, t, true, y, yes}]
[--renew-properties]
例
表示名を更新する
az billing-benefits savings-plan-order savings-plan update --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000017 --savings-plan-id 30000000-aaaa-bbbb-cccc-200000000019 --display-name "cliTest"
割引プランの適用されたスコープを "共有" に更新する
az billing-benefits savings-plan-order savings-plan update --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000017 --savings-plan-id 30000000-aaaa-bbbb-cccc-200000000019 --applied-scope-type Shared
コスト削減計画の適用スコープを "Single" に更新する
az billing-benefits savings-plan-order savings-plan update --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000017 --savings-plan-id 30000000-aaaa-bbbb-cccc-200000000019 --applied-scope-type Single --applied-scope-prop "{subscription-id:/subscriptions/30000000-aaaa-bbbb-cccc-200000000004}"
"単一" リソース グループに適用された割引プランのスコープを更新する
az billing-benefits savings-plan-order savings-plan update --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000017 --savings-plan-id 30000000-aaaa-bbbb-cccc-200000000019 --applied-scope-type Single --applied-scope-prop "{subscription-id:/subscriptions/30000000-aaaa-bbbb-cccc-200000000004/resourceGroups/rgName}"
"ManagementGroup" に適用された割引プランのスコープを更新する
az billing-benefits savings-plan-order savings-plan update --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000017 --savings-plan-id 30000000-aaaa-bbbb-cccc-200000000019 --applied-scope-type ManagementGroup --applied-scope-prop "{tenantId:10000000-aaaa-bbbb-cccc-20000000006,managementGroupId:/providers/Microsoft.Management/managementGroups/TestRg}"
更新割引プランの更新設定
az billing-benefits savings-plan-order savings-plan update --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000017 --savings-plan-id 30000000-aaaa-bbbb-cccc-200000000019 --renew true --renew-properties "{purchase-properties:{applied-scope-type:Shared,billing-plan:P1M,billing-scope-id:/subscriptions/30000000-aaaa-bbbb-cccc-200000000015,commitment:{amount:10.0,currency-code:USD,grain:Hourly},display-name:name1,renew:true,term:P1Y,sku:Compute_Savings_Plan}}"
必須のパラメーター
節約計画の ID。
割引プランの注文 ID。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
適用されたスコープの種類に固有のプロパティ。 該当しない場合は必須ではありません。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
適用されたスコープの種類。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
指定可能な値: | ManagementGroup, Shared, Single |
Display name.
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
これを true に設定すると、有効期限の日時に新しい特典が自動的に購入されます。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
規定値: | False |
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
短縮構文、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 billing-benefits savings-plan-order savings-plan validate-update
節約計画の修正プログラムを検証します。
az billing-benefits savings-plan-order savings-plan validate-update --savings-plan-id
--savings-plan-order-id
[--benefits]
例
節約計画の更新要求を検証する
az billing-benefits savings-plan-order savings-plan validate-update --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000006 --savings-plan-id 30000000-aaaa-bbbb-cccc-200000000004 --benefits "[{applied-scope-type:Shared,display-name:name1}]"
必須のパラメーター
節約計画の ID。
割引プランの注文 ID。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。
プロパティ | 値 |
---|---|
Parameter group: | Body 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 |