次の方法で共有


az new-relic monitor monitored-subscription

Note

このリファレンスは、Azure CLI (バージョン 2.57.0 以降) の new-relic 拡張機能の一部です。 拡張機能は、az new-relic monitor monitored-subscription コマンドを初めて実行するときに自動的にインストールされます。 拡張機能の詳細をご覧ください。

サブスクリプションの一覧と監視の状態を管理します。

コマンド

名前 説明 Status
az new-relic monitor monitored-subscription create

NewRelic モニター リソースで監視する必要があるサブスクリプションを作成します。

拡張子 GA
az new-relic monitor monitored-subscription delete

NewRelic モニター リソースによって監視されているサブスクリプションを削除します。

拡張子 GA
az new-relic monitor monitored-subscription show

NewRelic モニター リソースによって現在監視されているサブスクリプションを取得します。

拡張子 GA
az new-relic monitor monitored-subscription update

NewRelic モニター リソースで監視する必要があるサブスクリプションを更新します。

拡張子 GA
az new-relic monitor monitored-subscription wait

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

拡張子 GA

az new-relic monitor monitored-subscription create

NewRelic モニター リソースで監視する必要があるサブスクリプションを作成します。

az new-relic monitor monitored-subscription create --configuration-name {default}
                                                   --g
                                                   --monitor-name
                                                   [--monitored-subscription-list]
                                                   [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                   [--patch-operation {Active, AddBegin, AddComplete, DeleteBegin, DeleteComplete}]

NewRelic モニター リソースで監視する必要があるサブスクリプションを作成します。

Please run below commands in the mentioned order
1) az new-relic monitor monitored-subscription create --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --configuration-name default --patch-operation AddBegin --subscriptions "[{status:'InProgress',subscription-id:'subscription-id'}]"
2) az new-relic monitor monitored-subscription create --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --configuration-name default --patch-operation AddComplete --subscriptions "[{status:'Active',subscription-id:'subscription-id'}]"

必須のパラメーター

--configuration-name

構成の名前。 'default' 値のみがサポートされています。

承認された値: default
--g --resource-group

リソース グループの名前。 az configure --defaults group= を使用して、既定のグループを構成できます。

--monitor-name

監視リソースの名前。

省略可能のパラメーター

--monitored-subscription-list --subscriptions -n

サブスクリプションの一覧と監視の状態。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。

--no-wait

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

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

リソースに対するパッチの操作。

承認された値: Active, AddBegin, AddComplete, DeleteBegin, DeleteComplete
グローバル パラメーター
--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 new-relic monitor monitored-subscription delete

NewRelic モニター リソースによって監視されているサブスクリプションを削除します。

az new-relic monitor monitored-subscription delete [--configuration-name {default}]
                                                   [--g]
                                                   [--ids]
                                                   [--monitor-name]
                                                   [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                   [--subscription]

NewRelic モニター リソースによって監視されているサブスクリプションを削除する

az new-relic monitor monitored-subscription delete --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --configuration-name default

省略可能のパラメーター

--configuration-name

構成の名前。 'default' 値のみがサポートされています。

承認された値: default
既定値: default
--g --resource-group

リソース グループの名前。 az configure --defaults group= を使用して、既定のグループを構成できます。

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

--monitor-name

監視リソースの名前。

--no-wait

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

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

サブスクリプションの名前または ID。 az account set -s NAME_OR_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 new-relic monitor monitored-subscription show

NewRelic モニター リソースによって現在監視されているサブスクリプションを取得します。

az new-relic monitor monitored-subscription show [--configuration-name {default}]
                                                 [--g]
                                                 [--ids]
                                                 [--monitor-name]
                                                 [--subscription]

NewRelic モニター リソースによって現在監視されているサブスクリプションを一覧表示します。

az new-relic monitor monitored-subscription show --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --configuration-name default

省略可能のパラメーター

--configuration-name

構成の名前。 'default' 値のみがサポートされています。

承認された値: default
既定値: default
--g --resource-group

リソース グループの名前。 az configure --defaults group= を使用して、既定のグループを構成できます。

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

--monitor-name

監視リソースの名前。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_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 new-relic monitor monitored-subscription update

NewRelic モニター リソースで監視する必要があるサブスクリプションを更新します。

az new-relic monitor monitored-subscription update [--add]
                                                   [--configuration-name {default}]
                                                   [--force-string {0, 1, f, false, n, no, t, true, y, yes}]
                                                   [--g]
                                                   [--ids]
                                                   [--monitor-name]
                                                   [--monitored-subscription-list]
                                                   [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                   [--patch-operation {Active, AddBegin, AddComplete, DeleteBegin, DeleteComplete}]
                                                   [--remove]
                                                   [--set]
                                                   [--subscription]

NewRelic モニター リソースで監視する必要があるサブスクリプションを更新します。

Please run below commands in the mentioned order
1) az new-relic monitor monitored-subscription update --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --configuration-name default --patch-operation AddBegin --subscriptions "[{status:'InProgress',subscription-id:'subscription-id'}]"
2) az new-relic monitor monitored-subscription update --resource-group MyResourceGroup --monitor-name MyNewRelicMonitor --configuration-name default --patch-operation AddComplete --subscriptions "[{status:'Active',subscription-id:'subscription-id'}]"

省略可能のパラメーター

--add

パスとキー値のペアを指定して、オブジェクトの一覧にオブジェクトを追加します。 例: --add property.listProperty <key=value、string、または JSON 文字列>。

--configuration-name

構成の名前。 'default' 値のみがサポートされています。

承認された値: default
--force-string

'set' または 'add' を使用する場合は、JSON に変換するのではなく、文字列リテラルを保持します。

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

リソース グループの名前。 az configure --defaults group= を使用して、既定のグループを構成できます。

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

--monitor-name

監視リソースの名前。

--monitored-subscription-list --subscriptions -n

サブスクリプションの一覧と監視の状態。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。

--no-wait

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

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

リソースに対するパッチの操作。

承認された値: Active, AddBegin, AddComplete, DeleteBegin, DeleteComplete
--remove

リストからプロパティまたは要素を削除します。 例: --remove property.list OR --remove propertyToRemove。

--set

設定するプロパティ パスと値を指定して、オブジェクトを更新します。 例: --set property1.property2=。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_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 new-relic monitor monitored-subscription wait

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

az new-relic monitor monitored-subscription wait [--configuration-name {default}]
                                                 [--created]
                                                 [--custom]
                                                 [--deleted]
                                                 [--exists]
                                                 [--g]
                                                 [--ids]
                                                 [--interval]
                                                 [--monitor-name]
                                                 [--subscription]
                                                 [--timeout]
                                                 [--updated]

省略可能のパラメーター

--configuration-name

構成の名前。 'default' 値のみがサポートされています。

承認された値: default
既定値: default
--created

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

既定値: False
--custom

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

--deleted

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

既定値: False
--exists

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

既定値: False
--g --resource-group

リソース グループの名前。 az configure --defaults group= を使用して、既定のグループを構成できます。

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

--interval

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

既定値: 30
--monitor-name

監視リソースの名前。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--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 を使います。