better-shampoo-48884
05/20/2021, 7:11 AMprovider
to a ComponentResource, will the underlying resources implicitly use that provider?
I.e. I have a ComponentResource "network" - that creates azure-vnet, azure-subnet(s) and azure-networksecuritygroups - if I pass the provider to the "network" componentresource, will the vnet, subnets, and nsg's be created with that provider?brave-planet-10645
05/20/2021, 8:02 AMbetter-shampoo-48884
05/20/2021, 9:48 AMconst provider = new Provider(`Provider`, groupConfig[0])
/**
* Creting the group that will contain all the subsequent resources
*/
const group = new Group(`Group`, {
groupInfo: groupConfig,
create: shouldCreate.group
},{
parent: provider,
provider: provider
})
/**
* Network is typically a given for any deployment
*/
const net = new Network(`Net`, {
group: group.location,
groupInfo: groupConfig,
network: config.getObject("network"),
subnet: config.getObject("subnets"),
create: shouldCreate.network
}, {
parent: group,
provider: provider
});
bored-oyster-3147
05/20/2021, 10:49 AMwitty-candle-66007
05/20/2021, 11:07 AM