-
-
Save Merlus/6bd9f55b3c7f92e2815b3aca1dfa75b5 to your computer and use it in GitHub Desktop.
ASG - Assign NSG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$vnet = Get-AzureRmVirtualNetwork -Name asgtest -ResourceGroupName asgtest | |
Set-AzureRmVirtualNetworkSubnetConfig -Name default -VirtualNetwork $vnet -NetworkSecurityGroupId $nsg.Id -AddressPrefix '10.1.0.0/24' | |
Set-AzureRmVirtualNetwork -VirtualNetwork $vnet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment