Skip to content

Instantly share code, notes, and snippets.

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

What would you like to do?
ASG - Add NIC to ASG
$webNic = Get-AzureRmNetworkInterface -Name web134 -ResourceGroupName asgtest
$webNic.IpConfigurations[0].ApplicationSecurityGroups = $webAsg
Set-AzureRmNetworkInterface -NetworkInterface $webNic
$sqlNic = Get-AzureRmNetworkInterface -Name sql1333 -ResourceGroupName asgtest
$sqlNic.IpConfigurations[0].ApplicationSecurityGroups = $sqlAsg
Set-AzureRmNetworkInterface -NetworkInterface $sqlNic
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.