Hi, I'm working through some new infra and I have ...
# azure
a
Hi, I'm working through some new infra and I have a Vnet with a subnet, I originally created the Vnet and then added the subnet. When I look in the console I can see the vnet resource, but not the subnet in it. I can add tag, but it's ignoring the subnet section
virtual_network = azure_native.network.VirtualNetwork("My-Vnet-10-3-0-0",
address_space=azure_native.network.AddressSpaceArgs(
address_prefixes=["10.3.0.0/16"],
),
tags={
"Company": "Company Group",
"ENVCODE": "DEV",
"Environment": "Development",
"Owner": "PMM"
},
location="somewhere",
resource_group_name="DEV-ARG-Networks",
virtual_network_name="DEV-ADS-Vnet-001"),
subnets = [azure_native.network.SubnetArgs(
address_prefix="10.3.2.0/27",
name='DEV-ADS-Subnet-10-3-2-0',
service_endpoints=[azure_native.network.ServiceEndpointPropertiesFormatArgs(
service="Microsoft.Sql",
)]
)]
Realized that this was not formatted correctly hence why it was failing to be recognized, didn't have the subnet statement inside the Vnet statement