source_control_slots
Creates, updates, deletes, gets or lists a source_control_slots
resource.
Overview
Name | source_control_slots |
Type | Resource |
Id | azure.app_service.source_control_slots |
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, slot, subscriptionId | Description for Gets the source control configuration of an app. |
create_or_update | INSERT | name, resourceGroupName, slot, subscriptionId | Description for Updates the source control configuration of an app. |
delete | DELETE | name, resourceGroupName, slot, subscriptionId | Description for Deletes the source control configuration of an app. |
update | UPDATE | name, resourceGroupName, slot, subscriptionId | Description 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.app_service.source_control_slots (
name,
resourceGroupName,
slot,
subscriptionId,
kind,
properties
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ slot }}',
'{{ 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_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 }}';