ArmNetworkModelFactory.VirtualNetworkData Method
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.
public static Azure.ResourceManager.Network.VirtualNetworkData VirtualNetworkData(Azure.Core.ResourceIdentifier id = default, string name = default, string type = default, Azure.Core.AzureLocation? location = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.ResourceManager.Network.Models.VirtualNetworkAddressSpace addressSpace = 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.ResourceManager.Network.Models.VirtualNetworkBgpCommunities bgpCommunities = default, Azure.ResourceManager.Network.Models.VirtualNetworkEncryption encryption = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.NetworkSubResource> ipAllocations = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.FlowLogData> flowLogs = default, Azure.ResourceManager.Network.Models.PrivateEndpointVnetPolicy? privateEndpointVNetPolicies = default, Azure.ResourceManager.Network.Models.VirtualNetworkAddressSpace summarizedGatewayPrefixes = default, System.Collections.Generic.IEnumerable<string> dhcpOptionsDnsServers = default, Azure.Core.ResourceIdentifier ddosProtectionPlanId = default, Azure.Core.ResourceIdentifier defaultPublicNatGatewayId = default, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = default, Azure.ETag? eTag = default);
static member VirtualNetworkData : Azure.Core.ResourceIdentifier * string * string * Nullable<Azure.Core.AzureLocation> * System.Collections.Generic.IDictionary<string, string> * Azure.ResourceManager.Network.Models.VirtualNetworkAddressSpace * 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.ResourceManager.Network.Models.VirtualNetworkBgpCommunities * Azure.ResourceManager.Network.Models.VirtualNetworkEncryption * seq<Azure.ResourceManager.Network.Models.NetworkSubResource> * seq<Azure.ResourceManager.Network.FlowLogData> * Nullable<Azure.ResourceManager.Network.Models.PrivateEndpointVnetPolicy> * Azure.ResourceManager.Network.Models.VirtualNetworkAddressSpace * seq<string> * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Resources.Models.ExtendedLocation * Nullable<Azure.ETag> -> Azure.ResourceManager.Network.VirtualNetworkData
Public Shared Function VirtualNetworkData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional addressSpace As VirtualNetworkAddressSpace = 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 bgpCommunities As VirtualNetworkBgpCommunities = Nothing, Optional encryption As VirtualNetworkEncryption = Nothing, Optional ipAllocations As IEnumerable(Of NetworkSubResource) = Nothing, Optional flowLogs As IEnumerable(Of FlowLogData) = Nothing, Optional privateEndpointVNetPolicies As Nullable(Of PrivateEndpointVnetPolicy) = Nothing, Optional summarizedGatewayPrefixes As VirtualNetworkAddressSpace = Nothing, Optional dhcpOptionsDnsServers As IEnumerable(Of String) = Nothing, Optional ddosProtectionPlanId As ResourceIdentifier = Nothing, Optional defaultPublicNatGatewayId As ResourceIdentifier = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional eTag As Nullable(Of ETag) = Nothing) As VirtualNetworkData
Parameters
Resource ID.
- name
- String
Resource name.
- type
- String
Resource type.
- location
- Nullable<AzureLocation>
Resource location.
- tags
- IDictionary<String,String>
Resource tags.
- addressSpace
- VirtualNetworkAddressSpace
The AddressSpace that contains an array of IP address ranges that can be used by subnets.
- subnets
- IEnumerable<SubnetData>
A list of subnets in a Virtual Network.
- virtualNetworkPeerings
- IEnumerable<VirtualNetworkPeeringData>
A list of peerings in a Virtual Network.
- provisioningState
- Nullable<NetworkProvisioningState>
The provisioning state of the virtual network resource.
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.
- 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<NetworkSubResource>
Array of IpAllocation which reference this VNET.
- flowLogs
- IEnumerable<FlowLogData>
A collection of references to flow log resources.
- privateEndpointVNetPolicies
- Nullable<PrivateEndpointVnetPolicy>
Private Endpoint VNet Policies.
- summarizedGatewayPrefixes
- VirtualNetworkAddressSpace
A configurable list of summarized gateway prefixes advertised for the virtual network.
- dhcpOptionsDnsServers
- IEnumerable<String>
The list of DNS servers IP addresses.
- ddosProtectionPlanId
- ResourceIdentifier
Resource ID.
- defaultPublicNatGatewayId
- ResourceIdentifier
Resource ID.
- extendedLocation
- ExtendedLocation
The extended location of the virtual network.
Returns
A new VirtualNetworkData instance for mocking.