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'}]"
必須のパラメーター
構成の名前。 'default' 値のみがサポートされています。
リソース グループの名前。 az configure --defaults group= を使用して、既定のグループを構成できます。
監視リソースの名前。
省略可能のパラメーター
サブスクリプションの一覧と監視の状態。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。
実行時間の長い操作の終了を待機しません。
リソースに対するパッチの操作。
グローバル パラメーター
すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告は抑制します。
出力形式。
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。
サブスクリプションの名前または ID。 az account set -s NAME_OR_ID
を使用して、既定のサブスクリプションを構成できます。
ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --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
省略可能のパラメーター
構成の名前。 'default' 値のみがサポートされています。
リソース グループの名前。 az configure --defaults group= を使用して、既定のグループを構成できます。
1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
監視リソースの名前。
実行時間の長い操作の終了を待機しません。
サブスクリプションの名前または ID。 az account set -s NAME_OR_ID
を使用して、既定のサブスクリプションを構成できます。
グローバル パラメーター
すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告は抑制します。
出力形式。
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。
サブスクリプションの名前または ID。 az account set -s NAME_OR_ID
を使用して、既定のサブスクリプションを構成できます。
ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --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
省略可能のパラメーター
構成の名前。 'default' 値のみがサポートされています。
リソース グループの名前。 az configure --defaults group= を使用して、既定のグループを構成できます。
1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
監視リソースの名前。
サブスクリプションの名前または ID。 az account set -s NAME_OR_ID
を使用して、既定のサブスクリプションを構成できます。
グローバル パラメーター
すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告は抑制します。
出力形式。
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。
サブスクリプションの名前または ID。 az account set -s NAME_OR_ID
を使用して、既定のサブスクリプションを構成できます。
ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --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 property.listProperty <key=value、string、または JSON 文字列>。
構成の名前。 'default' 値のみがサポートされています。
'set' または 'add' を使用する場合は、JSON に変換するのではなく、文字列リテラルを保持します。
リソース グループの名前。 az configure --defaults group= を使用して、既定のグループを構成できます。
1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
監視リソースの名前。
サブスクリプションの一覧と監視の状態。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。
実行時間の長い操作の終了を待機しません。
リソースに対するパッチの操作。
リストからプロパティまたは要素を削除します。 例: --remove property.list OR --remove propertyToRemove。
設定するプロパティ パスと値を指定して、オブジェクトを更新します。 例: --set property1.property2=。
サブスクリプションの名前または ID。 az account set -s NAME_OR_ID
を使用して、既定のサブスクリプションを構成できます。
グローバル パラメーター
すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告は抑制します。
出力形式。
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。
サブスクリプションの名前または ID。 az account set -s NAME_OR_ID
を使用して、既定のサブスクリプションを構成できます。
ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --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]
省略可能のパラメーター
構成の名前。 'default' 値のみがサポートされています。
'provisioningState' が 'Succeeded' で作成されるまで待ちます。
条件がカスタム JMESPath クエリを満たすまで待ちます。 例: provisioningState!='InProgress'、instanceView.statuses[?code=='PowerState/running']。
削除されるまで待ちます。
リソースが存在するまで待ちます。
リソース グループの名前。 az configure --defaults group= を使用して、既定のグループを構成できます。
1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
ポーリング間隔 (秒単位)。
監視リソースの名前。
サブスクリプションの名前または ID。 az account set -s NAME_OR_ID
を使用して、既定のサブスクリプションを構成できます。
最大待機時間 (秒単位)。
provisioningState が 'Succeeded' で更新されるまで待ちます。
グローバル パラメーター
すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告は抑制します。
出力形式。
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。
サブスクリプションの名前または ID。 az account set -s NAME_OR_ID
を使用して、既定のサブスクリプションを構成できます。
ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。
Azure CLI