VirtualNetwork Class

Virtual Network resource.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.network.models._models_py3.Resource
VirtualNetwork

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
str

Resource ID.

location
str

Resource location.

tags

Resource tags.

extended_location

The extended location of the virtual network.

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
int

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.

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.

private_endpoint_v_net_policies

Private Endpoint VNet Policies. Known values are: "Disabled" and "Basic".

Variables

Name Description
id
str

Resource ID.

name
str

Resource name.

type
str

Resource type.

location
str

Resource location.

tags

Resource tags.

extended_location

The extended location of the virtual network.

etag
str

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
int

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
str

The resourceGuid property of the Virtual Network resource.

provisioning_state

The provisioning state of the virtual network resource. Known values are: "Succeeded", "Updating", "Deleting", and "Failed".

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".