vnet_config {AzureVM}R Documentation

Virtual network configuration

Description

Virtual network configuration

Usage

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.

See Also

create_vm, vm_config, vmss_config

Examples

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

[Package AzureVM version 2.2.2 Index]