VirtualNetwork Class
Virtual Network resource.
Variables are only populated by the server, and will be ignored when sending a request.
- Inheritance
-
azure.mgmt.network.v2019_02_01.models._models_py3.ResourceVirtualNetwork
Constructor
VirtualNetwork(*, id: typing.Union[str, NoneType] = None, location: typing.Union[str, NoneType] = None, tags: typing.Union[typing.Dict[str, str], NoneType] = None, etag: typing.Union[str, NoneType] = None, address_space: typing.Union[_ForwardRef('AddressSpace'), NoneType] = None, dhcp_options: typing.Union[_ForwardRef('DhcpOptions'), NoneType] = None, subnets: typing.Union[typing.List[_ForwardRef('Subnet')], NoneType] = None, virtual_network_peerings: typing.Union[typing.List[_ForwardRef('VirtualNetworkPeering')], NoneType] = None, resource_guid: typing.Union[str, NoneType] = None, provisioning_state: typing.Union[str, NoneType] = None, enable_ddos_protection: typing.Union[bool, NoneType] = False, enable_vm_protection: typing.Union[bool, NoneType] = False, ddos_protection_plan: typing.Union[_ForwardRef('SubResource'), NoneType] = None, **kwargs)
Parameters
- id
- str
Resource ID.
- location
- str
Resource location.
- etag
- str
Gets a unique read-only string that changes whenever the resource is updated.
- address_space
- AddressSpace
The AddressSpace that contains an array of IP address ranges that can be used by subnets.
- dhcp_options
- DhcpOptions
The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.
- virtual_network_peerings
- list[VirtualNetworkPeering]
A list of peerings in a Virtual Network.
- resource_guid
- str
The resourceGuid property of the Virtual Network resource.
- provisioning_state
- str
The provisioning state of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
- enable_ddos_protection
- bool
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
- bool
Indicates if VM protection is enabled for all the subnets in the virtual network.
- ddos_protection_plan
- SubResource
The DDoS protection plan associated with the virtual network.
Variables
- name
- str
Resource name.
- type
- str
Resource type.
Feedback
Submit and view feedback for