From f7afeba12efee90a20e5b9d0b6ff49eeca6969fa Mon Sep 17 00:00:00 2001 From: Robbie Zhang Date: Thu, 27 Dec 2018 16:35:38 -0800 Subject: [PATCH] Remove the Restriction that No NSG should be set on the Subnet (#478) --- providers/azure/aci.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/providers/azure/aci.go b/providers/azure/aci.go index c6b3a9c8c..9f0e2a05b 100644 --- a/providers/azure/aci.go +++ b/providers/azure/aci.go @@ -338,9 +338,6 @@ func (p *ACIProvider) setupNetworkProfile(auth *client.Authentication) error { if p.subnetCIDR != *subnet.SubnetPropertiesFormat.AddressPrefix { return fmt.Errorf("found subnet '%s' using different CIDR: '%s'. desired: '%s'", p.subnetName, *subnet.SubnetPropertiesFormat.AddressPrefix, p.subnetCIDR) } - if subnet.SubnetPropertiesFormat.NetworkSecurityGroup != nil { - return fmt.Errorf("unable to delegate subnet '%s' to Azure Container Instance since it references the network security group '%s'.", p.subnetName, *subnet.SubnetPropertiesFormat.NetworkSecurityGroup.ID) - } if subnet.SubnetPropertiesFormat.RouteTable != nil { return fmt.Errorf("unable to delegate subnet '%s' to Azure Container Instance since it references the route table '%s'.", p.subnetName, *subnet.SubnetPropertiesFormat.RouteTable.ID) }