source_controls
Creates, updates, deletes, gets or lists a source_controls
resource.
Overview
Name | source_controls |
Type | Resource |
Id | azure.app_service.source_controls |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Resource Id. |
name | string | Resource Name. |
kind | string | Kind of resource. |
properties | object | SiteSourceControl resource specific properties |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | name, resourceGroupName, subscriptionId | Description for Gets the source control configuration of an app. |
list | SELECT |
| Description for Gets the source controls available for Azure websites. |
create_or_update | INSERT | name, resourceGroupName, subscriptionId | Description for Updates the source control configuration of an app. |
delete | DELETE | name, resourceGroupName, subscriptionId | Description for Deletes the source control configuration of an app. |
update | UPDATE | name, resourceGroupName, subscriptionId | Description 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.app_service.source_controls (
name,
resourceGroupName,
subscriptionId,
kind,
properties
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: kind
value: string
- name: type
value: string
- name: properties
value:
- name: repoUrl
value: string
- name: branch
value: string
- name: isManualIntegration
value: boolean
- name: isGitHubAction
value: boolean
- name: deploymentRollbackEnabled
value: boolean
- name: isMercurial
value: boolean
- name: gitHubActionConfiguration
value:
- name: codeConfiguration
value:
- name: runtimeStack
value: string
- name: runtimeVersion
value: string
- name: containerConfiguration
value:
- name: serverUrl
value: string
- name: imageName
value: string
- name: username
value: string
- name: password
value: string
- name: isLinux
value: boolean
- name: generateWorkflowFile
value: boolean
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 }}';