https://pulumi.com logo
#golang
Title
# golang
g

gentle-diamond-70147

09/28/2019, 5:38 PM
But like Paul said, you can just use the output from
resourceGroup
as the input to
virtualNetwork
to create the dependency.
Copy code
virtualNetwork, err := network.NewVirtualNetwork(ctx, vnetName, &network.VirtualNetworkArgs{
    Name:              vnetName,
    Location:          location,
    ResourceGroupName: resourceGroup.Name(),
    AddressSpaces:     VnetAddressSpaces,
})
3 Views