az network watcher connection-monitor
Azure 仮想マシンと任意の IP リソースの間の接続監視を管理します。
接続モニターを使用して、Azure 仮想マシンと IP アドレスの間のネットワーク接続を監視できます。 IP アドレスは、インターネットまたはオンプレミスの別の Azure リソースまたはリソースに割り当てることができます。 詳細については、 https://aka.ms/connectionmonitordocを参照してください。
コマンド
az network watcher connection-monitor create
接続モニターを作成する。
az network watcher connection-monitor create --connection-monitor-name --name
--endpoint-dest-name
--endpoint-source-name
--endpoint-source-resource-id
--test-config-name
[--endpoint-dest-address]
[--endpoint-dest-coverage-level {AboveAverage, Average, BelowAverage, Default, Full, Low}]
[--endpoint-dest-resource-id]
[--endpoint-dest-type {AzureArcVM, AzureSubnet, AzureVM, AzureVMSS, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork}]
[--endpoint-source-address]
[--endpoint-source-coverage-level {AboveAverage, Average, BelowAverage, Default, Full, Low}]
[--endpoint-source-type {AzureArcVM, AzureSubnet, AzureVM, AzureVMSS, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork}]
[--frequency]
[--http-method {Get, Post}]
[--http-path]
[--http-port]
[--http-valid-status-codes]
[--https-prefer {0, 1, f, false, n, no, t, true, y, yes}]
[--icmp-disable-trace-route {0, 1, f, false, n, no, t, true, y, yes}]
[--location]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--notes]
[--output-type --type {Workspace}]
[--preferred-ip-version {IPv4, IPv6}]
[--protocol {Http, Icmp, Tcp}]
[--resource-group]
[--tags]
[--tcp-disable-trace-route {0, 1, f, false, n, no, t, true, y, yes}]
[--tcp-port]
[--tcp-port-behavior {ListenIfAvailable, None}]
[--test-group-disable {0, 1, f, false, n, no, t, true, y, yes}]
[--test-group-name]
[--threshold-failed-percent]
[--threshold-round-trip-time]
[--workspace-ids]
例
接続モニターを作成する
az network watcher connection-monitor create --name MyV2ConnectionMonitor --endpoint-source- name "vm01" --endpoint-source-resource-id MyVM01ResourceID --endpoint-dest-name bing --endpoint-dest-address bing.com --test-config-name TCPTestConfig --protocol Tcp --tcp-port 2048
az network watcher connection-monitor create --endpoint-dest-address bing.com --endpoint- dest-name bing --endpoint-source-name "vm01" --endpoint-source-resource-id MyVM01ResourceID --location westus2 --name MyConnectionMonitorName --protocol Tcp --tcp-port 2048 --test- config-name TCPTestConfig
必須のパラメーター
接続モニター名。
接続モニター エンドポイントの宛先の名前。 V2 接続モニターを作成する場合は、それが必要です。
プロパティ | 値 |
---|---|
Parameter group: | V2 Endpoint Arguments |
接続モニター エンドポイントのソースの名前。 V2 接続モニターを作成する場合は、それが必要です。
プロパティ | 値 |
---|---|
Parameter group: | V2 Endpoint Arguments |
接続モニター エンドポイントのソースのリソース ID。 エンドポイントをソースとして使用する場合は、このオプションが必要です。
プロパティ | 値 |
---|---|
Parameter group: | V2 Endpoint Arguments |
接続モニターのテスト構成の名前。 V2 接続モニターを作成する場合は、それが必要です。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Configuration Arguments |
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
接続モニター エンドポイントの宛先のアドレス (IP またはドメイン名)。
プロパティ | 値 |
---|---|
Parameter group: | V2 Endpoint Arguments |
エンドポイントの対象範囲をテストします。
プロパティ | 値 |
---|---|
Parameter group: | V2 Endpoint Arguments |
指定可能な値: | AboveAverage, Average, BelowAverage, Default, Full, Low |
接続モニター エンドポイントの宛先のリソース ID。
プロパティ | 値 |
---|---|
Parameter group: | V2 Endpoint Arguments |
エンドポイントの種類。
プロパティ | 値 |
---|---|
Parameter group: | V2 Endpoint Arguments |
指定可能な値: | AzureArcVM, AzureSubnet, AzureVM, AzureVMSS, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork |
接続モニター エンドポイントのソースのアドレス (IP またはドメイン名)。
プロパティ | 値 |
---|---|
Parameter group: | V2 Endpoint Arguments |
エンドポイントの対象範囲をテストします。
プロパティ | 値 |
---|---|
Parameter group: | V2 Endpoint Arguments |
指定可能な値: | AboveAverage, Average, BelowAverage, Default, Full, Low |
エンドポイントの種類。
プロパティ | 値 |
---|---|
Parameter group: | V2 Endpoint Arguments |
指定可能な値: | AzureArcVM, AzureSubnet, AzureVM, AzureVMSS, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork |
テスト評価の頻度 (秒単位)。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Configuration Arguments |
規定値: | 60 |
HTTP メソッドを使用します。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Configuration Arguments |
指定可能な値: | Get, Post |
URI のパス コンポーネント。 たとえば、"/dir1/dir2" などです。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Configuration Arguments |
接続先のポート。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Configuration Arguments |
成功を考慮する HTTP 状態コードのスペース区切りの一覧。 たとえば、'2xx 301-304 418' では、短縮構文、json ファイル、yaml-file がサポートされます。 詳細を表示するには、"??" を試してください。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Configuration Arguments |
選択が明示的でない場合に HTTPS が HTTP よりも優先されるかどうかを示す値。 使用できる値: false、true。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Configuration Arguments |
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
トレース ルートを使用したパス評価を無効にするかどうかを示す値。 false は既定値です。 使用できる値: false、true。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Configuration Arguments |
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
Location. 値のソース: az account list-locations
az configure --defaults location=<location>
を使用して、既定の場所を構成できます。
実行時間の長い操作が完了するまで待つ必要はありません。
プロパティ | 値 |
---|---|
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
接続モニターに関連付ける省略可能なメモ。
プロパティ | 値 |
---|---|
Parameter group: | V2 Arguments |
接続モニターの出力先の種類。 現時点では、"ワークスペース" のみがサポートされています。
プロパティ | 値 |
---|---|
Parameter group: | V2 Output Arguments |
指定可能な値: | Workspace |
テスト評価で使用する推奨 IP バージョン。 接続モニターは、他のパラメーターに応じて異なるバージョンを使用することを選択できます。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Configuration Arguments |
指定可能な値: | IPv4, IPv6 |
テスト評価で使用するプロトコル。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Configuration Arguments |
指定可能な値: | Http, Icmp, Tcp |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
スペース区切りのタグ: key[=value] [key[=value] ...]既存のタグをクリアするには、'' を使用します。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。
トレース ルートを使用したパス評価を無効にするかどうかを示す値。 false は既定値です。 使用できる値: false、true。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Configuration Arguments |
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
接続先のポート。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Configuration Arguments |
宛先ポートの動作。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Configuration Arguments |
指定可能な値: | ListenIfAvailable, None |
テスト グループが無効かどうかを示す値。 false は既定値です。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Group Arguments |
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
接続モニターのテスト グループの名前。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Group Arguments |
規定値: | DefaultTestGroup |
テストが成功と評価するために許可された失敗したチェックの最大割合。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Configuration Arguments |
テストが成功として評価できる最大ラウンドトリップ時間 (ミリ秒単位)。
プロパティ | 値 |
---|---|
Parameter group: | V2 Test Configuration Arguments |
Log Analytics ワークスペースの ID のスペース区切りの一覧。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。
プロパティ | 値 |
---|---|
Parameter group: | V2 Output Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az network watcher connection-monitor delete
特定のリージョンの接続モニターを削除します。
az network watcher connection-monitor delete --connection-monitor-name --name
--location
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
例
特定のリージョンの接続モニターを削除します。
az network watcher connection-monitor delete -l westus -n MyConnectionMonitorName
必須のパラメーター
接続モニター名。
Location. 値のソース: az account list-locations
az configure --defaults location=<location>
を使用して、既定の場所を構成できます。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
実行時間の長い操作が完了するまで待つ必要はありません。
プロパティ | 値 |
---|---|
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az network watcher connection-monitor list
特定のリージョンの接続モニターを一覧表示します。
az network watcher connection-monitor list --location
例
特定のリージョンの接続モニターを一覧表示します。
az network watcher connection-monitor list -l westus
az az network watcher connection-monitor list --location westus --subscription MySubscription
必須のパラメーター
Location. 値のソース: az account list-locations
az configure --defaults location=<location>
を使用して、既定の場所を構成できます。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az network watcher connection-monitor query
接続モニターの最新の接続状態のスナップショットを照会します。
az network watcher connection-monitor query --connection-monitor-name --name
--location
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
例
特定のリージョンの接続モニターを一覧表示します。
az network watcher connection-monitor query -l westus -n MyConnectionMonitorName
必須のパラメーター
接続モニター名。
Location. 値のソース: az account list-locations
az configure --defaults location=<location>
を使用して、既定の場所を構成できます。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
実行時間の長い操作が完了するまで待つ必要はありません。
プロパティ | 値 |
---|---|
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az network watcher connection-monitor show
名前で接続モニターを表示します。
az network watcher connection-monitor show --connection-monitor-name --name
--location
例
指定された名前の接続モニターを表示します。
az network watcher connection-monitor show -l westus -n MyConnectionMonitorName
必須のパラメーター
接続モニター名。
Location. 値のソース: az account list-locations
az configure --defaults location=<location>
を使用して、既定の場所を構成できます。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az network watcher connection-monitor start
指定した接続モニターを起動します。
az network watcher connection-monitor start --connection-monitor-name --name
--location
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
例
指定した接続モニターを起動します。
az network watcher connection-monitor start -l westus -n MyConnectionMonitorName
必須のパラメーター
接続モニター名。
Location. 値のソース: az account list-locations
az configure --defaults location=<location>
を使用して、既定の場所を構成できます。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
実行時間の長い操作が完了するまで待つ必要はありません。
プロパティ | 値 |
---|---|
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az network watcher connection-monitor stop
指定した接続モニターを停止します。
az network watcher connection-monitor stop --connection-monitor-name --name
--location
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
例
指定した接続モニターを停止します。
az network watcher connection-monitor stop -l westus -n MyConnectionMonitorName
必須のパラメーター
接続モニター名。
Location. 値のソース: az account list-locations
az configure --defaults location=<location>
を使用して、既定の場所を構成できます。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
実行時間の長い操作が完了するまで待つ必要はありません。
プロパティ | 値 |
---|---|
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az network watcher connection-monitor wait
条件が満たされるまで CLI を待機状態にします。
az network watcher connection-monitor wait [--connection-monitor-name --name]
[--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--network-watcher-name]
[--resource-group-name]
[--subscription]
[--timeout]
[--updated]
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
接続モニター名。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
'provisioningState' が 'Succeeded' で作成されるまで待ちます。
プロパティ | 値 |
---|---|
Parameter group: | Wait Condition Arguments |
規定値: | False |
条件がカスタム JMESPath クエリを満たすまで待ちます。 例: provisioningState!='InProgress'、instanceView.statuses[?code=='PowerState/running']。
プロパティ | 値 |
---|---|
Parameter group: | Wait Condition Arguments |
削除されるまで待ちます。
プロパティ | 値 |
---|---|
Parameter group: | Wait Condition Arguments |
規定値: | False |
リソースが存在するまで待ちます。
プロパティ | 値 |
---|---|
Parameter group: | Wait Condition Arguments |
規定値: | False |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
ポーリング間隔 (秒単位)。
プロパティ | 値 |
---|---|
Parameter group: | Wait Condition Arguments |
規定値: | 30 |
Network Watcher リソースの名前。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
最大待機時間 (秒単位)。
プロパティ | 値 |
---|---|
Parameter group: | Wait Condition Arguments |
規定値: | 3600 |
provisioningState が 'Succeeded' で更新されるまで待ちます。
プロパティ | 値 |
---|---|
Parameter group: | Wait Condition Arguments |
規定値: | False |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |