Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

Network Service Goups (NSG) and a Deny All applied to a VM

$
0
0

I am trying to understand NSG, and I run the following commands:

New-AzureNetworkSecurityGroup -Name "TEST" -Location "East US" -Label "TEST"

Get-AzureNetworkSecurityGroup -Name "TEST" | Set-AzureNetworkSecurityRule -Name 'Deny All' -Type Inbound -Priority 100 -Action Deny -SourceAddressPrefix * -SourcePortRange * -DestinationAddressPrefix * -DestinationPortRange * -Protocol *


Get-AzureVm -ServiceName CentOSBOX | Set-AzureNetworkSecurityGroupConfig -NetworkSecurityGroupName "TEST" | Update-AzureVM

But I can still SSH into the box. Help?


Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>