VirtualNetwork Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
VirtualNetwork() |
Initializes a new instance of the VirtualNetwork class. |
VirtualNetwork(String, String, String, String, IDictionary<String, String>, ExtendedLocation, AddressSpace, DhcpOptions, IList<Subnet>, IList<VirtualNetworkPeering>, String, String, Nullable<Boolean>, Nullable<Boolean>, SubResource, VirtualNetworkBgpCommunities, 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, IList<Subnet>, IList<VirtualNetworkPeering>, String, String, Nullable<Boolean>, Nullable<Boolean>, SubResource, VirtualNetworkBgpCommunities, 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.PowerShell.Cmdlets.Websites.Helper.Network.Models.ExtendedLocation extendedLocation = default, Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.AddressSpace addressSpace = default, Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.DhcpOptions dhcpOptions = default, System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.Subnet> subnets = default, System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.VirtualNetworkPeering> virtualNetworkPeerings = default, string resourceGuid = default, string provisioningState = default, bool? enableDdosProtection = default, bool? enableVmProtection = default, Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.SubResource ddosProtectionPlan = default, Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.VirtualNetworkBgpCommunities bgpCommunities = default, System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.SubResource> ipAllocations = default, string etag = default);
new Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.VirtualNetwork : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.ExtendedLocation * Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.AddressSpace * Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.DhcpOptions * System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.Subnet> * System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.VirtualNetworkPeering> * string * string * Nullable<bool> * Nullable<bool> * Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.SubResource * Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.VirtualNetworkBgpCommunities * System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.SubResource> * string -> Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.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 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 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.
- 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'
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.
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.
- ipAllocations
- IList<SubResource>
Array of IpAllocation which reference this VNET.
- etag
- String
A unique read-only string that changes whenever the resource is updated.