powered by
Virtual network configuration
vnet_config(address_space = "10.0.0.0/16", subnets = list(subnet_config()), ...)subnet_config(name = "subnet", addresses = "10.0.0.0/16", nsg = "[variables('nsgId')]", ...)
subnet_config(name = "subnet", addresses = "10.0.0.0/16", nsg = "[variables('nsgId')]", ...)
For vnet_config, the address range accessible by the virtual network, expressed in CIDR block format.
vnet_config
For vnet_config, a list of subnet objects, each obtained via a call to subnet_config.
subnet_config
Other named arguments that will be treated as resource properties.
For subnet_config, the name of the subnet. Duplicate names will automatically be disambiguated prior to VM deployment.
For subnet_config, the address ranges spanned by this subnet. Must be a subset of the address space available to the parent virtual network.
The network security group associated with this subnet. Defaults to the NSG created as part of this VM deployment.
create_vm, vm_config, vmss_config
# NOT RUN { vnet_config() vnet_config(address_space="10.1.0.0/16") vnet_config(subnets=list( subnet_config("subnet", "10.0.0.0/24") )) # }
Run the code above in your browser using DataLab