Skip to main content

environment_types

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

Overview

Nameenvironment_types
TypeResource
Idazure.dev_center.environment_types

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
devCenterNametextfield from the properties object
display_nametextfield from the properties object
environmentTypeNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTdevCenterName, environmentTypeName, resourceGroupName, subscriptionIdGets an environment type.
list_by_dev_centerSELECTdevCenterName, resourceGroupName, subscriptionIdLists environment types for the devcenter.
create_or_updateINSERTdevCenterName, environmentTypeName, resourceGroupName, subscriptionIdCreates or updates an environment type.
deleteDELETEdevCenterName, environmentTypeName, resourceGroupName, subscriptionIdDeletes an environment type.
updateUPDATEdevCenterName, environmentTypeName, resourceGroupName, subscriptionIdPartially updates an environment type.

SELECT examples

Lists environment types for the devcenter.

SELECT
id,
name,
devCenterName,
display_name,
environmentTypeName,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags,
type
FROM azure.dev_center.vw_environment_types
WHERE devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a environment_types resource.

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

DELETE example

Deletes the specified environment_types resource.

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