Skip to main content

environment_definitions

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

Overview

Nameenvironment_definitions
TypeResource
Idazure.developer_devcenter.environment_definitions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the environment definition. Required.
namestringName of the environment definition. Required.
catalogNamestringName of the catalog. Required.
descriptionstringA short description of the environment definition.
parametersarrayInput parameters passed to an environment.
parametersSchemastringJSON schema defining the parameters object passed to an environment.
templatePathstringPath to the Environment Definition entrypoint file.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_environment_definitionselectproject_name, catalog_name, definition_name, endpointGet an environment definition from a catalog.
list_environment_definitions_by_catalogselectproject_name, catalog_name, endpointLists all environment definitions available within a catalog.
list_environment_definitionsselectproject_name, endpointLists all environment definitions available 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
catalog_namestringThe name of the catalog. Required.
definition_namestringName of the environment definition. Required.
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

Get an environment definition from a catalog.

SELECT
id,
name,
catalogName,
description,
parameters,
parametersSchema,
templatePath
FROM azure.developer_devcenter.environment_definitions
WHERE project_name = '{{ project_name }}' -- required
AND catalog_name = '{{ catalog_name }}' -- required
AND definition_name = '{{ definition_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;