次の方法で共有


az billing-benefits savings-plan-order savings-plan

Note

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

Azure の課金特典により、節約プランの注文コマンドでプランが節約されます。

コマンド

名前 説明 Status
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

必須のパラメーター

--savings-plan-order-id

割引プランの注文 ID。

グローバル パラメーター
--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 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

必須のパラメーター

--savings-plan-id

節約計画の ID。

--savings-plan-order-id

割引プランの注文 ID。

省略可能のパラメーター

--expand

一部のプロパティの詳細情報を展開するために使用できます。

グローバル パラメーター
--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 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}}"

必須のパラメーター

--savings-plan-id

節約計画の ID。

--savings-plan-order-id

割引プランの注文 ID。

省略可能のパラメーター

--applied-scope-prop

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

--applied-scope-type

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

承認された値: ManagementGroup, Shared, Single
--display-name

表示名。

--renew

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

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

短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。

グローバル パラメーター
--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 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}]"

必須のパラメーター

--savings-plan-id

節約計画の ID。

--savings-plan-order-id

割引プランの注文 ID。

省略可能のパラメーター

--benefits

短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。

グローバル パラメーター
--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 を使います。