AZURE VPN 異常檢測
使用故障排除進行VPN測試
指令可以使用cloud
powerchell
黃色的部分請代換成自己的名稱
執行以下語法
$networkWatcher
= Get-AzNetworkWatcher -Location "southeastasia"
$connection
= Get-AzVirtualNetworkGatewayConnection -Name "GSEO-Azure-IPSec-SEA"
-ResourceGroupName "GSEO-Cloud-SEA"
$sa
= New-AzStorageAccount -Name "contosoexamplesa" -SKU
"Standard_LRS" -ResourceGroupName "GSEO-Cloud-SEA"
-Location "SoutheastAsia"
Set-AzCurrentStorageAccount
-ResourceGroupName $sa.ResourceGroupName -Name $sa.StorageAccountName
$sc
= New-AzStorageContainer -Name logs
Start-AzNetworkWatcherResourceTroubleshooting
-NetworkWatcher $networkWatcher -TargetResourceId $connection.Id -StorageId
$sa.Id -StoragePath "$($sa.PrimaryEndpoints.Blob)$($sc.name)"
完成後會將結果寫在這裡
使用 Azure 網路監看員 PowerShell 來針對虛擬網路閘道和連線進行疑難排解
留言