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?