Sdílet prostřednictvím


VirtualNetwork Constructors

Definition

Overloads

VirtualNetwork()

Initializes a new instance of the VirtualNetwork class.

VirtualNetwork(String, String, String, String, IDictionary<String, String>, ExtendedLocation, AddressSpace, DhcpOptions, Nullable<Int32>, IList<Subnet>, IList<VirtualNetworkPeering>, String, String, Nullable<Boolean>, Nullable<Boolean>, SubResource, VirtualNetworkBgpCommunities, VirtualNetworkEncryption, IList<SubResource>, String)

Initializes a new instance of the VirtualNetwork class.

VirtualNetwork()

Initializes a new instance of the VirtualNetwork class.

public VirtualNetwork ();
Public Sub New ()

Applies to

VirtualNetwork(String, String, String, String, IDictionary<String, String>, ExtendedLocation, AddressSpace, DhcpOptions, Nullable<Int32>, IList<Subnet>, IList<VirtualNetworkPeering>, String, String, Nullable<Boolean>, Nullable<Boolean>, SubResource, VirtualNetworkBgpCommunities, VirtualNetworkEncryption, IList<SubResource>, String)

Initializes a new instance of the VirtualNetwork class.

public VirtualNetwork (string id = default, string name = default, string type = default, string location = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Network.Models.ExtendedLocation extendedLocation = default, Microsoft.Azure.Management.Network.Models.AddressSpace addressSpace = default, Microsoft.Azure.Management.Network.Models.DhcpOptions dhcpOptions = default, int? flowTimeoutInMinutes = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.Subnet> subnets = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.VirtualNetworkPeering> virtualNetworkPeerings = default, string resourceGuid = default, string provisioningState = default, bool? enableDdosProtection = default, bool? enableVmProtection = default, Microsoft.Azure.Management.Network.Models.SubResource ddosProtectionPlan = default, Microsoft.Azure.Management.Network.Models.VirtualNetworkBgpCommunities bgpCommunities = default, Microsoft.Azure.Management.Network.Models.VirtualNetworkEncryption encryption = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.SubResource> ipAllocations = default, string etag = default);
new Microsoft.Azure.Management.Network.Models.VirtualNetwork : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Network.Models.ExtendedLocation * Microsoft.Azure.Management.Network.Models.AddressSpace * Microsoft.Azure.Management.Network.Models.DhcpOptions * Nullable<int> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.Subnet> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.VirtualNetworkPeering> * string * string * Nullable<bool> * Nullable<bool> * Microsoft.Azure.Management.Network.Models.SubResource * Microsoft.Azure.Management.Network.Models.VirtualNetworkBgpCommunities * Microsoft.Azure.Management.Network.Models.VirtualNetworkEncryption * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.SubResource> * string -> Microsoft.Azure.Management.Network.Models.VirtualNetwork
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional location As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional addressSpace As AddressSpace = Nothing, Optional dhcpOptions As DhcpOptions = Nothing, Optional flowTimeoutInMinutes As Nullable(Of Integer) = Nothing, Optional subnets As IList(Of Subnet) = Nothing, Optional virtualNetworkPeerings As IList(Of VirtualNetworkPeering) = Nothing, Optional resourceGuid As String = Nothing, Optional provisioningState As String = Nothing, Optional enableDdosProtection As Nullable(Of Boolean) = Nothing, Optional enableVmProtection As Nullable(Of Boolean) = Nothing, Optional ddosProtectionPlan As SubResource = Nothing, Optional bgpCommunities As VirtualNetworkBgpCommunities = Nothing, Optional encryption As VirtualNetworkEncryption = Nothing, Optional ipAllocations As IList(Of SubResource) = Nothing, Optional etag As String = Nothing)

Parameters

id
String

Resource ID.

name
String

Resource name.

type
String

Resource type.

location
String

Resource location.

tags
IDictionary<String,String>

Resource tags.

extendedLocation
ExtendedLocation

The extended location of the virtual network.

addressSpace
AddressSpace

The AddressSpace that contains an array of IP address ranges that can be used by subnets.

dhcpOptions
DhcpOptions

The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.

flowTimeoutInMinutes
Nullable<Int32>

The FlowTimeout value (in minutes) for the Virtual Network

subnets
IList<Subnet>

A list of subnets in a Virtual Network.

virtualNetworkPeerings
IList<VirtualNetworkPeering>

A list of peerings in a Virtual Network.

resourceGuid
String

The resourceGuid property of the Virtual Network resource.

provisioningState
String

The provisioning state of the virtual network resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

enableDdosProtection
Nullable<Boolean>

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.

enableVmProtection
Nullable<Boolean>

Indicates if VM protection is enabled for all the subnets in the virtual network.

ddosProtectionPlan
SubResource

The DDoS protection plan associated with the virtual network.

bgpCommunities
VirtualNetworkBgpCommunities

Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.

encryption
VirtualNetworkEncryption

Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.

ipAllocations
IList<SubResource>

Array of IpAllocation which reference this VNET.

etag
String

A unique read-only string that changes whenever the resource is updated.

Applies to