source_controls
Creates, updates, deletes, gets or lists a source_controls
resource.
Overview
Name | source_controls |
Type | Resource |
Id | azure.container_apps.source_controls |
Fields
Name | Datatype | Description |
---|---|---|
properties | object | SourceControl resource specific properties |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | containerAppName, resourceGroupName, sourceControlName, subscriptionId | |
list_by_container_app | SELECT | containerAppName, resourceGroupName, subscriptionId | |
create_or_update | INSERT | containerAppName, resourceGroupName, sourceControlName, subscriptionId, x-ms-github-auxiliary | Create or update the SourceControl for a Container App. |
delete | DELETE | containerAppName, resourceGroupName, sourceControlName, subscriptionId, x-ms-github-auxiliary | Delete 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: operationState
value: string
- name: repoUrl
value: string
- name: branch
value: string
- name: githubActionConfiguration
value:
- name: registryInfo
value:
- name: registryUrl
value: string
- name: registryUserName
value: string
- name: registryPassword
value: string
- name: azureCredentials
value:
- name: clientId
value: string
- name: clientSecret
value: string
- name: tenantId
value: string
- name: kind
value: string
- name: subscriptionId
value: string
- name: contextPath
value: string
- name: githubPersonalAccessToken
value: string
- name: image
value: string
- name: publishType
value: string
- name: os
value: string
- name: runtimeStack
value: string
- name: runtimeVersion
value: string
- name: buildEnvironmentVariables
value:
- - name: name
value: string
- name: value
value: string
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 }}';