次の方法で共有


az billing-benefits savings-plan-order-aliases

Note

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

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

コマンド

名前 説明 Status
az billing-benefits savings-plan-order-aliases create

節約計画を作成します。 必要なアクセス許可の詳細については、以下を https://go.microsoft.com/fwlink/?linkid=2215851参照してください。

拡張 GA
az billing-benefits savings-plan-order-aliases show

節約プランの注文のエイリアスを取得します。

拡張 GA
az billing-benefits savings-plan-order-aliases wait

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

拡張 GA

az billing-benefits savings-plan-order-aliases create

節約計画を作成します。 必要なアクセス許可の詳細については、以下を https://go.microsoft.com/fwlink/?linkid=2215851参照してください。

az billing-benefits savings-plan-order-aliases create --order-alias-name
                                                      [--applied-scope-prop]
                                                      [--applied-scope-type {ManagementGroup, Shared, Single}]
                                                      [--billing-plan {P1M}]
                                                      [--billing-scope-id]
                                                      [--commitment]
                                                      [--display-name]
                                                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                      [--sku]
                                                      [--term {P1Y, P3Y, P5Y}]

共有スコープの節約計画を作成する

az billing-benefits savings-plan-order-aliases create --order-alias-name "cliTest" --applied-scope-type Shared --billing-plan P1M --billing-scope-id /subscriptions/30000000-aaaa-bbbb-cccc-200000000004 --commitment "{amount:10.0,currency-code:USD,grain:Hourly}" --display-name "cliTest" --term P1Y --sku Compute_Savings_Plan

単一スコープの節約計画を作成する

az billing-benefits savings-plan-order-aliases create --order-alias-name "cliTest" --applied-scope-type Single --applied-scope-prop "{subscription-id:/subscriptions/30000000-aaaa-bbbb-cccc-200000000004}" --billing-plan P1M --billing-scope-id /subscriptions/30000000-aaaa-bbbb-cccc-200000000004 --commitment "{amount:10.0,currency-code:USD,grain:Hourly}" --display-name "cliTest" --term P1Y --sku Compute_Savings_Plan

単一リソース グループ スコープの節約計画を作成する

az billing-benefits savings-plan-order-aliases create --order-alias-name "cliTest" --applied-scope-type Single --applied-scope-prop "{subscription-id:/subscriptions/30000000-aaaa-bbbb-cccc-200000000004/resourceGroups/rgName}" --billing-plan P1M --billing-scope-id /subscriptions/30000000-aaaa-bbbb-cccc-200000000004 --commitment "{amount:10.0,currency-code:USD,grain:Hourly}" --display-name "cliTest" --term P1Y --sku Compute_Savings_Plan

ManagementGroup の節約計画を作成する

az billing-benefits savings-plan-order-aliases create --order-alias-name "cliTest" --applied-scope-type ManagementGroup --applied-scope-prop "{tenantId:10000000-aaaa-bbbb-cccc-20000000006,managementGroupId:/providers/Microsoft.Management/managementGroups/TestRg}" --billing-plan P1M --billing-scope-id /subscriptions/30000000-aaaa-bbbb-cccc-200000000004 --commitment "{amount:10.0,currency-code:USD,grain:Hourly}" --display-name "cliTest" --term P1Y --sku Compute_Savings_Plan

必須のパラメーター

--order-alias-name

節約計画の注文エイリアスの名前。

省略可能のパラメーター

--applied-scope-prop

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

--applied-scope-type

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

承認された値: ManagementGroup, Shared, Single
--billing-plan

ISO 8601 形式の課金プランを表します。 月単位の請求プランにのみ必要です。

承認された値: P1M
--billing-scope-id

特典の購入に対して課金されるサブスクリプション。

--commitment

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

--display-name

表示名。

--no-wait

実行時間の長い操作の終了を待機しません。

承認された値: 0, 1, f, false, n, no, t, true, y, yes
--sku

適用する SKU の名前。

--term

特典の用語を ISO 8601 形式で表します。

承認された値: P1Y, P3Y, P5Y
グローバル パラメーター
--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-aliases show

節約プランの注文のエイリアスを取得します。

az billing-benefits savings-plan-order-aliases show --order-alias-name

節約プランの注文エイリアスを取得する

az billing-benefits savings-plan-order-aliases show --order-alias-name aliasName

必須のパラメーター

--order-alias-name

節約計画の注文エイリアスの名前。

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

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

az billing-benefits savings-plan-order-aliases wait --order-alias-name
                                                    [--created]
                                                    [--custom]
                                                    [--deleted]
                                                    [--exists]
                                                    [--interval]
                                                    [--timeout]
                                                    [--updated]

必須のパラメーター

--order-alias-name

節約計画の注文エイリアスの名前。

省略可能のパラメーター

--created

'provisioningState' が 'Succeeded' で作成されるまで待ちます。

既定値: False
--custom

条件がカスタム JMESPath クエリを満たすまで待ちます。 例: provisioningState!='InProgress'、instanceView.statuses[?code=='PowerState/running']。

--deleted

削除されるまで待ちます。

既定値: False
--exists

リソースが存在するまで待ちます。

既定値: False
--interval

ポーリング間隔 (秒単位)。

既定値: 30
--timeout

最大待機時間 (秒単位)。

既定値: 3600
--updated

provisioningState が 'Succeeded' で更新されるまで待ちます。

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