Skip to content

Instantly share code, notes, and snippets.

@Merlus Merlus/AsgAssignNsg.ps1 Secret
Created Nov 15, 2017

What would you like to do?
ASG - Assign NSG
$vnet = Get-AzureRmVirtualNetwork -Name asgtest -ResourceGroupName asgtest
Set-AzureRmVirtualNetworkSubnetConfig -Name default -VirtualNetwork $vnet -NetworkSecurityGroupId $nsg.Id -AddressPrefix ''
Set-AzureRmVirtualNetwork -VirtualNetwork $vnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.