Azure-Resource-Manager-Service-tag-for-NSG

You can set it by command:

1
2
3
4
$nsg = Get-AzureRmNetworkSecurityGroup -Name <sg name> -ResourceGroupName <resource group name>
Add-AzureRmNetworkSecurityRuleConfig -NetworkSecurityGroup $nsg -Name allow-arm -Description "Allow ARM" -Access Allow `
-Protocol Tcp -Direction Outbound -Priority 100 -SourceAddressPrefix * `
-SourcePortRange * -DestinationAddressPrefix AzureResourceManager -DestinationPortRange * | Set-AzureRmNetworkSecurityGroup

Enjoy. By Jacky 2019-12-17