az billing-benefits savings-plan-order savings-plan
注
このリファレンスは、Azure CLI (バージョン 2.43.0 以降) の 課金特典 拡張機能の一部です。 拡張機能は、az billing-benefits savings-plan-order savings-plan コマンド を初めて実行すると、自動的にインストールされます。 拡張機能の詳細については、 を参照してください。
Azure の課金特典により、節約プランの注文コマンドでプランが節約されます。
コマンド
名前 | 説明 | 型 | 状態 |
---|---|---|---|
az billing-benefits savings-plan-order savings-plan list |
節約計画を注文で一覧表示します。 |
拡張 | GA |
az billing-benefits savings-plan-order savings-plan show |
節約計画を取得します。 |
拡張 | GA |
az billing-benefits savings-plan-order savings-plan update |
節約計画を更新します。 |
拡張 | GA |
az billing-benefits savings-plan-order savings-plan validate-update |
節約計画の修正プログラムを検証します。 |
拡張 | 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。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
出力フォーマット。
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
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。
省略可能のパラメーター
一部のプロパティの詳細情報を展開するために使用できます。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
出力フォーマット。
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
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。
省略可能のパラメーター
適用されたスコープの種類に固有のプロパティ。 該当しない場合は必須ではありません。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。
適用されたスコープの種類。
表示名。
これを true に設定すると、有効期限の日時に新しい特典が自動的に購入されます。
短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
出力フォーマット。
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
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。
省略可能のパラメーター
短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
出力フォーマット。
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
Azure CLI