sparse-intern-71089
08/26/2022, 12:19 PMbillowy-army-68599
quaint-match-50796
08/26/2022, 2:12 PMself.vnet = network.VirtualNetwork(
f"{self.config.cluster_name}-vnet",
location=self.config.location,
resource_group_name=self.rg.name,
address_space=network.AddressSpaceArgs(address_prefixes=[address_space]),
subnets=[
network.SubnetArgs(
address_prefix=address_space,
private_endpoint_network_policies="Enabled",
private_link_service_network_policies="Enabled",
name=f"{self.config.cluster_name}-subnet",
)
]
)
Before we were creating the vnet, and then a subnet was assigned to this vnet. azure-native wasn't able to understand this, and after a refresh when azure returned the subnets as part of the vnet, it would try to recreate it.
Moving the subnet initialization inside the vnet class, it stopped behaving weirdly.clean-truck-93285
08/26/2022, 6:34 PM