Skip to main content

Subnet

Provides a subnet.

provider.virtualNetworks.makeSubnet({
name: "subnet",
properties: ({ config }) => ({
properties: {
addressPrefix: "10.0.0.0/24",
},
}),
dependencies: ({ resources }) => ({
resourceGroup: resources.resourceManagement.ResourceGroup["resource-group"],
virtualNetwork: resources.virtualNetworks.VirtualNetwork["virtual-network"],
}),
});

Examples#

Properties#

Dependencies#

Used By#