Skip to main content

vnet_connection_slots

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

Overview

Namevnet_connection_slots
TypeResource
Idazure.app_service.vnet_connection_slots

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
slottextfield 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, slot, subscriptionId, vnetNameDescription for Gets a virtual network the app (or deployment slot) is connected to by name.
listSELECTname, resourceGroupName, slot, subscriptionIdDescription for Gets the virtual networks the app (or deployment slot) is connected to.
create_or_updateINSERTname, resourceGroupName, slot, subscriptionId, vnetNameDescription for Adds a Virtual Network connection to an app or slot (PUT) or updates the connection properties (PATCH).
deleteDELETEname, resourceGroupName, slot, subscriptionId, vnetNameDescription for Deletes a connection from an app (or deployment slot to a named virtual network.
updateUPDATEname, resourceGroupName, slot, 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,
slot,
subscriptionId,
type,
vnetName,
vnet_resource_id
FROM azure.app_service.vw_vnet_connection_slots
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND slot = '{{ slot }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a vnet_connection_slots resource.

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

DELETE example

Deletes the specified vnet_connection_slots resource.

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