Skip to main content

all_environments

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

Overview

Nameall_environments
TypeResource
Idazure.developer_devcenter.all_environments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringEnvironment name. Required.
catalogNamestringName of the catalog. Required.
environmentDefinitionNamestringName of the environment definition. Required.
environmentTypestringEnvironment type. Required.
errorobjectProvisioning error details. Populated only for error states.
parametersobjectParameters object for the environment.
provisioningStatestringThe provisioning state of the environment. Known values are: "Succeeded", "Failed", "Canceled", "Creating", "Accepted", "Deleting", "Updating", "Preparing", "Running", "Syncing", "MovingResources", "TransientFailure", and "StorageProvisioningFailed". (Succeeded, Failed, Canceled, Creating, Accepted, Deleting, Updating, Preparing, Running, Syncing, MovingResources, TransientFailure, StorageProvisioningFailed)
resourceGroupIdstringThe identifier of the resource group containing the environment's resources.
userstringThe AAD object id of the owner of this Environment.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_all_environmentsselectproject_name, endpointLists the environments 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 the environments for a project.

SELECT
name,
catalogName,
environmentDefinitionName,
environmentType,
error,
parameters,
provisioningState,
resourceGroupId,
user
FROM azure.developer_devcenter.all_environments
WHERE project_name = '{{ project_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;