Start-AzNetworkWatcherResourceTroubleshooting
Begint met het oplossen van problemen met een netwerkresource in Azure.
Syntax
Start-AzNetworkWatcherResourceTroubleshooting
-NetworkWatcher <PSNetworkWatcher>
-TargetResourceId <String>
-StorageId <String>
-StoragePath <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Start-AzNetworkWatcherResourceTroubleshooting
-NetworkWatcherName <String>
-ResourceGroupName <String>
-TargetResourceId <String>
-StorageId <String>
-StoragePath <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Start-AzNetworkWatcherResourceTroubleshooting
-Location <String>
-TargetResourceId <String>
-StorageId <String>
-StoragePath <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
De cmdlet Start-AzNetworkWatcherResourceTroubleshooting begint met het oplossen van problemen voor een netwerkresource in Azure en retourneert informatie over mogelijke problemen en oplossingen. Momenteel worden gateways en Verbinding maken ions van virtuele netwerken ondersteund.
Voorbeelden
Voorbeeld 1: Probleemoplossing starten op een virtuele netwerkgateway
$nw = Get-AzResource | Where-Object {$_.ResourceType -eq "Microsoft.Network/networkWatchers" -and $_.Location -eq "WestCentralUS" }
$networkWatcher = Get-AzNetworkWatcher -Name $nw.Name -ResourceGroupName $nw.ResourceGroupName
$target = '/subscriptions/bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{vnetGatewayName}'
$storageId = '/subscriptions/bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{storageAccountName}'
$storagePath = 'https://{storageAccountName}.blob.core.windows.net/troubleshoot'
Start-AzNetworkWatcherResourceTroubleshooting -NetworkWatcher $networkWatcher -TargetResourceId $target -StorageId $storageId -StoragePath $storagePath
Het bovenstaande voorbeeld begint met het oplossen van problemen met een virtuele netwerkgateway. Deze bewerking kan enkele minuten duren.
Parameters
-DefaultProfile
De referenties, het account, de tenant en het abonnement die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
standaardwaarde: | None |
Vereist: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Location
Locatie van de network watcher.
Type: | String |
Position: | Named |
standaardwaarde: | None |
Vereist: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NetworkWatcher
De network watcher-resource.
Type: | PSNetworkWatcher |
Position: | Named |
standaardwaarde: | None |
Vereist: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-NetworkWatcherName
De naam van network watcher.
Type: | String |
Aliases: | Name |
Position: | Named |
standaardwaarde: | None |
Vereist: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
De naam van de network watcher-resourcegroep.
Type: | String |
Position: | Named |
standaardwaarde: | None |
Vereist: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StorageId
De opslag-id.
Type: | String |
Position: | Named |
standaardwaarde: | None |
Vereist: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StoragePath
Het opslagpad.
Type: | String |
Position: | Named |
standaardwaarde: | None |
Vereist: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-TargetResourceId
Hiermee geeft u de resource-id van de resource op om problemen op te lossen. Voorbeeldindeling: "/subscriptions/${subscriptionId}/resourceGroups/${resourceGroupName}/providers/Microsoft.Network/connections/${connectionName}"
Type: | String |
Position: | Named |
standaardwaarde: | None |
Vereist: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Invoerwaarden
Uitvoerwaarden
Notities
Trefwoorden: azure, azurerm, arm, resource, beheer, manager, netwerk, netwerk, netwerk, network watcher, probleemoplossing, VPN, verbinding
Verwante koppelingen
- New-AzNetworkWatcher
- Get-AzNetworkWatcher
- Remove-AzNetworkWatcher
- Get-AzNetworkWatcherNextHop
- Get-AzNetworkWatcherSecurityGroupView
- Get-AzNetworkWatcherTopology
- Start-AzNetworkWatcherResourceTroubleshooting
- New-AzNetworkWatcherPacketCapture
- New-AzPacketCaptureFilterConfig
- Get-AzNetworkWatcherPacketCapture
- Remove-AzNetworkWatcherPacketCapture
- Stop-AzNetworkWatcherPacketCapture
- New-AzNetworkWatcherProtocolConfiguration
- Test-AzNetworkWatcherIPFlow
- Test-AzNetworkWatcher Verbinding maken iviteit
- Stop-AzNetworkWatcher Verbinding maken ionMonitor
- Start-AzNetworkWatcher Verbinding maken ionMonitor
- Set-AzNetworkWatcher Verbinding maken ionMonitor
- Set-AzNetworkWatcherConfigFlowLog
- Remove-AzNetworkWatcher Verbinding maken ionMonitor
- New-AzNetworkWatcher Verbinding maken ionMonitor
- Get-AzNetworkWatcherTroubleshootingResult
- Get-AzNetworkWatcherReachabilityReport
- Get-AzNetworkWatcherReachabilityProvidersList
- Get-AzNetworkWatcherFlowLogStatus
- Get-AzNetworkWatcher Verbinding maken ionMonitorReport
- Get-AzNetworkWatcher Verbinding maken ionMonitor