Skip to main content

virtual_network_gateways

Creates, updates, deletes, gets or lists a virtual_network_gateways resource.

Overview

Namevirtual_network_gateways
TypeResource
Idazure.network.virtual_network_gateways

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
active_activetextfield from the properties object
admin_statetextfield from the properties object
allow_remote_vnet_traffictextfield from the properties object
allow_virtual_wan_traffictextfield from the properties object
auto_scale_configurationtextfield from the properties object
bgp_settingstextfield from the properties object
custom_routestextfield from the properties object
disable_ip_sec_replay_protectiontextfield from the properties object
enable_bgptextfield from the properties object
enable_bgp_route_translation_for_nattextfield from the properties object
enable_dns_forwardingtextfield from the properties object
enable_private_ip_addresstextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
extended_locationtextfield from the properties object
gateway_default_sitetextfield from the properties object
gateway_typetextfield from the properties object
identitytextIdentity for the resource.
inbound_dns_forwarding_endpointtextfield from the properties object
ip_configurationstextfield from the properties object
locationtextResource location.
nat_rulestextfield from the properties object
provisioning_statetextfield from the properties object
resiliency_modeltextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
skutextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.
virtualNetworkGatewayNametextfield from the properties object
virtual_network_gateway_policy_groupstextfield from the properties object
vnet_extended_location_resource_idtextfield from the properties object
vpn_client_configurationtextfield from the properties object
vpn_gateway_generationtextfield from the properties object
vpn_typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, virtualNetworkGatewayNameGets the specified virtual network gateway by resource group.
listSELECTresourceGroupName, subscriptionIdGets all virtual network gateways by resource group.
create_or_updateINSERTresourceGroupName, subscriptionId, virtualNetworkGatewayName, data__propertiesCreates or updates a virtual network gateway in the specified resource group.
deleteDELETEresourceGroupName, subscriptionId, virtualNetworkGatewayNameDeletes the specified virtual network gateway.
disconnect_virtual_network_gateway_vpn_connectionsEXECresourceGroupName, subscriptionId, virtualNetworkGatewayNameDisconnect vpn connections of virtual network gateway in the specified resource group.
generate_vpn_profileEXECresourceGroupName, subscriptionId, virtualNetworkGatewayNameGenerates VPN profile for P2S client of the virtual network gateway in the specified resource group. Used for IKEV2 and radius based authentication.
generatevpnclientpackageEXECresourceGroupName, subscriptionId, virtualNetworkGatewayNameGenerates VPN client package for P2S client of the virtual network gateway in the specified resource group.
resetEXECresourceGroupName, subscriptionId, virtualNetworkGatewayNameResets the primary of the virtual network gateway in the specified resource group.
reset_vpn_client_shared_keyEXECresourceGroupName, subscriptionId, virtualNetworkGatewayNameResets the VPN client shared key of the virtual network gateway in the specified resource group.
set_vpnclient_ipsec_parametersEXECresourceGroupName, subscriptionId, virtualNetworkGatewayName, data__dhGroup, data__ikeEncryption, data__ikeIntegrity, data__ipsecEncryption, data__ipsecIntegrity, data__pfsGroup, data__saDataSizeKilobytes, data__saLifeTimeSecondsThe Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy for P2S client of virtual network gateway in the specified resource group through Network resource provider.
start_packet_captureEXECresourceGroupName, subscriptionId, virtualNetworkGatewayNameStarts packet capture on virtual network gateway in the specified resource group.
stop_packet_captureEXECresourceGroupName, subscriptionId, virtualNetworkGatewayNameStops packet capture on virtual network gateway in the specified resource group.
supported_vpn_devicesEXECresourceGroupName, subscriptionId, virtualNetworkGatewayNameGets a xml format representation for supported vpn devices.
update_tagsEXECresourceGroupName, subscriptionId, virtualNetworkGatewayNameUpdates a virtual network gateway tags.
vpn_device_configuration_scriptEXECresourceGroupName, subscriptionId, virtualNetworkGatewayConnectionNameGets a xml format representation for vpn device configuration script.

SELECT examples

Gets all virtual network gateways by resource group.

SELECT
id,
name,
active_active,
admin_state,
allow_remote_vnet_traffic,
allow_virtual_wan_traffic,
auto_scale_configuration,
bgp_settings,
custom_routes,
disable_ip_sec_replay_protection,
enable_bgp,
enable_bgp_route_translation_for_nat,
enable_dns_forwarding,
enable_private_ip_address,
etag,
extended_location,
gateway_default_site,
gateway_type,
identity,
inbound_dns_forwarding_endpoint,
ip_configurations,
location,
nat_rules,
provisioning_state,
resiliency_model,
resourceGroupName,
resource_guid,
sku,
subscriptionId,
tags,
type,
virtualNetworkGatewayName,
virtual_network_gateway_policy_groups,
vnet_extended_location_resource_id,
vpn_client_configuration,
vpn_gateway_generation,
vpn_type
FROM azure.network.vw_virtual_network_gateways
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new virtual_network_gateways resource.

/*+ create */
INSERT INTO azure.network.virtual_network_gateways (
resourceGroupName,
subscriptionId,
virtualNetworkGatewayName,
data__properties,
properties,
extendedLocation,
identity,
id,
location,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ virtualNetworkGatewayName }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ identity }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified virtual_network_gateways resource.

/*+ delete */
DELETE FROM azure.network.virtual_network_gateways
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkGatewayName = '{{ virtualNetworkGatewayName }}';