Invoke-AzNetworkWatcherNetworkConfigurationDiagnostic

Rufen Sie die Diagnosesitzung der Netzwerkkonfiguration für angegebene Netzwerkprofile für die Zielressource auf.

Syntax

Invoke-AzNetworkWatcherNetworkConfigurationDiagnostic
      -NetworkWatcher <PSNetworkWatcher>
      -TargetResourceId <String>
      [-VerbosityLevel <String>]
      -Profile <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSNetworkConfigurationDiagnosticProfile]>
      [-AsJob]
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]
Invoke-AzNetworkWatcherNetworkConfigurationDiagnostic
      -NetworkWatcherName <String>
      -ResourceGroupName <String>
      -TargetResourceId <String>
      [-VerbosityLevel <String>]
      -Profile <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSNetworkConfigurationDiagnosticProfile]>
      [-AsJob]
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]
Invoke-AzNetworkWatcherNetworkConfigurationDiagnostic
      -Location <String>
      -TargetResourceId <String>
      [-VerbosityLevel <String>]
      -Profile <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSNetworkConfigurationDiagnosticProfile]>
      [-AsJob]
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]
Invoke-AzNetworkWatcherNetworkConfigurationDiagnostic
      -ResourceId <String>
      -TargetResourceId <String>
      [-VerbosityLevel <String>]
      -Profile <System.Collections.Generic.List`1[Microsoft.Azure.Commands.Network.Models.PSNetworkConfigurationDiagnosticProfile]>
      [-AsJob]
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]

Beschreibung

Das Cmdlet Invoke-AzNetworkWatcherNetworkConfigurationDiagnostic ruft die Netzwerkkonfigurationsdiagnosesitzung für angegebene Netzwerkprofile auf der Zielressource auf.

Beispiele

Beispiel 1: Aufrufen der Netzwerkkonfigurationsdiagnosesitzung für vm und angegebenes Netzwerkprofil

$profile = New-AzNetworkWatcherNetworkConfigurationDiagnosticProfile -Direction Inbound -Protocol Tcp -Source 10.1.1.4 -Destination * -DestinationPort 50
Invoke-AzNetworkWatcherNetworkConfigurationDiagnostic -Location eastus -TargetResourceId /subscriptions/61cc8a98-a8be-4bfe-a04e-0b461f93fe35/resourceGroups/NwRgEastUS/providers/Microsoft.Compute/virtualMachines/vm1 -Profile $profile

Results : [
            {
              "Profile": {
                "Direction": "Inbound",
                "Protocol": "Tcp",
                "Source": "10.1.1.4",
                "Destination": "*",
                "DestinationPort": "50"
              },
              "NetworkSecurityGroupResult": {
                "SecurityRuleAccessResult": "Allow",
                "EvaluatedNetworkSecurityGroups": [
                  {
                    "NetworkSecurityGroupId": "/subscriptions/61cc8a98-a8be-4bfe-a04e-0b461f93fe35/resourceGroups/clean
          upservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg1",
                    "MatchedRule": {
                      "RuleName": "UserRule_Cleanuptool-Allow-4001",
                      "Action": "Allow"
                    },
                    "RulesEvaluationResult": [
                      {
                        "Name": "UserRule_Cleanuptool-Allow-100",
                        "ProtocolMatched": true,
                        "SourceMatched": false,
                        "SourcePortMatched": true,
                        "DestinationMatched": true,
                        "DestinationPortMatched": false
                      },

Parameter

-AsJob

Cmdlet im Hintergrund ausführen

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

Anmeldeinformationen, Konto, Mandant und Abonnement für die Kommunikation mit Azure

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Location

Der Standort des Netzwerküberwachungs-Wächters.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-NetworkWatcher

Die Netzwerküberwachungsressource.

Type:PSNetworkWatcher
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-NetworkWatcherName

Der Name der Netzwerküberwachung.

Type:String
Aliases:Name
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Profile

Liste der Netzwerkkonfigurationsdiagnoseprofile.

Type:List<T>[PSNetworkConfigurationDiagnosticProfile]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Der Name der Netzwerküberwachungsressourcengruppe.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

Ressourcen-ID

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-TargetResourceId

Die ID der Zielressource zum Ausführen der Netzwerkkonfigurationsdiagnose. Gültige Optionen sind VM, NetworkInterface, VMSS/NetworkInterface und Application Gateway.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VerbosityLevel

Ausführlichkeitsgrad. Akzeptierte Werte sind "Normal", "Minimum", "Full".

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Eingaben

PSNetworkWatcher

String

Ausgaben

PSNetworkConfigurationDiagnosticResponse

Hinweise

Schlüsselwörter: azure, azurerm, arm, resource, management, manager, network, networking, watcher, diagnostic, profile