Skip to main content

deployments

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

Overview

Namedeployments
TypeResource
Idazure.spring_apps.deployments

Fields

NameDatatypeDescription
activetextfield from the properties object
appNametextfield from the properties object
deploymentNametextfield from the properties object
deployment_settingstextfield from the properties object
instancestextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
skutextSku of Azure Spring Apps
sourcetextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTappName, deploymentName, resourceGroupName, serviceName, subscriptionIdGet a Deployment and its properties.
listSELECTappName, resourceGroupName, serviceName, subscriptionIdHandles requests to list all resources in an App.
list_for_clusterSELECTresourceGroupName, serviceName, subscriptionIdList deployments for a certain service
create_or_updateINSERTappName, deploymentName, resourceGroupName, serviceName, subscriptionIdCreate a new Deployment or update an exiting Deployment.
deleteDELETEappName, deploymentName, resourceGroupName, serviceName, subscriptionIdOperation to delete a Deployment.
updateUPDATEappName, deploymentName, resourceGroupName, serviceName, subscriptionIdOperation to update an exiting Deployment.
disable_remote_debuggingEXECappName, deploymentName, resourceGroupName, serviceName, subscriptionIdDisable remote debugging.
enable_remote_debuggingEXECappName, deploymentName, resourceGroupName, serviceName, subscriptionIdEnable remote debugging.
generate_heap_dumpEXECappName, deploymentName, resourceGroupName, serviceName, subscriptionIdGenerate Heap Dump
generate_thread_dumpEXECappName, deploymentName, resourceGroupName, serviceName, subscriptionIdGenerate Thread Dump
restartEXECappName, deploymentName, resourceGroupName, serviceName, subscriptionIdRestart the deployment.
startEXECappName, deploymentName, resourceGroupName, serviceName, subscriptionIdStart the deployment.
start_jfrEXECappName, deploymentName, resourceGroupName, serviceName, subscriptionIdStart JFR
stopEXECappName, deploymentName, resourceGroupName, serviceName, subscriptionIdStop the deployment.

SELECT examples

List deployments for a certain service

SELECT
active,
appName,
deploymentName,
deployment_settings,
instances,
provisioning_state,
resourceGroupName,
serviceName,
sku,
source,
status,
subscriptionId
FROM azure.spring_apps.vw_deployments
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.spring_apps.deployments (
appName,
deploymentName,
resourceGroupName,
serviceName,
subscriptionId,
properties,
sku
)
SELECT
'{{ appName }}',
'{{ deploymentName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ sku }}'
;

UPDATE example

Updates a deployments resource.

/*+ update */
UPDATE azure.spring_apps.deployments
SET
properties = '{{ properties }}',
sku = '{{ sku }}'
WHERE
appName = '{{ appName }}'
AND deploymentName = '{{ deploymentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified deployments resource.

/*+ delete */
DELETE FROM azure.spring_apps.deployments
WHERE appName = '{{ appName }}'
AND deploymentName = '{{ deploymentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';