Skip to main content

deployments

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

Overview

Namedeployments
TypeResource
Idazure.app_service.deployments

Fields

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

Methods

NameAccessible byRequired ParamsDescription
getSELECTid, name, resourceGroupName, subscriptionIdDescription for Get a deployment by its ID for an app, or a deployment slot.
listSELECTname, resourceGroupName, subscriptionIdDescription for List deployments for an app, or a deployment slot.
createINSERTid, name, resourceGroupName, subscriptionIdDescription for Create a deployment for an app, or a deployment slot.
deleteDELETEid, name, resourceGroupName, subscriptionIdDescription for Delete a deployment by its ID for an app, or a deployment slot.

SELECT examples

Description for List deployments for an app, or a deployment slot.

SELECT
id,
name,
kind,
properties,
type
FROM azure.app_service.deployments
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified deployments resource.

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