Skip to main content

source_controls

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

Overview

Namesource_controls
TypeResource
Idazure.container_apps.source_controls

Fields

NameDatatypeDescription
propertiesobjectSourceControl resource specific properties

Methods

NameAccessible byRequired ParamsDescription
getSELECTcontainerAppName, resourceGroupName, sourceControlName, subscriptionId
list_by_container_appSELECTcontainerAppName, resourceGroupName, subscriptionId
create_or_updateINSERTcontainerAppName, resourceGroupName, sourceControlName, subscriptionId, x-ms-github-auxiliaryCreate or update the SourceControl for a Container App.
deleteDELETEcontainerAppName, resourceGroupName, sourceControlName, subscriptionId, x-ms-github-auxiliaryDelete a Container App SourceControl.

SELECT examples

SELECT
properties
FROM azure.container_apps.source_controls
WHERE containerAppName = '{{ containerAppName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.container_apps.source_controls (
containerAppName,
resourceGroupName,
sourceControlName,
subscriptionId,
x-ms-github-auxiliary,
properties
)
SELECT
'{{ containerAppName }}',
'{{ resourceGroupName }}',
'{{ sourceControlName }}',
'{{ subscriptionId }}',
'{{ x-ms-github-auxiliary }}',
'{{ properties }}'
;

DELETE example

Deletes the specified source_controls resource.

/*+ delete */
DELETE FROM azure.container_apps.source_controls
WHERE containerAppName = '{{ containerAppName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND sourceControlName = '{{ sourceControlName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND x-ms-github-auxiliary = '{{ x-ms-github-auxiliary }}';