-
-
Save Merlus/569647ab1f9e2ed11c7376d05b458f32 to your computer and use it in GitHub Desktop.
ASG - Add NIC to ASG
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
$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