Skip to main content

configuration_slots

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

Overview

Nameconfiguration_slots
TypeResource
Idazure.app_service.configuration_slots

Fields

NameDatatypeDescription
idstringResource Id.
namestringResource Name.
kindstringKind of resource.
propertiesobjectConfiguration of an App Service app.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, slot, subscriptionIdDescription for Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.
listSELECTname, resourceGroupName, slot, subscriptionIdDescription for List the configurations of an app
create_or_updateINSERTname, resourceGroupName, slot, subscriptionIdDescription for Updates the configuration of an app.
updateUPDATEname, resourceGroupName, slot, subscriptionIdDescription for Updates the configuration of an app.

SELECT examples

Description for Gets the configuration of an app, such as platform version and bitness, default documents, virtual applications, Always On, etc.

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

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

UPDATE example

Updates a configuration_slots resource.

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