Skip to main content

project_environment_types

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

Overview

Nameproject_environment_types
TypeResource
Idazure.devcenter.project_environment_types

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
namestringThe name of the resource.
creatorRoleAssignmentobjectThe role definition assigned to the environment creator on backing resources.
deploymentTargetIdstringId of a subscription that the environment type will be mapped to. The environment's resources will be deployed into this subscription.
displayNamestringThe display name of the project environment type.
environmentCountintegerThe number of environments of this type.
identityobjectManaged identity properties.
locationstringThe geo-location for the environment type.
provisioningStatestringThe provisioning state of the resource. Known values are: "NotSpecified", "Accepted", "Running", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "Succeeded", "Failed", "Canceled", "MovingResources", "TransientFailure", "RolloutInProgress", and "StorageProvisioningFailed".
statusstringDefines whether this Environment Type can be used in this Project. Known values are: "Enabled" and "Disabled".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
userRoleAssignmentsobjectRole Assignments created on environment backing resources. This is a mapping from a user object ID to an object of role definition IDs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, project_name, environment_type_name, subscription_idGets a project environment type.
listselectresource_group_name, project_name, subscription_id$topLists environment types for a project.
create_or_updateinsertresource_group_name, project_name, environment_type_name, subscription_idCreates or updates a project environment type.
updateupdateresource_group_name, project_name, environment_type_name, subscription_idPartially updates a project environment type.
create_or_updatereplaceresource_group_name, project_name, environment_type_name, subscription_idCreates or updates a project environment type.
deletedeleteresource_group_name, project_name, environment_type_name, subscription_idDeletes a project environment type.

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
environment_type_namestringThe name of the environment type. Required.
project_namestringThe name of the project. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$topintegerThe maximum number of resources to return from the operation. Example: '$top=10'. Default value is None.

SELECT examples

Gets a project environment type.

SELECT
id,
name,
creatorRoleAssignment,
deploymentTargetId,
displayName,
environmentCount,
identity,
location,
provisioningState,
status,
systemData,
tags,
type,
userRoleAssignments
FROM azure.devcenter.project_environment_types
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND environment_type_name = '{{ environment_type_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a project environment type.

INSERT INTO azure.devcenter.project_environment_types (
tags,
identity,
location,
properties,
resource_group_name,
project_name,
environment_type_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ identity }}',
'{{ location }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ project_name }}',
'{{ environment_type_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Partially updates a project environment type.

UPDATE azure.devcenter.project_environment_types
SET
tags = '{{ tags }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND project_name = '{{ project_name }}' --required
AND environment_type_name = '{{ environment_type_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates or updates a project environment type.

REPLACE azure.devcenter.project_environment_types
SET
tags = '{{ tags }}',
identity = '{{ identity }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND project_name = '{{ project_name }}' --required
AND environment_type_name = '{{ environment_type_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a project environment type.

DELETE FROM azure.devcenter.project_environment_types
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND project_name = '{{ project_name }}' --required
AND environment_type_name = '{{ environment_type_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;