Skip to main content

project_environment_types

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

Overview

Nameproject_environment_types
TypeResource
Idazure.dev_center.project_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
creator_role_assignmenttextfield from the properties object
deployment_target_idtextfield from the properties object
display_nametextfield from the properties object
environmentTypeNametextfield from the properties object
environment_counttextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
locationtextThe geo-location for the environment type
projectNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield 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"
user_role_assignmentstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTenvironmentTypeName, projectName, resourceGroupName, subscriptionIdGets a project environment type.
listSELECTprojectName, resourceGroupName, subscriptionIdLists environment types for a project.
create_or_updateINSERTenvironmentTypeName, projectName, resourceGroupName, subscriptionIdCreates or updates a project environment type.
deleteDELETEenvironmentTypeName, projectName, resourceGroupName, subscriptionIdDeletes a project environment type.
updateUPDATEenvironmentTypeName, projectName, resourceGroupName, subscriptionIdPartially updates a project environment type.

SELECT examples

Lists environment types for a project.

SELECT
id,
name,
creator_role_assignment,
deployment_target_id,
display_name,
environmentTypeName,
environment_count,
identity,
location,
projectName,
provisioning_state,
resourceGroupName,
status,
subscriptionId,
system_data,
tags,
type,
user_role_assignments
FROM azure.dev_center.vw_project_environment_types
WHERE projectName = '{{ projectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dev_center.project_environment_types (
environmentTypeName,
projectName,
resourceGroupName,
subscriptionId,
properties,
tags,
identity,
location
)
SELECT
'{{ environmentTypeName }}',
'{{ projectName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ identity }}',
'{{ location }}'
;

UPDATE example

Updates a project_environment_types resource.

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

DELETE example

Deletes the specified project_environment_types resource.

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