PowerShell ile Azure Subnet uzerindeki Default Network Security Group bilgisini sorgulamak

PowerShell
((Get-AzVirtualNetwork -Name "vnet1" | Select -ExpandProperty Subnets | Where {$_.Name -eq "default"} | Select -ExpandProperty NetworkSecurityGroup | select id).id).split("/")[-1]