VirtualNetwork Class 
Virtual Network resource.
Variables are only populated by the server, and will be ignored when sending a request.
Constructor
VirtualNetwork(*, id: str | None = None, location: str | None = None, tags: Dict[str, str] | None = None, extended_location: _models.ExtendedLocation | None = None, address_space: _models.AddressSpace | None = None, dhcp_options: _models.DhcpOptions | None = None, flow_timeout_in_minutes: int | None = None, subnets: List[_models.Subnet] | None = None, virtual_network_peerings: List[_models.VirtualNetworkPeering] | None = None, enable_ddos_protection: bool = False, enable_vm_protection: bool = False, ddos_protection_plan: _models.SubResource | None = None, bgp_communities: _models.VirtualNetworkBgpCommunities | None = None, encryption: _models.VirtualNetworkEncryption | None = None, ip_allocations: List[_models.SubResource] | None = None, private_endpoint_v_net_policies: str | _models.PrivateEndpointVNetPolicies | None = None, **kwargs: Any)Keyword-Only Parameters
| Name | Description | 
|---|---|
| id | Resource ID. Default value: None | 
| location | Resource location. Default value: None | 
| tags | Resource tags. Default value: None | 
| extended_location | The extended location of the virtual network. Default value: None | 
| address_space | The AddressSpace that contains an array of IP address ranges that can be used by subnets. Default value: None | 
| dhcp_options | The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network. Default value: None | 
| flow_timeout_in_minutes | The FlowTimeout value (in minutes) for the Virtual Network. Default value: None | 
| subnets | A list of subnets in a Virtual Network. Default value: None | 
| virtual_network_peerings | A list of peerings in a Virtual Network. Default value: None | 
| enable_ddos_protection | Indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource. Default value: False | 
| enable_vm_protection | Indicates if VM protection is enabled for all the subnets in the virtual network. Default value: False | 
| ddos_protection_plan | The DDoS protection plan associated with the virtual network. Default value: None | 
| bgp_communities | Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET. Default value: None | 
| encryption | Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet. Default value: None | 
| ip_allocations | Array of IpAllocation which reference this VNET. Default value: None | 
| private_endpoint_v_net_policies | Private Endpoint VNet Policies. Known values are: "Disabled" and "Basic". Default value: None | 
Variables
| Name | Description | 
|---|---|
| id | Resource ID. | 
| name | Resource name. | 
| type | Resource type. | 
| location | Resource location. | 
| tags | Resource tags. | 
| extended_location | The extended location of the virtual network. | 
| etag | A unique read-only string that changes whenever the resource is updated. | 
| address_space | The AddressSpace that contains an array of IP address ranges that can be used by subnets. | 
| dhcp_options | The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network. | 
| flow_timeout_in_minutes | The FlowTimeout value (in minutes) for the Virtual Network. | 
| subnets | A list of subnets in a Virtual Network. | 
| virtual_network_peerings | A list of peerings in a Virtual Network. | 
| resource_guid | The resourceGuid property of the Virtual Network resource. | 
| provisioning_state | The provisioning state of the virtual network resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". | 
| enable_ddos_protection | Indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource. | 
| enable_vm_protection | Indicates if VM protection is enabled for all the subnets in the virtual network. | 
| ddos_protection_plan | The DDoS protection plan associated with the virtual network. | 
| bgp_communities | Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET. | 
| encryption | Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet. | 
| ip_allocations | Array of IpAllocation which reference this VNET. | 
| flow_logs | A collection of references to flow log resources. | 
| private_endpoint_v_net_policies | Private Endpoint VNet Policies. Known values are: "Disabled" and "Basic". | 
| default_public_nat_gateway | A reference to the default public nat gateway being used by this virtual network resource. |