New-AzVirtualNetworkGateway
Hiermee maakt u een virtuele netwerkgateway
Syntax
New-AzVirtualNetworkGateway
-Name <String>
-ResourceGroupName <String>
-Location <String>
[-IpConfigurations <PSVirtualNetworkGatewayIpConfiguration[]>]
[-GatewayType <String>]
[-ExtendedLocation <String>]
[-VNetExtendedLocationResourceId <String>]
[-VpnType <String>]
[-EnableBgp <Boolean>]
[-DisableIPsecProtection <Boolean>]
[-EnableActiveActiveFeature]
[-EnablePrivateIpAddress]
[-GatewaySku <String>]
[-GatewayDefaultSite <PSLocalNetworkGateway>]
[-MinScaleUnit <Int32>]
[-MaxScaleUnit <Int32>]
[-VpnClientAddressPool <String[]>]
[-VpnClientProtocol <String[]>]
[-VpnAuthenticationType <String[]>]
[-VpnClientRootCertificates <PSVpnClientRootCertificate[]>]
[-VpnClientRevokedCertificates <PSVpnClientRevokedCertificate[]>]
[-VpnClientIpsecPolicy <PSIpsecPolicy[]>]
[-Asn <UInt32>]
[-PeerWeight <Int32>]
[-IpConfigurationBgpPeeringAddresses <PSIpConfigurationBgpPeeringAddress[]>]
[-NatRule <PSVirtualNetworkGatewayNatRule[]>]
[-EnableBgpRouteTranslationForNat]
[-Tag <Hashtable>]
[-Force]
[-RadiusServerAddress <String>]
[-RadiusServerSecret <SecureString>]
[-RadiusServerList <PSRadiusServer[]>]
[-AadTenantUri <String>]
[-AadAudienceId <String>]
[-AadIssuerUri <String>]
[-CustomRoute <String[]>]
[-VpnGatewayGeneration <String>]
[-VirtualNetworkGatewayPolicyGroup <PSVirtualNetworkGatewayPolicyGroup[]>]
[-ClientConnectionConfiguration <PSClientConnectionConfiguration[]>]
[-AdminState <String>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
De virtuele netwerkgateway is het object dat uw gateway in Azure vertegenwoordigt. De cmdlet New-AzVirtualNetworkGateway maakt het object van uw gateway in Azure op basis van de naam, resourcegroepnaam, locatie en IP-configuratie, evenals het gatewaytype en als VPN, het VPN-type. U kunt ook de gateway-SKU een naam opgeven. Als deze gateway wordt gebruikt voor punt-naar-site-verbindingen, moet u ook de VPN-clientadresgroep opnemen waaruit adressen moeten worden toegewezen voor het verbinden van clients en het basiscertificaat van de VPN-client dat wordt gebruikt voor het verifiëren van VPN-clients die verbinding maken met de gateway. U kunt er ook voor kiezen om andere functies, zoals BGP en Active-Active, op te nemen.
Voorbeelden
Voorbeeld 1: Een virtuele netwerkgateway maken
New-AzResourceGroup -Location "UK West" -Name "vnet-gateway"
$subnet = New-AzVirtualNetworkSubnetConfig -Name 'gatewaysubnet' -AddressPrefix '10.254.0.0/27'
$ngwpip = New-AzPublicIpAddress -Name ngwpip -ResourceGroupName "vnet-gateway" -Location "UK West" -AllocationMethod Dynamic
$vnet = New-AzVirtualNetwork -AddressPrefix "10.254.0.0/27" -Location "UK West" -Name vnet-gateway -ResourceGroupName "vnet-gateway" -Subnet $subnet
$subnet = Get-AzVirtualNetworkSubnetConfig -name 'gatewaysubnet' -VirtualNetwork $vnet
$ngwipconfig = New-AzVirtualNetworkGatewayIpConfig -Name ngwipconfig -SubnetId $subnet.Id -PublicIpAddressId $ngwpip.Id
New-AzVirtualNetworkGateway -Name myNGW -ResourceGroupName vnet-gateway -Location "UK West" -IpConfigurations $ngwIpConfig -GatewayType "Vpn" -VpnType "RouteBased" -GatewaySku "Basic" -CustomRoute 192.168.0.0/24
Met het bovenstaande maakt u een resourcegroep, vraagt u een openbaar IP-adres aan, maakt u een virtueel netwerk en subnet en maakt u een virtuele netwerkgateway in Azure. De gateway wordt 'myNGW' genoemd in de resourcegroep 'vnet-gateway' in de locatie 'UK - west' met de eerder gemaakte IP-configuraties die zijn opgeslagen in de variabele 'ngwIPConfig', het gatewaytype 'VPN', het vpn-type 'RouteBased' en de sku 'Basic'.
Voorbeeld 2: Een virtuele netwerkgateway maken met externe radius-configuratie
New-AzResourceGroup -Location "UK West" -Name "vnet-gateway"
New-AzVirtualNetworkSubnetConfig -Name 'gatewaysubnet' -AddressPrefix '10.254.0.0/27'
$ngwpip = New-AzPublicIpAddress -Name ngwpip -ResourceGroupName "vnet-gateway" -Location "UK West" -AllocationMethod Dynamic
$vnet = New-AzVirtualNetwork -AddressPrefix "10.254.0.0/27" -Location "UK West" -Name vnet-gateway -ResourceGroupName "vnet-gateway" -Subnet $subnet
$subnet = Get-AzVirtualNetworkSubnetConfig -name 'gatewaysubnet' -VirtualNetwork $vnet
$ngwipconfig = New-AzVirtualNetworkGatewayIpConfig -Name ngwipconfig -SubnetId $subnet.Id -PublicIpAddressId $ngwpip.Id
$Secure_String_Pwd = ConvertTo-SecureString "TestRadiusServerPassword" -AsPlainText -Force
New-AzVirtualNetworkGateway -Name myNGW -ResourceGroupName vnet-gateway -Location "UK West" -IpConfigurations $ngwIpConfig -GatewayType "Vpn" -VpnType "RouteBased" -GatewaySku "Basic" -RadiusServerAddress "TestRadiusServer" -RadiusServerSecret $Secure_String_Pwd -CustomRoute 192.168.0.0/24
Met het bovenstaande maakt u een resourcegroep, vraagt u een openbaar IP-adres aan, maakt u een virtueel netwerk en subnet en maakt u een virtuele netwerkgateway in Azure. De gateway wordt 'myNGW' genoemd in de resourcegroep 'vnet-gateway' in de locatie 'UK - west' met de eerder gemaakte IP-configuraties die zijn opgeslagen in de variabele 'ngwIPConfig', het gatewaytype 'VPN', het vpn-type 'RouteBased' en de sku 'Basic'. Er wordt ook een externe radius-server met adres TestRadiusServer toegevoegd. Er worden ook aangepaste routes ingesteld die zijn opgegeven door klanten op de gateway.
Voorbeeld 3: Een virtuele netwerkgateway maken met P2S-instellingen
New-AzResourceGroup -Location "UK West" -Name "vnet-gateway"
$subnet = New-AzVirtualNetworkSubnetConfig -Name 'gatewaysubnet' -AddressPrefix '10.254.0.0/27'
$ngwpip = New-AzPublicIpAddress -Name ngwpip -ResourceGroupName "vnet-gateway" -Location "UK West" -AllocationMethod Dynamic
$vnet = New-AzVirtualNetwork -AddressPrefix "10.254.0.0/27" -Location "UK West" -Name vnet-gateway -ResourceGroupName "vnet-gateway" -Subnet $subnet
$subnet = Get-AzVirtualNetworkSubnetConfig -name 'gatewaysubnet' -VirtualNetwork $vnet
$ngwipconfig = New-AzVirtualNetworkGatewayIpConfig -Name ngwipconfig -SubnetId $subnet.Id -PublicIpAddressId $ngwpip.Id
$rootCert = New-AzVpnClientRootCertificate -Name $clientRootCertName -PublicCertData $samplePublicCertData
$vpnclientipsecpolicy = New-AzVpnClientIpsecPolicy -IpsecEncryption AES256 -IpsecIntegrity SHA256 -SALifeTime 86471 -SADataSize 429496 -IkeEncryption AES256 -IkeIntegrity SHA384 -DhGroup DHGroup2 -PfsGroup PFS2
New-AzVirtualNetworkGateway -Name myNGW -ResourceGroupName vnet-gateway -Location "UK West" -IpConfigurations $ngwIpConfig -GatewayType "Vpn" -VpnType "RouteBased" -GatewaySku "VpnGw1" -VpnClientProtocol IkeV2 -VpnClientAddressPool 201.169.0.0/16 -VpnClientRootCertificates $rootCert -VpnClientIpsecPolicy $vpnclientipsecpolicy -CustomRoute 192.168.0.0/24
Met het bovenstaande maakt u een resourcegroep, vraagt u een openbaar IP-adres aan, maakt u een virtueel netwerk en subnet en maakt u een virtuele netwerkgateway met P2S-instellingen, zoals VpnProtocol, VpnClientAddressPool, VpnClientRootCertificates, VpnClientIpsecPolicy, enzovoort in Azure.
De gateway wordt 'myNGW' genoemd in de resourcegroep 'vnet-gateway' in de locatie 'UK - west' met de eerder gemaakte IP-configuraties die zijn opgeslagen in de variabele 'ngwIPConfig', het gatewaytype 'VPN', het vpn-type 'RouteBased' en de sku 'VpnGw1'. Vpn-instellingen worden ingesteld op Gateway, zoals VpnProtocol ingesteld als Ikev2, VpnClientAddressPool als '201.169.0.0/16', VpnClientRootCertificate ingesteld als doorgegeven: clientRootCertName en aangepast ipsec-beleid voor vpn doorgegeven in object:$vpnclientipsecpolicy
Er worden ook aangepaste routes ingesteld die zijn opgegeven door klanten op de gateway.
Voorbeeld 4: Maak een virtuele netwerkgateway met AAD-verificatieconfiguratie voor VpnClient van virtuele netwerkgateway.
New-AzResourceGroup -Location "UK West" -Name "vnet-gateway"
New-AzVirtualNetworkSubnetConfig -Name 'gatewaysubnet' -AddressPrefix '10.254.0.0/27'
$ngwpip = New-AzPublicIpAddress -Name ngwpip -ResourceGroupName "vnet-gateway" -Location "UK West" -AllocationMethod Dynamic
$vnet = New-AzVirtualNetwork -AddressPrefix "10.254.0.0/27" -Location "UK West" -Name vnet-gateway -ResourceGroupName "vnet-gateway" -Subnet $subnet
$subnet = Get-AzVirtualNetworkSubnetConfig -name 'gatewaysubnet' -VirtualNetwork $vnet
$ngwipconfig = New-AzVirtualNetworkGatewayIpConfig -Name ngwipconfig -SubnetId $subnet.Id -PublicIpAddressId $ngwpip.Id
$Secure_String_Pwd = ConvertTo-SecureString "TestRadiusServerPassword" -AsPlainText -Force
New-AzVirtualNetworkGateway -Name myNGW -ResourceGroupName vnet-gateway -Location "UK West" -IpConfigurations $ngwIpConfig -GatewayType "Vpn" -VpnType "RouteBased" -GatewaySku "VpnGw1" -VpnClientProtocol OpenVPN -VpnClientAddressPool 201.169.0.0/16 -AadTenantUri "https://login.microsoftonline.com/0ab2c4f4-81e6-44cc-a0b2-b3a47a1443f4" -AadIssuerUri "https://sts.windows.net/0ab2c4f4-81e6-44cc-a0b2-b3a47a1443f4/" -AadAudienceId "a21fce82-76af-45e6-8583-a08cb3b956f9"
Met het bovenstaande maakt u een resourcegroep, vraagt u een openbaar IP-adres aan, maakt u een virtueel netwerk en subnet en maakt u een virtuele netwerkgateway in Azure. De gateway wordt 'myNGW' genoemd in de resourcegroep 'vnet-gateway' in de locatie 'UK - west' met de eerder gemaakte IP-configuraties die zijn opgeslagen in de variabele 'ngwIPConfig', het gatewaytype 'VPN', het vpn-type 'RouteBased' en de sku 'Basic'. Ook worden AAD-verificatieconfiguraties geconfigureerd: AadTenantUri, AadIssuerUri en AadAudienceId voor VpnClient van virtuele netwerkgateway.
Voorbeeld 5: Een virtuele netwerkgateway maken met VpnGatewayGeneration
New-AzResourceGroup -Location "UK West" -Name "vnet-gateway"
$subnet = New-AzVirtualNetworkSubnetConfig -Name 'gatewaysubnet' -AddressPrefix '10.254.0.0/27'
$ngwpip = New-AzPublicIpAddress -Name ngwpip -ResourceGroupName "vnet-gateway" -Location "UK West" -AllocationMethod Dynamic
$vnet = New-AzVirtualNetwork -AddressPrefix "10.254.0.0/27" -Location "UK West" -Name vnet-gateway -ResourceGroupName "vnet-gateway" -Subnet $subnet
$subnet = Get-AzVirtualNetworkSubnetConfig -name 'gatewaysubnet' -VirtualNetwork $vnet
$ngwipconfig = New-AzVirtualNetworkGatewayIpConfig -Name ngwipconfig -SubnetId $subnet.Id -PublicIpAddressId $ngwpip.Id
New-AzVirtualNetworkGateway -Name myNGW -ResourceGroupName vnet-gateway -Location "UK West" -IpConfigurations $ngwIpConfig -GatewayType "Vpn" -VpnType "RouteBased" -GatewaySku "VpnGw4" -VpnGatewayGeneration "Generation2"
Met het bovenstaande maakt u een resourcegroep, vraagt u een openbaar IP-adres aan, maakt u een virtueel netwerk en subnet en maakt u een virtuele netwerkgateway in Azure. De gateway wordt 'myNGW' genoemd in de resourcegroep 'vnet-gateway' op de locatie 'UK - west' met de eerder gemaakte IP-configuraties die zijn opgeslagen in de variabele 'ngwIPConfig', het gatewaytype 'VPN', het vpn-type 'RouteBased', de sku 'VpnGw4' en VpnGateway Generation2 ingeschakeld.
Voorbeeld 6: Een virtuele netwerkgateway maken met IpConfigurationBgpPeeringAddresses
New-AzResourceGroup -Location "UK West" -Name "resourcegroup1"
$subnet = New-AzVirtualNetworkSubnetConfig -Name 'gatewaysubnet' -AddressPrefix '10.254.0.0/27'
$ngwpip = New-AzPublicIpAddress -Name ngwpip -ResourceGroupName "resourcegroup1" -Location "UK West" -AllocationMethod Dynamic
$vnet = New-AzVirtualNetwork -AddressPrefix "10.254.0.0/27" -Location "UK West" -Name vnet-gateway -ResourceGroupName "resourcegroup1" -Subnet $subnet
$subnet = Get-AzVirtualNetworkSubnetConfig -name 'gatewaysubnet' -VirtualNetwork $vnet
$ngwipconfig = New-AzVirtualNetworkGatewayIpConfig -Name ipconfig1 -SubnetId $subnet.Id -PublicIpAddressId $ngwpip.Id
$ipconfigurationId1 = $ngwipconfig.Id
$addresslist1 = @('169.254.21.10')
$gw1ipconfBgp1 = New-AzIpConfigurationBgpPeeringAddressObject -IpConfigurationId $ipconfigurationId1 -CustomAddress $addresslist1
New-AzVirtualNetworkGateway -Name gateway1 -ResourceGroupName vnet-gateway -Location "UK West" -IpConfigurations $ngwIpConfig -IpConfigurationBgpPeeringAddresses $gw1ipconfBgp1 -GatewayType "Vpn" -VpnType "RouteBased" -GatewaySku "VpnGw4" -VpnGatewayGeneration "Generation2"
Met het bovenstaande maakt u een resourcegroep, vraagt u een openbaar IP-adres aan, maakt u een virtueel netwerk en subnet en maakt u een virtuele netwerkgateway in Azure. ipconfigurationId1 van gateway-ipconfiguration zojuist gemaakt en opgeslagen in ngwipconfig. De gateway wordt 'gateway1' genoemd in de resourcegroep 'resourcegroup1resourcegroup1' in de locatie 'UK - west' met het eerder gemaakte IP-configuraties Bgppeering-adres dat is opgeslagen in de variabele 'gw1ipconfBgp1', het gatewaytype 'VPN', het VPN-type 'RouteBased', de sku 'VpnGw4' en VpnGateway Generation2 ingeschakeld.
Voorbeeld 7: Een virtuele netwerkgateway maken met NatRules
New-AzResourceGroup -Location "UK West" -Name "resourcegroup1"
$subnet = New-AzVirtualNetworkSubnetConfig -Name 'gatewaysubnet' -AddressPrefix '10.254.0.0/27'
$ngwpip = New-AzPublicIpAddress -Name ngwpip -ResourceGroupName "resourcegroup1" -Location "UK West" -AllocationMethod Dynamic
$vnet = New-AzVirtualNetwork -AddressPrefix "10.254.0.0/27" -Location "UK West" -Name vnet-gateway -ResourceGroupName "resourcegroup1" -Subnet $subnet
$subnet = Get-AzVirtualNetworkSubnetConfig -name 'gatewaysubnet' -VirtualNetwork $vnet
$ngwipconfig = New-AzVirtualNetworkGatewayIpConfig -Name ipconfig1 -SubnetId $subnet.Id -PublicIpAddressId $ngwpip.Id
$natRule = New-AzVirtualNetworkGatewayNatRule -Name "natRule1" -Type "Static" -Mode "IngressSnat" -InternalMapping @("25.0.0.0/16") -ExternalMapping @("30.0.0.0/16")
New-AzVirtualNetworkGateway -Name gateway1 -ResourceGroupName vnet-gateway -Location "UK West" -IpConfigurations $ngwIpConfig -GatewayType "Vpn" -VpnType "RouteBased" -GatewaySku "VpnGw4" -VpnGatewayGeneration "Generation2" -NatRule $natRule -EnableBgpRouteTranslationForNat
Met het bovenstaande maakt u een resourcegroep, vraagt u een openbaar IP-adres aan, maakt u een virtueel netwerk en subnet en maakt u een virtuele netwerkgateway in Azure. ipconfigurationId1 van gateway-ipconfiguration zojuist gemaakt en opgeslagen in ngwipconfig. De gateway wordt 'gateway1' genoemd in de resourcegroep 'resourcegroup1resourcegroup1' in de locatie 'UK West' New virtualNetworkGateway NatRule wordt opgeslagen in de variabele NatRule het gatewaytype 'VPN', het VPN-type 'RouteBased', de sku 'VpnGw4' en VpnGateway Generation2 ingeschakeld en BgpRouteTranslationForNat ingeschakeld.
Parameters
-AadAudienceId
P2S AAD-verificatieoptie: AadAudienceId.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-AadIssuerUri
P2S AAD-verificatieoptie: AadIssuerUri.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-AadTenantUri
P2S AAD-verificatieoptie: AadTenantUri.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-AsJob
Cmdlet op de achtergrond uitvoeren
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Asn
De ASN van de virtuele netwerkgateway voor BGP via VPN
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ClientConnectionConfiguration
P2S Client Verbinding maken ion Configuration die assiociate tussen adres en beleidsgroep
Type: | PSClientConnectionConfiguration[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Confirm
Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CustomRoute
Aangepaste routes AddressPool die is opgegeven door de klant
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisableIPsecProtection
Met de vlag wordt IPsec-beveiliging op VirtualNetworkGateway uitgeschakeld.
Type: | Boolean |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-EnableActiveActiveFeature
Vlag om de functie Actief actief in te schakelen op de gateway van het virtuele netwerk
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnableBgp
EnableBgp-vlag
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-EnableBgpRouteTranslationForNat
Vlag om BgpRouteTranslationForNat in te schakelen op deze VirtualNetworkGateway.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnablePrivateIpAddress
Vlag om privé-IPAddress in te schakelen op virtuele netwerkgateway
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ExtendedLocation
De uitgebreide locatie van deze virtuele netwerkgateway
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Force
Vraag niet om bevestiging als u een resource wilt overschrijven
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GatewayDefaultSite
GatewayDefaultSite
Type: | PSLocalNetworkGateway |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-GatewaySku
De gateway-SKU-laag
Type: | String |
Accepted values: | Basic, Standard, HighPerformance, UltraPerformance, VpnGw1, VpnGw2, VpnGw3, VpnGw4, VpnGw5, VpnGw1AZ, VpnGw2AZ, VpnGw3AZ, VpnGw4AZ, VpnGw5AZ, ErGw1AZ, ErGw2AZ, ErGw3AZ |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-GatewayType
Het type van deze virtuele netwerkgateway: Vpn, ExpressRoute
Type: | String |
Accepted values: | Vpn, ExpressRoute, LocalGateway |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-IpConfigurationBgpPeeringAddresses
De BgpPeeringAddresses voor virtual network gateway bgpsettings.
Type: | PSIpConfigurationBgpPeeringAddress[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-IpConfigurations
De IpConfigurations voor de gateway van het virtuele netwerk.
Type: | PSVirtualNetworkGatewayIpConfiguration[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Location
location.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
De resourcenaam.
Type: | String |
Aliases: | ResourceName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-NatRule
De NatRules voor virtuele netwerkgateway.
Type: | PSVirtualNetworkGatewayNatRule[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PeerWeight
Het gewicht dat is toegevoegd aan routes die via BGP zijn geleerd via deze virtuele netwerkgateway
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RadiusServerAddress
P2S External Radius-serveradres.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RadiusServerList
P2S meerdere externe Radius-serverservers.
Type: | PSRadiusServer[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RadiusServerSecret
P2S External Radius-servergeheim.
Type: | SecureString |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
De naam van de resourcegroep.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Tag
Een hashtabel die resourcetags vertegenwoordigt.
Type: | Hashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VirtualNetworkGatewayPolicyGroup
P2S-beleidsgroep toegevoegd aan deze gateway
Type: | PSVirtualNetworkGatewayPolicyGroup[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VNetExtendedLocationResourceId
VNetExtendedLocationResourceId voor virtuele netwerkgateway.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VpnAuthenticationType
De lijst met P2S VPN-clientverificatietypen.
Type: | String[] |
Accepted values: | Certificate, Radius, AAD |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VpnClientAddressPool
P2S VpnClient AddressPool
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VpnClientIpsecPolicy
Een lijst met IPSec-beleidsregels voor P2S VPN-clienttunnelprotocollen.
Type: | PSIpsecPolicy[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VpnClientProtocol
De lijst met P2S VPN-clienttunnelprotocollen
Type: | String[] |
Accepted values: | SSTP, IkeV2, OpenVPN |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VpnClientRevokedCertificates
De lijst met VpnClientCertificates die moet worden ingetrokken.
Type: | PSVpnClientRevokedCertificate[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VpnClientRootCertificates
De lijst met VpnClientRootCertificates die moet worden toegevoegd.
Type: | PSVpnClientRootCertificate[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VpnGatewayGeneration
De generatie voor deze VirtualNetwork VPN-gateway. Moet geen zijn als GatewayType geen VPN is.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VpnType
Het type Vpn:PolicyBased/RouteBased
Type: | String |
Accepted values: | PolicyBased, RouteBased |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Invoerwaarden
PSVirtualNetworkGatewayIpConfiguration[]
String[]
PSVpnClientRevokedCertificate[]
PSIpConfigurationBgpPeeringAddress[]
PSVirtualNetworkGatewayNatRule[]
Uitvoerwaarden
Azure PowerShell
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor