vnet_config: Virtual network configuration

Description Usage Arguments See Also Examples

View source: R/vnet_config.R

Description

Virtual network configuration

Usage

1
2
3
4
5
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

1
2
3
4
5
vnet_config()
vnet_config(address_space="10.1.0.0/16")
vnet_config(subnets=list(
    subnet_config("subnet", "10.0.0.0/24")
))

AzureVM documentation built on Oct. 23, 2020, 5:20 p.m.