vnet_config function

Virtual network configuration

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')]", ...)

Arguments

  • address_space: For vnet_config, the address range accessible by the virtual network, expressed in CIDR block format.
  • subnets: For vnet_config, a list of subnet objects, each obtained via a call to subnet_config.
  • ...: Other named arguments that will be treated as resource properties.
  • name: For subnet_config, the name of the subnet. Duplicate names will automatically be disambiguated prior to VM deployment.
  • addresses: For subnet_config, the address ranges spanned by this subnet. Must be a subset of the address space available to the parent virtual network.
  • nsg: The network security group associated with this subnet. Defaults to the NSG created as part of this VM deployment.

Examples

vnet_config() vnet_config(address_space="10.1.0.0/16") vnet_config(subnets=list( subnet_config("subnet", "10.0.0.0/24") ))

See Also

create_vm , vm_config , vmss_config

  • Maintainer: Hong Ooi
  • License: MIT + file LICENSE
  • Last published: 2020-10-14