Skip to main content

slots

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

Overview

Nameslots
TypeResource
Idazure.app_service.slots

Fields

NameDatatypeDescription
idstringResource Id.
namestringResource Name.
extendedLocationobjectExtended Location.
identityobjectManaged service identity.
kindstringKind of resource.
locationstringResource Location.
propertiesobjectSite resource specific properties
tagsobjectResource tags.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, slot, subscriptionIdDescription for Gets the details of a web, mobile, or API app.
listSELECTname, resourceGroupName, subscriptionIdDescription for Gets an app's deployment slots.
create_or_updateINSERTname, resourceGroupName, slot, subscriptionIdDescription for Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.
deleteDELETEname, resourceGroupName, slot, subscriptionIdDescription for Deletes a web, mobile, or API app, or one of the deployment slots.
updateUPDATEname, resourceGroupName, slot, subscriptionIdDescription for Creates a new web, mobile, or API app in an existing resource group, or updates an existing app.

SELECT examples

Description for Gets an app's deployment slots.

SELECT
id,
name,
extendedLocation,
identity,
kind,
location,
properties,
tags,
type
FROM azure.app_service.slots
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.app_service.slots (
name,
resourceGroupName,
slot,
subscriptionId,
kind,
location,
tags,
properties,
identity,
extendedLocation
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ slot }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ identity }}',
'{{ extendedLocation }}'
;

UPDATE example

Updates a slots resource.

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

DELETE example

Deletes the specified slots resource.

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