VirtualNetworkGateway 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
VirtualNetworkGateway()
Initializes a new instance of the VirtualNetworkGateway class.
public VirtualNetworkGateway ();
Public Sub New ()
Applies to
VirtualNetworkGateway(String, String, String, String, IDictionary<String, String>, IList<VirtualNetworkGatewayIPConfiguration>, String, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, SubResource, VirtualNetworkGatewaySku, VpnClientConfiguration, IList<VirtualNetworkGatewayPolicyGroup>, BgpSettings, AddressSpace, String, String, Nullable<Boolean>, String, String, IList<VirtualNetworkGatewayNatRule>, Nullable<Boolean>, ExtendedLocation, String)
Initializes a new instance of the VirtualNetworkGateway class.
public VirtualNetworkGateway (string id = default, string name = default, string type = default, string location = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.VirtualNetworkGatewayIPConfiguration> ipConfigurations = default, string gatewayType = default, string vpnType = default, string vpnGatewayGeneration = default, bool? enableBgp = default, bool? enablePrivateIpAddress = default, bool? activeActive = default, bool? disableIPSecReplayProtection = default, Microsoft.Azure.Management.Network.Models.SubResource gatewayDefaultSite = default, Microsoft.Azure.Management.Network.Models.VirtualNetworkGatewaySku sku = default, Microsoft.Azure.Management.Network.Models.VpnClientConfiguration vpnClientConfiguration = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.VirtualNetworkGatewayPolicyGroup> virtualNetworkGatewayPolicyGroups = default, Microsoft.Azure.Management.Network.Models.BgpSettings bgpSettings = default, Microsoft.Azure.Management.Network.Models.AddressSpace customRoutes = default, string resourceGuid = default, string provisioningState = default, bool? enableDnsForwarding = default, string inboundDnsForwardingEndpoint = default, string vNetExtendedLocationResourceId = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.VirtualNetworkGatewayNatRule> natRules = default, bool? enableBgpRouteTranslationForNat = default, Microsoft.Azure.Management.Network.Models.ExtendedLocation extendedLocation = default, string etag = default);
new Microsoft.Azure.Management.Network.Models.VirtualNetworkGateway : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.VirtualNetworkGatewayIPConfiguration> * string * string * string * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.Azure.Management.Network.Models.SubResource * Microsoft.Azure.Management.Network.Models.VirtualNetworkGatewaySku * Microsoft.Azure.Management.Network.Models.VpnClientConfiguration * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.VirtualNetworkGatewayPolicyGroup> * Microsoft.Azure.Management.Network.Models.BgpSettings * Microsoft.Azure.Management.Network.Models.AddressSpace * string * string * Nullable<bool> * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.VirtualNetworkGatewayNatRule> * Nullable<bool> * Microsoft.Azure.Management.Network.Models.ExtendedLocation * string -> Microsoft.Azure.Management.Network.Models.VirtualNetworkGateway
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 ipConfigurations As IList(Of VirtualNetworkGatewayIPConfiguration) = Nothing, Optional gatewayType As String = Nothing, Optional vpnType As String = Nothing, Optional vpnGatewayGeneration As String = Nothing, Optional enableBgp As Nullable(Of Boolean) = Nothing, Optional enablePrivateIpAddress As Nullable(Of Boolean) = Nothing, Optional activeActive As Nullable(Of Boolean) = Nothing, Optional disableIPSecReplayProtection As Nullable(Of Boolean) = Nothing, Optional gatewayDefaultSite As SubResource = Nothing, Optional sku As VirtualNetworkGatewaySku = Nothing, Optional vpnClientConfiguration As VpnClientConfiguration = Nothing, Optional virtualNetworkGatewayPolicyGroups As IList(Of VirtualNetworkGatewayPolicyGroup) = Nothing, Optional bgpSettings As BgpSettings = Nothing, Optional customRoutes As AddressSpace = Nothing, Optional resourceGuid As String = Nothing, Optional provisioningState As String = Nothing, Optional enableDnsForwarding As Nullable(Of Boolean) = Nothing, Optional inboundDnsForwardingEndpoint As String = Nothing, Optional vNetExtendedLocationResourceId As String = Nothing, Optional natRules As IList(Of VirtualNetworkGatewayNatRule) = Nothing, Optional enableBgpRouteTranslationForNat As Nullable(Of Boolean) = Nothing, Optional extendedLocation As ExtendedLocation = 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.
- ipConfigurations
- IList<VirtualNetworkGatewayIPConfiguration>
IP configurations for virtual network gateway.
- gatewayType
- String
The type of this virtual network gateway. Possible values include: 'Vpn', 'ExpressRoute', 'LocalGateway'
- vpnType
- String
The type of this virtual network gateway. Possible values include: 'PolicyBased', 'RouteBased'
- vpnGatewayGeneration
- String
The generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN. Possible values include: 'None', 'Generation1', 'Generation2'
Whether private IP needs to be enabled on this gateway for connections or not.
- gatewayDefaultSite
- SubResource
The reference to the LocalNetworkGateway resource which represents local network site having default routes. Assign Null value in case of removing existing default site setting.
The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway.
- vpnClientConfiguration
- VpnClientConfiguration
The reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations.
- virtualNetworkGatewayPolicyGroups
- IList<VirtualNetworkGatewayPolicyGroup>
The reference to the VirtualNetworkGatewayPolicyGroup resource which represents the available VirtualNetworkGatewayPolicyGroup for the gateway.
- bgpSettings
- BgpSettings
Virtual network gateway's BGP speaker settings.
- customRoutes
- AddressSpace
The reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient.
- resourceGuid
- String
The resource GUID property of the virtual network gateway resource.
- provisioningState
- String
The provisioning state of the virtual network gateway resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
- inboundDnsForwardingEndpoint
- String
The IP address allocated by the gateway to which dns requests can be sent.
- vNetExtendedLocationResourceId
- String
Customer vnet resource id. VirtualNetworkGateway of type local gateway is associated with the customer vnet.
- natRules
- IList<VirtualNetworkGatewayNatRule>
NatRules for virtual network gateway.
- extendedLocation
- ExtendedLocation
The extended location of type local virtual network gateway.
- etag
- String
A unique read-only string that changes whenever the resource is updated.
Applies to
Azure SDK for .NET