Skip to main content

environment_types

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

Overview

Nameenvironment_types
TypeResource
Idazure.developer_devcenter.environment_types

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringName of the environment type. Required.
deploymentTargetIdstringId of a subscription or management group that the environment type will be mapped to. The environment's resources will be deployed into this subscription or management group. Required.
statusstringIndicates whether this environment type is enabled for use in this project. Required. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_environment_typesselectproject_name, endpointLists all environment types configured for a project.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
project_namestringThe DevCenter Project upon which to execute operations. Required.

SELECT examples

Lists all environment types configured for a project.

SELECT
name,
deploymentTargetId,
status
FROM azure.developer_devcenter.environment_types
WHERE project_name = '{{ project_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;