Microsoft Azure Environments API

The Environments API from Microsoft Azure, for environments.

GitHub OpenAPI
Business capability
Environment Management BC-4210.20

Operations 29

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /environments List deployment environments across all workspaces · Microsoft Azure Get Environments #
Ask an LLM
“Can I see every deployment environment I have across all dev center workspaces at once?”
“What query options page through the full cross-workspace environment list?”
Tell an agent
List all my deployment environments across every workspace.
List the first {top} deployment environments across all workspaces.
GET /projects/{projectName}/environments List the deployment environments in a dev center project · Microsoft Azure Get Projects Projectname Environments #
Ask an LLM
“Which deployment environments exist in my dev center project, regardless of owner?”
“How do I see all environments that belong to one dev center project?”
Tell an agent
List every deployment environment in dev center project {project}.
Show all project-level environments in the dev center, for all users.
GET /projects/{projectName}/users/{userId}/environments List a user's deployment environments in a project · Microsoft Azure Get Projects Projectname Users Userid Environments #
Ask an LLM
“Which deployment environments does a specific user own in a dev center project?”
“How can I find the environments one developer has created in a project?”
Tell an agent
List the deployment environments owned by user {user} in dev center project {project}.
Show only my own environments in this dev center project.
GET /projects/{projectName}/users/{userId}/environments/{environmentName} Get a user's deployment environment · Microsoft Azure Get Projects Projectname Users Userid Environments… #
Ask an LLM
“How do I look up the details of one deployment environment a user owns?”
“What is the provisioning state of a specific dev center environment?”
Tell an agent
Get deployment environment {environmentName} for user {user} in project {project}.
Show the provisioning state of dev center environment {environmentName}.
PUT /projects/{projectName}/users/{userId}/environments/{environmentName} Create or replace a deployment environment · Microsoft Azure Put Projects Projectname Users Userid Environments… #
Ask an LLM
“How do I spin up a new deployment environment from a catalog environment definition?”
“Which environment type and catalog must I pick when creating a dev center environment?”
Tell an agent
Create deployment environment {environmentName} from definition {environmentDefinitionName} in catalog {catalogName} as type {environmentType}.
Replace user {user}'s environment {environmentName} in project {project} using catalog {catalogName} and definition {environmentDefinitionName}.
DELETE /projects/{projectName}/users/{userId}/environments/{environmentName} Delete a deployment environment and its resources · Microsoft Azure Delete Projects Projectname Users Userid Environments… #
Ask an LLM
“Can I tear down a dev center deployment environment along with all the resources it created?”
“What gets removed when I delete a user's deployment environment?”
Tell an agent destructive · confirm first
Delete dev center deployment environment {environmentName} and all its resources.
Tear down user {user}'s deployment environment {environmentName} in project {project}.
GET /projects/{projectName}/users/{userId}/environments/{environmentName}/operations List recent operations on a deployment environment · Microsoft Azure Get Projects Projectname Users Userid Environments… #
Ask an LLM
“What actions have run against my deployment environment in the last 90 days?”
“How far back does the operation history for a dev center environment go?”
Tell an agent
List the operations run on deployment environment {environmentName} in the past 90 days.
Show the action history for user {user}'s environment {environmentName} in project {project}.
GET /projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId} Get the result of a deployment environment operation · Microsoft Azure Get Projects Projectname Users Userid Environments… #
Ask an LLM
“How do I check whether a specific action on my deployment environment succeeded?”
“Where can I see the outcome of one environment operation by its ID?”
Tell an agent
Get the result of operation {operationId} on deployment environment {environmentName}.
Check the status of action {operationId} on user {user}'s environment {environmentName} in project {project}.
GET /projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs Get logs for a deployment environment operation · Microsoft Azure Get Projects Projectname Users Userid Environments… #
Ask an LLM
“Can I read the deployment logs for an action that ran on my dev center environment?”
“Where do I find the log output of a failed environment operation?”
Tell an agent
Get the logs for operation {operationId} on deployment environment {environmentName}.
Download log output of operation {operationId} on {environmentName}, owned by {user} in project {project}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments List environments in a DevTest Labs user profile · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which environments does a user have in my DevTest Labs lab?”
“Can I filter or sort the DevTest Labs environments in someone's user profile?”
Tell an agent
List DevTest Labs environments for user {userName} in lab {labName}, resource group {resourceGroupName}, subscription {subscriptionId}.
Show the top {top} environments of user {userName} in DevTest lab {labName} in group {resourceGroupName}, filtered by {filter}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name} Get a DevTest Labs environment · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I read the details of one environment in a DevTest Labs user profile?”
“What properties does a single DevTest Labs environment expose?”
Tell an agent
Get DevTest Labs environment {name} of user {userName} in lab {labName}, group {resourceGroupName}, subscription {subscriptionId}.
Show the DevTest lab {labName} environment {name} belonging to {userName} in {resourceGroupName}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name} Create or replace a DevTest Labs environment · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I deploy a new environment into a user's DevTest Labs profile?”
“Why does creating a DevTest Labs environment take a while to finish?”
Tell an agent
Create DevTest Labs environment {name} for {userName} in lab {labName} ({subscriptionId}/{resourceGroupName}) with properties {properties}.
Replace the DevTest lab {labName} environment {name} for {userName} in {resourceGroupName}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name} Delete a DevTest Labs environment · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I remove an environment from a user's DevTest Labs profile?”
“How long does deleting a DevTest Labs environment usually take?”
Tell an agent destructive · confirm first
Delete DevTest Labs environment {name} of user {userName} in lab {labName}, group {resourceGroupName}, subscription {subscriptionId}.
Remove the DevTest lab {labName} environment {name} owned by {userName} in {resourceGroupName}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name} Update tags on a DevTest Labs environment · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I change only the tags on a DevTest Labs environment?”
“Which DevTest Labs environment properties can be modified after creation?”
Tell an agent
Set tags {tags} on DevTest Labs environment {name} of {userName} in lab {labName} ({subscriptionId}/{resourceGroupName}).
Retag DevTest lab {labName} environment {name} of {userName} in {resourceGroupName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments List Lab Services environments in an environment setting · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which student environments exist under a Lab Services environment setting?”
“Can I filter or order the environments in a classroom lab's environment setting?”
Tell an agent
List Lab Services environments in {subscriptionId}/{resourceGroupName}, lab account {labAccountName}, lab {labName}, setting {environmentSettingName}.
Show the first {top} classroom lab environments in setting {environmentSettingName} of lab {labName}, account {labAccountName}, group {resourceGroupName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName} Get a Lab Services environment · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I look up one classroom lab environment under an environment setting?”
“What details does a single Lab Services environment return?”
Tell an agent
Get Lab Services environment {environmentName} under {subscriptionId}/{resourceGroupName}/{labAccountName}/{labName}/{environmentSettingName}.
Show classroom lab environment {environmentName} under setting {environmentSettingName} in lab {labName} ({labAccountName}, {resourceGroupName}).
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName} Create or replace a Lab Services environment · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I add a new environment to a classroom lab's environment setting?”
“Can I overwrite an existing Lab Services environment with new properties?”
Tell an agent
Create Lab Services environment {environmentName} under {subscriptionId}/{resourceGroupName}/{labAccountName}/{labName}/{environmentSettingName}.
Replace classroom lab environment {environmentName} under setting {environmentSettingName} in lab {labName} ({labAccountName}, {resourceGroupName}).
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName} Delete a Lab Services environment · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I remove a student environment from a Lab Services environment setting?”
“What happens when I delete a classroom lab environment?”
Tell an agent destructive · confirm first
Delete Lab Services environment {environmentName} under {subscriptionId}/{resourceGroupName}/{labAccountName}/{labName}/{environmentSettingName}.
Remove classroom lab environment {environmentName} from setting {environmentSettingName} in lab {labName} ({labAccountName}, {resourceGroupName}).
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName} Modify a Lab Services environment · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I change properties of an existing classroom lab environment?”
“Can I patch tags or location on a Lab Services environment?”
Tell an agent
Update Lab Services environment {environmentName} under {subscriptionId}/{resourceGroupName}/{labAccountName}/{labName}/{environmentSettingName}.
Patch tags {tags} onto classroom lab environment {environmentName} in lab {labName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}/claim Claim a Lab Services environment for a user · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How does a student claim an available classroom lab environment?”
“Can I assign a Lab Services environment to myself?”
Tell an agent
Claim Lab Services environment {environmentName} under {subscriptionId}/{resourceGroupName}/{labAccountName}/{labName}/{environmentSettingName}.
Assign classroom lab environment {environmentName} under setting {environmentSettingName} in lab {labName} ({labAccountName}, {resourceGroupName}) to me.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}/resetPassword Reset the user password on a Lab Services environment · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“I forgot my classroom lab VM password; can it be reset?”
“What do I need to supply to reset the password on a Lab Services environment?”
Tell an agent
Reset the lab password on environment {environmentName} under {subscriptionId}/{resourceGroupName}/{labAccountName}/{labName}/{environmentSettingName}.
Set classroom lab password {password} for {username} on environment ID {environmentId}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}/start Start a Lab Services environment · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I power on all the resources in my classroom lab environment?”
“Does starting a Lab Services environment start every resource inside it?”
Tell an agent
Start Lab Services environment {environmentName} under {subscriptionId}/{resourceGroupName}/{labAccountName}/{labName}/{environmentSettingName}.
Power on classroom lab environment {environmentName} under setting {environmentSettingName} in lab {labName} ({labAccountName}, {resourceGroupName}).
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts/{labAccountName}/labs/{labName}/environmentsettings/{environmentSettingName}/environments/{environmentName}/stop Stop a Lab Services environment · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I shut down a classroom lab environment to stop paying for it?”
“Does stopping a Lab Services environment stop all its resources?”
Tell an agent
Stop Lab Services environment {environmentName} under {subscriptionId}/{resourceGroupName}/{labAccountName}/{labName}/{environmentSettingName}.
Shut down classroom lab environment {environmentName} under setting {environmentSettingName} in lab {labName} ({labAccountName}, {resourceGroupName}).
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName} Create or update a Time Series Insights environment · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I provision a new Time Series Insights environment with a SKU and location?”
“Which kind and SKU are required to create a Time Series Insights environment?”
Tell an agent
Create Time Series Insights environment {environmentName} in {subscriptionId}/{resourceGroupName}: kind {kind}, SKU {sku}, location {location}.
Provision a TSI environment named {environmentName} in resource group {resourceGroupName} located in {location} with SKU {sku} and kind {kind}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName} Get a Time Series Insights environment · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I look up a Time Series Insights environment by name?”
“Can I expand extra details when fetching a Time Series Insights environment?”
Tell an agent
Get Time Series Insights environment {environmentName} in resource group {resourceGroupName}, subscription {subscriptionId}.
Show the TSI environment {environmentName} in {resourceGroupName} expanded with {expand}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName} Update a Time Series Insights environment · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I change tags on an existing Time Series Insights environment?”
“Can I patch a Time Series Insights environment without recreating it?”
Tell an agent
Update Time Series Insights environment {environmentName} in {subscriptionId}/{resourceGroupName} with kind {kind} and tags {tags}.
Patch the TSI environment {environmentName} in resource group {resourceGroupName} as kind {kind}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName} Delete a Time Series Insights environment · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I delete a Time Series Insights environment I no longer need?”
“What do I need to remove a Time Series Insights environment from a resource group?”
Tell an agent destructive · confirm first
Delete Time Series Insights environment {environmentName} in resource group {resourceGroupName}, subscription {subscriptionId}.
Remove the TSI environment {environmentName} from {resourceGroupName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments List Time Series Insights environments in a resource group · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which Time Series Insights environments live in a given resource group?”
“How do I inventory TSI environments scoped to one resource group?”
Tell an agent
List Time Series Insights environments in resource group {resourceGroupName} of subscription {subscriptionId}.
Show every TSI environment inside {resourceGroupName}.
GET /subscriptions/{subscriptionId}/providers/Microsoft.TimeSeriesInsights/environments List Time Series Insights environments in a subscription · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“What Time Series Insights environments exist anywhere in my subscription?”
“Can I list TSI environments across all resource groups at once?”
Tell an agent
List all Time Series Insights environments in subscription {subscriptionId}.
Show every TSI environment across all resource groups in the subscription.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-environments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-environments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure API Center Data Environments API
  version: 2024-02-01-preview
  description: Data API introduces endpoints to manage your API Center resources.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
security:
- AadOauth2Auth:
  - https://azure-apicenter.net/user_impersonation
tags:


# --- truncated at 32 KB (71 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-azure/openapi/microsoft-azure-environments-api-openapi.yml