Skip to main content

source_controls

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

Overview

Namesource_controls
TypeResource
Idazure.app_service.source_controls

Fields

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

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionIdDescription for Gets the source control configuration of an app.
listSELECTDescription for Gets the source controls available for Azure websites.
create_or_updateINSERTname, resourceGroupName, subscriptionIdDescription for Updates the source control configuration of an app.
deleteDELETEname, resourceGroupName, subscriptionIdDescription for Deletes the source control configuration of an app.
updateUPDATEname, resourceGroupName, subscriptionIdDescription for Updates the source control configuration of an app.

SELECT examples

Description for Gets the source controls available for Azure websites.

SELECT
id,
name,
kind,
properties,
type
FROM azure.app_service.source_controls
;

INSERT example

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

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

UPDATE example

Updates a source_controls resource.

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

DELETE example

Deletes the specified source_controls resource.

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