https://pulumi.com logo
Title
e

enough-truck-34175

06/25/2021, 2:22 PM
Does anyone have a suggestion of how to associate an AKS network security group with a subnet with azure native? I have this circular dependency I don’t know how to solve for. 1. Create a virtual network with a subnet 2. Create an AKS cluster setting 
VnetSubnetID
 to the subnet. AKS automatically creates an NSG. 3. Associate the AKS NSG to the vnet’s subnet
p

prehistoric-kite-30979

06/25/2021, 3:27 PM
we create the nsg with the subnet and then attach the subnet to aks
👍 1
try doing that before you create the cluster maybe?
e

enough-truck-34175

06/25/2021, 5:16 PM
Good call. I forgot that the nsg is manually created rather than being created by AKS. Clearly, I’ve been staring at this code for too long. 😆
p

prehistoric-kite-30979

06/25/2021, 5:56 PM
happens to us all 🙃