Skip to main content

vnet_connections

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

Overview

Namevnet_connections
TypeResource
Idazure.app_service.vnet_connections

Fields

NameDatatypeDescription
idtextResource Id.
nametextResource Name.
cert_blobtextfield from the properties object
cert_thumbprinttextfield from the properties object
dns_serverstextfield from the properties object
is_swifttextfield from the properties object
kindtextKind of resource.
resourceGroupNametextfield from the properties object
resync_requiredtextfield from the properties object
routestextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type.
vnetNametextfield from the properties object
vnet_resource_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionId, vnetNameDescription for Gets a virtual network the app (or deployment slot) is connected to by name.
listSELECTname, resourceGroupName, subscriptionIdDescription for Gets the virtual networks the app (or deployment slot) is connected to.
create_or_updateINSERTname, resourceGroupName, subscriptionId, vnetNameDescription for Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
deleteDELETEname, resourceGroupName, subscriptionId, vnetNameDescription for Deletes a connection from an app (or deployment slot to a named virtual network.
updateUPDATEname, resourceGroupName, subscriptionId, vnetNameDescription for Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).

SELECT examples

Description for Gets the virtual networks the app (or deployment slot) is connected to.

SELECT
id,
name,
cert_blob,
cert_thumbprint,
dns_servers,
is_swift,
kind,
resourceGroupName,
resync_required,
routes,
subscriptionId,
type,
vnetName,
vnet_resource_id
FROM azure.app_service.vw_vnet_connections
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.app_service.vnet_connections (
name,
resourceGroupName,
subscriptionId,
vnetName,
kind,
properties
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vnetName }}',
'{{ kind }}',
'{{ properties }}'
;

UPDATE example

Updates a vnet_connections resource.

/*+ update */
UPDATE azure.app_service.vnet_connections
SET
kind = '{{ kind }}',
properties = '{{ properties }}'
WHERE
name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vnetName = '{{ vnetName }}';

DELETE example

Deletes the specified vnet_connections resource.

/*+ delete */
DELETE FROM azure.app_service.vnet_connections
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vnetName = '{{ vnetName }}';