colossal-room-15708
04/06/2019, 1:13 PMid
property of the nested subnet resource of an Azure vnet?
const vnet = new azure.network.VirtualNetwork("vnet", {
resourceGroupName: resourceGroup.name,
location: region,
name: "vnet",
addressSpaces: [addressSpace],
subnets: [
{
addressPrefix: addressPrefix1,
name: "management"
}
]
})
Creating a subnet like this is allowed, but I wonder if I need to actually get to any information about this subnet in the same stack if it would be better to use the Subnet resource, instead of this nested syntax here.
Or is there a way to get to that nested resource?white-balloon-205
vnet.subnets[0].id
colossal-room-15708
04/07/2019, 8:39 AM.filter()
on vnet.subnets
to find the correct subnet by name.
That doesn't seem to work though with a type error.vnet.mgmtSubnet
for example