Share via


ArmNetworkModelFactory.VirtualNetworkData Method

Definition

Initializes a new instance of VirtualNetworkData.

public static Azure.ResourceManager.Network.VirtualNetworkData VirtualNetworkData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType? resourceType = default, Azure.Core.AzureLocation? location = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = default, Azure.ETag? etag = default, System.Collections.Generic.IEnumerable<string> addressPrefixes = default, System.Collections.Generic.IEnumerable<string> dhcpOptionsDnsServers = default, int? flowTimeoutInMinutes = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.SubnetData> subnets = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.VirtualNetworkPeeringData> virtualNetworkPeerings = default, Guid? resourceGuid = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default, bool? enableDdosProtection = default, bool? enableVmProtection = default, Azure.Core.ResourceIdentifier ddosProtectionPlanId = default, Azure.ResourceManager.Network.Models.VirtualNetworkBgpCommunities bgpCommunities = default, Azure.ResourceManager.Network.Models.VirtualNetworkEncryption encryption = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WritableSubResource> ipAllocations = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.FlowLogData> flowLogs = default);
static member VirtualNetworkData : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * Nullable<Azure.Core.AzureLocation> * System.Collections.Generic.IDictionary<string, string> * Azure.ResourceManager.Resources.Models.ExtendedLocation * Nullable<Azure.ETag> * seq<string> * seq<string> * Nullable<int> * seq<Azure.ResourceManager.Network.SubnetData> * seq<Azure.ResourceManager.Network.VirtualNetworkPeeringData> * Nullable<Guid> * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> * Nullable<bool> * Nullable<bool> * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Network.Models.VirtualNetworkBgpCommunities * Azure.ResourceManager.Network.Models.VirtualNetworkEncryption * seq<Azure.ResourceManager.Resources.Models.WritableSubResource> * seq<Azure.ResourceManager.Network.FlowLogData> -> Azure.ResourceManager.Network.VirtualNetworkData
Public Shared Function VirtualNetworkData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional addressPrefixes As IEnumerable(Of String) = Nothing, Optional dhcpOptionsDnsServers As IEnumerable(Of String) = Nothing, Optional flowTimeoutInMinutes As Nullable(Of Integer) = Nothing, Optional subnets As IEnumerable(Of SubnetData) = Nothing, Optional virtualNetworkPeerings As IEnumerable(Of VirtualNetworkPeeringData) = Nothing, Optional resourceGuid As Nullable(Of Guid) = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing, Optional enableDdosProtection As Nullable(Of Boolean) = Nothing, Optional enableVmProtection As Nullable(Of Boolean) = Nothing, Optional ddosProtectionPlanId As ResourceIdentifier = Nothing, Optional bgpCommunities As VirtualNetworkBgpCommunities = Nothing, Optional encryption As VirtualNetworkEncryption = Nothing, Optional ipAllocations As IEnumerable(Of WritableSubResource) = Nothing, Optional flowLogs As IEnumerable(Of FlowLogData) = Nothing) As VirtualNetworkData

Parameters

id
ResourceIdentifier

Resource ID.

name
String

Resource name.

resourceType
Nullable<ResourceType>

Resource type.

location
Nullable<AzureLocation>

Resource location.

tags
IDictionary<String,String>

Resource tags.

extendedLocation
ExtendedLocation

The extended location of the virtual network.

etag
Nullable<ETag>

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

addressPrefixes
IEnumerable<String>

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

dhcpOptionsDnsServers
IEnumerable<String>

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
IEnumerable<SubnetData>

A list of subnets in a Virtual Network.

virtualNetworkPeerings
IEnumerable<VirtualNetworkPeeringData>

A list of peerings in a Virtual Network.

resourceGuid
Nullable<Guid>

The resourceGuid property of the Virtual Network resource.

provisioningState
Nullable<NetworkProvisioningState>

The provisioning state of the virtual network resource.

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.

ddosProtectionPlanId
ResourceIdentifier

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
IEnumerable<WritableSubResource>

Array of IpAllocation which reference this VNET.

flowLogs
IEnumerable<FlowLogData>

A collection of references to flow log resources.

Returns

A new VirtualNetworkData instance for mocking.

Applies to