az network watcher connection-monitor

Azure 仮想マシンと任意の IP リソースの間の接続監視を管理します。

接続モニターを使用して、Azure 仮想マシンと IP アドレスの間のネットワーク接続を監視できます。 IP アドレスは、インターネットまたはオンプレミスの別の Azure リソースまたはリソースに割り当てることができます。 詳しくはこちらをご覧ください https://aka.ms/connectionmonitordoc

コマンド

名前 説明 Status
az network watcher connection-monitor create

接続モニターを作成する。

コア GA
az network watcher connection-monitor delete

特定のリージョンの接続モニターを削除します。

コア GA
az network watcher connection-monitor endpoint

接続モニターのエンドポイントを管理します。

コア プレビュー
az network watcher connection-monitor endpoint add

接続モニターにエンドポイントを追加します。

コア プレビュー
az network watcher connection-monitor endpoint list

接続モニターからのすべてのエンドポイントを一覧表示します。

コア プレビュー
az network watcher connection-monitor endpoint remove

接続モニターからエンドポイントを削除します。

コア プレビュー
az network watcher connection-monitor endpoint show

接続モニターからのエンドポイントを表示します。

コア プレビュー
az network watcher connection-monitor endpoint wait

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

コア プレビュー
az network watcher connection-monitor list

特定のリージョンの接続モニターを一覧表示します。

コア GA
az network watcher connection-monitor output

接続モニターの出力を管理します。

コア プレビュー
az network watcher connection-monitor output add

接続モニターに出力を追加します。

コア プレビュー
az network watcher connection-monitor output list

接続モニターからのすべての出力を一覧表示します。

コア プレビュー
az network watcher connection-monitor output remove

接続モニターからすべての出力を削除します。

コア プレビュー
az network watcher connection-monitor output wait

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

コア プレビュー
az network watcher connection-monitor query

接続モニターの最新の接続状態のスナップショットを照会します。

コア GA
az network watcher connection-monitor show

名前で接続モニターを表示します。

コア GA
az network watcher connection-monitor start

指定した接続モニターを起動します。

コア GA
az network watcher connection-monitor stop

指定した接続モニターを停止します。

コア GA
az network watcher connection-monitor test-configuration

接続モニターのテスト構成を管理します。

コア プレビュー
az network watcher connection-monitor test-configuration add

接続モニターにテスト構成を追加します。

コア プレビュー
az network watcher connection-monitor test-configuration list

接続モニターのすべてのテスト構成を一覧表示します。

コア プレビュー
az network watcher connection-monitor test-configuration remove

接続モニターからテスト構成を削除します。

コア プレビュー
az network watcher connection-monitor test-configuration show

接続モニターからのテスト構成を表示します。

コア プレビュー
az network watcher connection-monitor test-configuration wait

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

コア プレビュー
az network watcher connection-monitor test-group

接続モニターのテスト グループを管理します。

コア プレビュー
az network watcher connection-monitor test-group add

テスト グループを新規または既存のエンドポイントと共に追加し、接続モニターにテスト構成を追加します。

コア プレビュー
az network watcher connection-monitor test-group list

接続モニターのすべてのテスト グループを一覧表示します。

コア プレビュー
az network watcher connection-monitor test-group remove

接続モニターからテスト グループを削除します。

コア プレビュー
az network watcher connection-monitor test-group show

接続モニターのテスト グループを表示します。

コア プレビュー
az network watcher connection-monitor test-group wait

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

コア プレビュー
az network watcher connection-monitor wait

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

コア GA

az network watcher connection-monitor create

接続モニターを作成する。

az network watcher connection-monitor create --connection-monitor-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 {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

必須のパラメーター

--connection-monitor-name --name -n

接続モニター名。

--endpoint-dest-name

接続モニター エンドポイントの宛先の名前。 V2 接続モニターを作成する場合は必須です。

--endpoint-source-name

接続モニター エンドポイントのソースの名前。 V2 接続モニターを作成する場合は必須です。

--endpoint-source-resource-id

接続モニター エンドポイントのソースのリソース ID。 エンドポイントをソースとして使用する場合は、このオプションが必要です。

--test-config-name

接続モニターのテスト構成の名前。 V2 接続モニターを作成する場合は必須です。

省略可能のパラメーター

--endpoint-dest-address

接続モニター エンドポイントの宛先のアドレス (IP または doメイン 名)。

--endpoint-dest-coverage-level

エンドポイントの対象範囲をテストします。

承認された値: AboveAverage, Average, BelowAverage, Default, Full, Low
--endpoint-dest-resource-id

接続モニター エンドポイントの宛先のリソース ID。

--endpoint-dest-type

エンドポイントの種類。

承認された値: AzureArcVM, AzureSubnet, AzureVM, AzureVMSS, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork
--endpoint-source-address

接続モニター エンドポイントのソースのアドレス (IP または doメイン 名)。

--endpoint-source-coverage-level

エンドポイントの対象範囲をテストします。

承認された値: AboveAverage, Average, BelowAverage, Default, Full, Low
--endpoint-source-type

エンドポイントの種類。

承認された値: AzureArcVM, AzureSubnet, AzureVM, AzureVMSS, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork
--frequency

テスト評価の頻度 (秒単位)。

既定値: 60
--http-method

HTTP メソッドを使用します。

承認された値: Get, Post
--http-path

URI のパス コンポーネント。 たとえば、"/dir1/dir2" などです。

--http-port

接続先のポート。

--http-valid-status-codes

成功を考慮する HTTP 状態コードのスペース区切りの一覧。 たとえば、'2xx 301-304 418' では、短縮構文、json ファイル、yaml-file がサポートされます。 詳細を表示するには、"??" を試してください。

--https-prefer

選択が明示的でない場合に HTTPS が HTTP よりも優先されるかどうかを示す値。 使用できる値: false、true。

承認された値: 0, 1, f, false, n, no, t, true, y, yes
--icmp-disable-trace-route

トレース ルートを使用したパス評価を無効にするかどうかを示す値。 false は既定値です。 使用できる値: false、true。

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

場所。 値のソース: az account list-locations az configure --defaults location=<location> を使用して、既定の場所を構成できます。

--no-wait

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

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

接続モニターに関連付ける省略可能なメモ。

--output-type --type

接続モニターの出力先の種類。 現時点では、"ワークスペース" のみがサポートされています。

承認された値: Workspace
--preferred-ip-version

テスト評価で使用する推奨 IP バージョン。 接続モニターは、他のパラメーターに応じて異なるバージョンを使用することを選択できます。

承認された値: IPv4, IPv6
--protocol

テスト評価で使用するプロトコル。

承認された値: Http, Icmp, Tcp
--resource-group -g

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

--tags

スペース区切りのタグ: key[=value] [key[=value] ...]既存のタグをクリアするには、'' を使用します。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。

--tcp-disable-trace-route

トレース ルートを使用したパス評価を無効にするかどうかを示す値。 false は既定値です。 使用できる値: false、true。

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

接続先のポート。

--tcp-port-behavior

宛先ポートの動作。

承認された値: ListenIfAvailable, None
--test-group-disable

テスト グループが無効かどうかを示す値。 false は既定値です。

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

接続モニターのテスト グループの名前。

既定値: DefaultTestGroup
--threshold-failed-percent

テストが成功と評価するために許可された失敗したチェックの最大割合。

--threshold-round-trip-time

テストが成功として評価できる最大ラウンドトリップ時間 (ミリ秒単位)。

--workspace-ids

Log Analytics ワークスペースの ID のスペース区切りの一覧。 短縮構文、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 network watcher connection-monitor delete

特定のリージョンの接続モニターを削除します。

az network watcher connection-monitor delete --connection-monitor-name
                                             --location
                                             [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]

特定のリージョンの接続モニターを削除します。

az network watcher connection-monitor delete -l westus -n MyConnectionMonitorName

必須のパラメーター

--connection-monitor-name --name -n

接続モニター名。

--location -l

場所。 値のソース: az account list-locations az configure --defaults location=<location> を使用して、既定の場所を構成できます。

省略可能のパラメーター

--no-wait

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

承認された値: 0, 1, f, false, n, no, t, true, y, yes
グローバル パラメーター
--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 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 -l

場所。 値のソース: az account list-locations az configure --defaults location=<location> を使用して、既定の場所を構成できます。

グローバル パラメーター
--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 network watcher connection-monitor query

接続モニターの最新の接続状態のスナップショットを照会します。

az network watcher connection-monitor query --connection-monitor-name
                                            --location
                                            [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]

特定のリージョンの接続モニターを一覧表示します。

az network watcher connection-monitor query -l westus -n MyConnectionMonitorName

必須のパラメーター

--connection-monitor-name --name -n

接続モニター名。

--location -l

場所。 値のソース: az account list-locations az configure --defaults location=<location> を使用して、既定の場所を構成できます。

省略可能のパラメーター

--no-wait

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

承認された値: 0, 1, f, false, n, no, t, true, y, yes
グローバル パラメーター
--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 network watcher connection-monitor show

名前で接続モニターを表示します。

az network watcher connection-monitor show --connection-monitor-name
                                           --location

指定された名前の接続モニターを表示します。

az network watcher connection-monitor show -l westus -n MyConnectionMonitorName

必須のパラメーター

--connection-monitor-name --name -n

接続モニター名。

--location -l

場所。 値のソース: az account list-locations az configure --defaults location=<location> を使用して、既定の場所を構成できます。

グローバル パラメーター
--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 network watcher connection-monitor start

指定した接続モニターを起動します。

az network watcher connection-monitor start --connection-monitor-name
                                            --location
                                            [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]

指定した接続モニターを起動します。

az network watcher connection-monitor start -l westus -n MyConnectionMonitorName

必須のパラメーター

--connection-monitor-name --name -n

接続モニター名。

--location -l

場所。 値のソース: az account list-locations az configure --defaults location=<location> を使用して、既定の場所を構成できます。

省略可能のパラメーター

--no-wait

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

承認された値: 0, 1, f, false, n, no, t, true, y, yes
グローバル パラメーター
--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 network watcher connection-monitor stop

指定した接続モニターを停止します。

az network watcher connection-monitor stop --connection-monitor-name
                                           --location
                                           [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]

指定した接続モニターを停止します。

az network watcher connection-monitor stop -l westus -n MyConnectionMonitorName

必須のパラメーター

--connection-monitor-name --name -n

接続モニター名。

--location -l

場所。 値のソース: az account list-locations az configure --defaults location=<location> を使用して、既定の場所を構成できます。

省略可能のパラメーター

--no-wait

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

承認された値: 0, 1, f, false, n, no, t, true, y, yes
グローバル パラメーター
--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 network watcher connection-monitor wait

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

az network watcher connection-monitor wait [--connection-monitor-name]
                                           [--created]
                                           [--custom]
                                           [--deleted]
                                           [--exists]
                                           [--ids]
                                           [--interval]
                                           [--network-watcher-name]
                                           [--resource-group-name]
                                           [--subscription]
                                           [--timeout]
                                           [--updated]

省略可能のパラメーター

--connection-monitor-name --name -n

接続モニター名。

--created

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

既定値: False
--custom

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

--deleted

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

既定値: False
--exists

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

既定値: False
--ids

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

--interval

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

既定値: 30
--network-watcher-name

Network Watcher リソースの名前。

--resource-group-name -g

リソース グループの名前。 az configure --defaults group=<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 を使います。