Start-AzNetworkWatcherResourceTroubleshooting
Azure'daki bir Ağ kaynağında sorun gidermeye başlar.
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
Start-AzNetworkWatcherResourceTroubleshooting cmdlet'i Azure'daki bir Ağ kaynağı için sorun gidermeye başlar ve olası sorunlar ve risk azaltmalar hakkında bilgi döndürür. Şu anda Sanal Ağ Ağ Geçitleri ve Bağlan ions desteklenir.
Örnekler
Örnek 1: Sanal Ağ Ağ Geçidinde Sorun Gidermeyi Başlatma
$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
Yukarıdaki örnek bir sanal ağ geçidinde sorun gidermeye başlar. İşlemin tamamlanması birkaç dakika sürebilir.
Parametreler
-DefaultProfile
Azure ile iletişim için kullanılan kimlik bilgileri, hesap, kiracı ve abonelik.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Location
Ağ izleyicisinin konumu.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NetworkWatcher
Ağ izleyicisi kaynağı.
Type: | PSNetworkWatcher |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-NetworkWatcherName
Ağ izleyicisinin adı.
Type: | String |
Aliases: | Name |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Ağ izleyicisi kaynak grubunun adı.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StorageId
Depolama kimliği.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StoragePath
Depolama yolu.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-TargetResourceId
Sorun giderecek kaynağın kaynak kimliğini belirtir. Örnek biçim: "/subscriptions/${subscriptionId}/resourceGroups/${resourceGroupName}/providers/Microsoft.Network/connections/${connectionName}"
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Girişler
Çıkışlar
Notlar
Anahtar sözcükler: azure, azurerm, arm, kaynak, yönetim, yönetici, ağ, ağ, ağ izleyicisi, sorun giderme, VPN, bağlantı
İlişkili Bağlantılar
- 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 Bağlan ivity
- Stop-AzNetworkWatcher Bağlan ionMonitor
- Start-AzNetworkWatcher Bağlan ionMonitor
- Set-AzNetworkWatcher Bağlan ionMonitor
- Set-AzNetworkWatcherConfigFlowLog
- Remove-AzNetworkWatcher Bağlan ionMonitor
- New-AzNetworkWatcher Bağlan ionMonitor
- Get-AzNetworkWatcherTroubleshootingResult
- Get-AzNetworkWatcherReachabilityReport
- Get-AzNetworkWatcherReachabilityProvidersList
- Get-AzNetworkWatcherFlowLogStatus
- Get-AzNetworkWatcher Bağlan ionMonitorReport
- Get-AzNetworkWatcher Bağlan ionMonitor
Azure PowerShell
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin