Skip to main content

projects

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

Overview

Nameprojects
TypeResource
Idazure.devcenter.projects

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.
catalogSettingsobjectSettings to be used when associating a project with a catalog.
descriptionstringDescription of the project.
devCenterIdstringResource Id of an associated DevCenter.
devCenterUristringThe URI of the Dev Center resource this project is associated with.
displayNamestringThe display name of the project.
identityobjectManaged identity properties.
locationstringThe geo-location where the resource lives. Required.
maxDevBoxesPerUserintegerWhen specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This will have no effect on existing Dev Boxes when reduced.
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".
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".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, project_name, subscription_idGets a specific project.
list_by_resource_groupselectresource_group_name, subscription_id$topLists all projects in the resource group.
list_by_subscriptionselectsubscription_id$topLists all projects in the subscription.
create_or_updateinsertresource_group_name, project_name, subscription_id, locationCreates or updates a project.
updateupdateresource_group_name, project_name, subscription_idPartially updates a project.
create_or_updatereplaceresource_group_name, project_name, subscription_id, locationCreates or updates a project.
deletedeleteresource_group_name, project_name, subscription_idDeletes a project resource.

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
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 specific project.

SELECT
id,
name,
catalogSettings,
description,
devCenterId,
devCenterUri,
displayName,
identity,
location,
maxDevBoxesPerUser,
provisioningState,
systemData,
tags,
type
FROM azure.devcenter.projects
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a project.

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

UPDATE examples

Partially updates a project.

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

REPLACE examples

Creates or updates a project.

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

DELETE examples

Deletes a project resource.

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