azurerm_virtual_network

Nivis 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
  • location
  • resource_group_name
Optional arguments
  • address_space (defaults to null)
  • advertised_gateway_prefixes (defaults to null)
  • bgp_community (defaults to null)
  • dns_servers (defaults to null)
  • edge_zone (defaults to null)
  • flow_timeout_in_minutes (defaults to null)
  • id (defaults to null)
  • cfg_name (defaults to null)
  • private_endpoint_vnet_policies (defaults to null)
  • subnet (defaults to null)
  • tags (defaults to null)
  • ddos_protection_plan (defaults to null)
  • encryption (defaults to null)
  • ip_address_pool (defaults to null)
  • timeouts (defaults to null)
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.