Skip to main content

dev_box_definitions

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

Overview

Namedev_box_definitions
TypeResource
Idazure.dev_center.dev_box_definitions

Fields

NameDatatypeDescription
active_image_referencetextfield from the properties object
devBoxDefinitionNametextfield from the properties object
devCenterNametextfield from the properties object
hibernate_supporttextfield from the properties object
image_referencetextfield from the properties object
image_validation_error_detailstextfield from the properties object
image_validation_statustextfield from the properties object
locationtextThe geo-location where the resource lives
os_storage_typetextfield from the properties object
projectNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
validation_statustextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdevBoxDefinitionName, devCenterName, resourceGroupName, subscriptionIdGets a Dev Box definition
get_by_projectSELECTdevBoxDefinitionName, projectName, resourceGroupName, subscriptionIdGets a Dev Box definition configured for a project
list_by_dev_centerSELECTdevCenterName, resourceGroupName, subscriptionIdList Dev Box definitions for a devcenter.
list_by_projectSELECTprojectName, resourceGroupName, subscriptionIdList Dev Box definitions configured for a project.
create_or_updateINSERTdevBoxDefinitionName, devCenterName, resourceGroupName, subscriptionIdCreates or updates a Dev Box definition.
deleteDELETEdevBoxDefinitionName, devCenterName, resourceGroupName, subscriptionIdDeletes a Dev Box definition
updateUPDATEdevBoxDefinitionName, devCenterName, resourceGroupName, subscriptionIdPartially updates a Dev Box definition.

SELECT examples

List Dev Box definitions configured for a project.

SELECT
active_image_reference,
devBoxDefinitionName,
devCenterName,
hibernate_support,
image_reference,
image_validation_error_details,
image_validation_status,
location,
os_storage_type,
projectName,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
tags,
validation_status
FROM azure.dev_center.vw_dev_box_definitions
WHERE projectName = '{{ projectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dev_center.dev_box_definitions (
devBoxDefinitionName,
devCenterName,
resourceGroupName,
subscriptionId,
tags,
location,
properties
)
SELECT
'{{ devBoxDefinitionName }}',
'{{ devCenterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a dev_box_definitions resource.

/*+ update */
UPDATE azure.dev_center.dev_box_definitions
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
devBoxDefinitionName = '{{ devBoxDefinitionName }}'
AND devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified dev_box_definitions resource.

/*+ delete */
DELETE FROM azure.dev_center.dev_box_definitions
WHERE devBoxDefinitionName = '{{ devBoxDefinitionName }}'
AND devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';