Skip to main content

deployments

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

Overview

Namedeployments
TypeResource
Idazure.sphere.deployments

Fields

NameDatatypeDescription
catalogNametextfield from the properties object
deployed_imagestextfield from the properties object
deploymentNametextfield from the properties object
deployment_date_utctextfield from the properties object
deployment_idtextfield from the properties object
deviceGroupNametextfield from the properties object
productNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcatalogName, deploymentName, deviceGroupName, productName, resourceGroupName, subscriptionIdGet a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
list_by_device_groupSELECTcatalogName, deviceGroupName, productName, resourceGroupName, subscriptionIdList Deployment resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
create_or_updateINSERTcatalogName, deploymentName, deviceGroupName, productName, resourceGroupName, subscriptionIdCreate a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.
deleteDELETEcatalogName, deploymentName, deviceGroupName, productName, resourceGroupName, subscriptionIdDelete a Deployment. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.

SELECT examples

List Deployment resources by DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name.

SELECT
catalogName,
deployed_images,
deploymentName,
deployment_date_utc,
deployment_id,
deviceGroupName,
productName,
provisioning_state,
resourceGroupName,
subscriptionId
FROM azure.sphere.vw_deployments
WHERE catalogName = '{{ catalogName }}'
AND deviceGroupName = '{{ deviceGroupName }}'
AND productName = '{{ productName }}'
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.sphere.deployments (
catalogName,
deploymentName,
deviceGroupName,
productName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ catalogName }}',
'{{ deploymentName }}',
'{{ deviceGroupName }}',
'{{ productName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified deployments resource.

/*+ delete */
DELETE FROM azure.sphere.deployments
WHERE catalogName = '{{ catalogName }}'
AND deploymentName = '{{ deploymentName }}'
AND deviceGroupName = '{{ deviceGroupName }}'
AND productName = '{{ productName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';