Skip to main content

Virtual Network

Provides a virtual network.

const virtualNetwork = provider.makeVirtualNetwork({
name: `virtual-network`,
dependencies: { resourceGroup },
properties: () => ({
properties: {
addressSpace: { addressPrefixes: ["10.0.0.0/16"] },
subnets: [
{
name: `subnet`,
properties: {
addressPrefix: "10.0.0.0/24",
},
},
],
},
}),
});

Examples#

Properties#

Dependencies#

Used By#