few-coat-22129
03/08/2021, 1:59 AM// SQLDB FIREWALL EXCEPTIONS
Output<List<FirewallRule>>? list = app.OutboundIpAddresses.Apply(
ips => ips.Split(",").Select(
ip => new FirewallRule($"{ip}", new FirewallRuleArgs
{
FirewallRuleName = SQLSVRFIREWALLRULENAME,
ResourceGroupName = resourceGroup.Name,
ServerName = DBSERVERNAME,
StartIpAddress = "0.0.0.0",
EndIpAddress = "0.0.0.0"
})
).ToList());
It sort of works but i think it's adding in more rules than what I need due to the select statement.
So my questions is:
Am I going about this the right way?
If so , how do I add a single Firewall Rule to implement System assigned MI?tall-librarian-49374
03/08/2021, 7:07 AM