Skip to main content

deployment_slots

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

Overview

Namedeployment_slots
TypeResource
Idazure.app_service.deployment_slots

Fields

NameDatatypeDescription
idstringResource Id.
namestringResource Name.
kindstringKind of resource.
propertiesobjectDeployment resource specific properties
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTid, name, resourceGroupName, slot, subscriptionIdDescription for Get a deployment by its ID for an app, or a deployment slot.
listSELECTname, resourceGroupName, slot, subscriptionIdDescription for List deployments for an app, or a deployment slot.
createINSERTid, name, resourceGroupName, slot, subscriptionIdDescription for Create a deployment for an app, or a deployment slot.
deleteDELETEid, name, resourceGroupName, slot, subscriptionIdDescription for Delete a deployment by its ID for an app, or a deployment slot.

SELECT examples

Description for List deployments for an app, or a deployment slot.

SELECT
id,
name,
kind,
properties,
type
FROM azure.app_service.deployment_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 deployment_slots resource.

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

DELETE example

Deletes the specified deployment_slots resource.

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