azurerm_virtual_networkNivis Nix constructor for the azurerm_virtual_network resource (provider azurerm). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
location,
resource_group_name,
address_space ? null,
advertised_gateway_prefixes ? null,
bgp_community ? null,
dns_servers ? null,
edge_zone ? null,
flow_timeout_in_minutes ? null,
id ? null,
cfg_name ? null,
private_endpoint_vnet_policies ? null,
subnet ? null,
tags ? null,
ddos_protection_plan ? null,
encryption ? null,
ip_address_pool ? null,
timeouts ? null,
overrides ? {}
}Required arguments
locationresource_group_name
Optional arguments
address_space(defaults tonull)advertised_gateway_prefixes(defaults tonull)bgp_community(defaults tonull)dns_servers(defaults tonull)edge_zone(defaults tonull)flow_timeout_in_minutes(defaults tonull)id(defaults tonull)cfg_name(defaults tonull)private_endpoint_vnet_policies(defaults tonull)subnet(defaults tonull)tags(defaults tonull)ddos_protection_plan(defaults tonull)encryption(defaults tonull)ip_address_pool(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
guid
Example
azurerm_virtual_network {
name = "virtual_network";
location = …; # required
resource_group_name = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.