次の方法で共有


Network Watchers - Get Troubleshooting

指定したリソースでトラブルシューティングを開始します。

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot?api-version=2025-03-01

URI パラメーター

名前 / 必須 説明
networkWatcherName
path True

string

ネットワーク ウォッチャー リソースの名前。

resourceGroupName
path True

string

リソース グループの名前。

subscriptionId
path True

string

Microsoft Azure サブスクリプションを一意に識別するサブスクリプション資格情報。 サブスクリプション ID は、すべてのサービス呼び出しの URI の一部を形成します。

api-version
query True

string

クライアント API のバージョン。

要求本文

名前 必須 説明
properties.storageId True

string

トラブルシューティング結果を保存するストレージ アカウントの ID。

properties.storagePath True

string

トラブルシューティングの結果を保存する BLOB へのパス。

targetResourceId True

string

トラブルシューティングするターゲット・リソース。

応答

名前 説明
200 OK

TroubleshootingResult

トラブルシューティング要求が成功しました。

202 Accepted

TroubleshootingResult

トラブルシューティング要求の取得を受け入れました。

Other Status Codes

ErrorResponse

操作が失敗した理由を説明するエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー。

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
user_impersonation ユーザー アカウントを偽装する

Get troubleshooting

要求のサンプル

POST https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/troubleshoot?api-version=2025-03-01

{
  "targetResourceId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1",
  "properties": {
    "storageId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1",
    "storagePath": "https://st1.blob.core.windows.net/cn1"
  }
}

応答のサンプル

{
  "startTime": "2017-01-12T00:19:47.0442834Z",
  "endTime": "2017-01-12T00:20:09.914Z",
  "code": "UnHealthy",
  "results": [
    {
      "id": "000000",
      "reasonType": "VipUnResponsive",
      "summary": "We are sorry, your VPN gateway is unreachable from the Internet",
      "detail": "During this time S2S VPN tunnels to on premises sites or other Azure virtual networks will be disconnected",
      "recommendedActions": [
        {
          "actionText": "Verify if there is a network security group (NSG) applied to the GatewaySubnet",
          "actionUri": "https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-create-nsg-arm-pportal",
          "actionUriText": "Verify"
        },
        {
          "actionText": "If your VPN gateway isn't up and running by the expected resolution time, contact support",
          "actionUri": "http://azure.microsoft.com/support",
          "actionUriText": "contact support"
        }
      ]
    }
  ]
}
Location: https:/management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkWatchers/nw1/troubleshoot?api-version=2025-03-01
{
  "startTime": "2017-01-12T00:19:47.0442834Z",
  "endTime": "2017-01-12T00:20:09.914Z",
  "code": "UnHealthy",
  "results": [
    {
      "id": "000000",
      "reasonType": "VipUnResponsive",
      "summary": "We are sorry, your VPN gateway is unreachable from the Internet",
      "detail": "During this time S2S VPN tunnels to on premises sites or other Azure virtual networks will be disconnected",
      "recommendedActions": [
        {
          "actionText": "Verify if there is a network security group (NSG) applied to the GatewaySubnet",
          "actionUri": "https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-create-nsg-arm-pportal",
          "actionUriText": "Verify"
        },
        {
          "actionText": "If your VPN gateway isn't up and running by the expected resolution time, contact support",
          "actionUri": "http://azure.microsoft.com/support",
          "actionUriText": "contact support"
        }
      ]
    }
  ]
}

定義

名前 説明
ErrorDetails

一般的なエラーの詳細表現。

ErrorResponse

エラー オブジェクト。

TroubleshootingDetails

指定されたリソースのトラブルシューティングから得られた情報。

TroubleshootingParameters

トラブルシューティングするリソースを定義するパラメーター。

TroubleshootingRecommendedActions

検出された問題に基づいて推奨されるアクション。

TroubleshootingResult

指定されたリソースから取得されたトラブルシューティング情報。

ErrorDetails

一般的なエラーの詳細表現。

名前 説明
code

string

エラー コード。

message

string

エラー メッセージ。

target

string

エラーターゲット。

ErrorResponse

エラー オブジェクト。

名前 説明
error

ErrorDetails

エラー
エラーの詳細オブジェクト。

TroubleshootingDetails

指定されたリソースのトラブルシューティングから得られた情報。

名前 説明
detail

string

トラブルシューティング結果の詳細。

id

string

get トラブルシューティング操作の ID。

reasonType

string

失敗の理由タイプ。

recommendedActions

TroubleshootingRecommendedActions[]

推奨されるアクションのリスト。

summary

string

トラブルシューティングの概要。

TroubleshootingParameters

トラブルシューティングするリソースを定義するパラメーター。

名前 説明
properties.storageId

string

トラブルシューティング結果を保存するストレージ アカウントの ID。

properties.storagePath

string

トラブルシューティングの結果を保存する BLOB へのパス。

targetResourceId

string

トラブルシューティングするターゲット・リソース。

TroubleshootingRecommendedActions

検出された問題に基づいて推奨されるアクション。

名前 説明
actionId

string

推奨アクションの ID。

actionText

string

推奨されるアクションの説明。

actionUri

string

推奨されるトラブルシューティング アクションのドキュメントにリンクする URI。

actionUriText

string

推奨されるトラブルシューティング アクションの URI からの情報。

TroubleshootingResult

指定されたリソースから取得されたトラブルシューティング情報。

名前 説明
code

string

トラブルシューティングの結果コード。

endTime

string (date-time)

トラブルシューティングの終了時刻。

results

TroubleshootingDetails[]

トラブルシューティングからの情報。

startTime

string (date-time)

トラブルシューティングの開始時刻。