Skip to main content

source_control_slots

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

Overview

Namesource_control_slots
TypeResource
Idazure.app_service.source_control_slots

Fields

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

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, slot, subscriptionIdDescription for Gets the source control configuration of an app.
create_or_updateINSERTname, resourceGroupName, slot, subscriptionIdDescription for Updates the source control configuration of an app.
deleteDELETEname, resourceGroupName, slot, subscriptionIdDescription for Deletes the source control configuration of an app.
updateUPDATEname, resourceGroupName, slot, subscriptionIdDescription for Updates the source control configuration of an app.

SELECT examples

Description for Gets the source control configuration of an app.

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

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

UPDATE example

Updates a source_control_slots resource.

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

DELETE example

Deletes the specified source_control_slots resource.

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