Microsoft Azure Environment Operations API

The Environment Operations API from Microsoft Azure, for environment operations.

GitHub OpenAPI

Operations 3

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 /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 {userId}'s environment {environmentName} in project {projectName}.
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} for user {userId}'s environment {environmentName} in project {projectName}.
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 the log output of operation {operationId} on user {userId}'s environment {environmentName} in project {projectName}.

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-environment-operations-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-environment-operations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2023-09-01-preview
  title: Microsoft Azure DevCenter Environment Operations API
  description: Deployment Environments API.
security:
- AADToken:
  - user_impersonation
tags:
- name: Environment Operations
paths:
  /projects/{projectName}/users/{userId}/environments/{environmentName}/operations:
    get:
      tags:
      - Environment Operations
      description: Lists operations on the environment which have occurred within the past 90 days
      parameters:
      - $ref: devcenter.json#/parameters/ApiVersionParameter
      - $ref: devcenter.json#/parameters/TopParameter
      - $ref: devcenter.json#/parameters/FilterParameter
      - $ref: devcenter.json#/parameters/ProjectNameParameter
      - $ref: devcenter.json#/parameters/UserIdParameter
      - $ref: '#/components/parameters/EnvironmentNameParameter'
      operationId: microsoftAzureEnvironmentsListoperations
      responses:
        '200':
          description: OK. The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvironmentOperationListResult'
        default:
          description: Error response describing why the operation failed.
          headers:
            x-ms-error-code:
              description: The error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: devcenter.json#/definitions/CloudError
      x-ms-examples:
        EnvironmentOperations_ListByEnvironment:
          $ref: ./examples/EnvironmentOperations_ListByEnvironment.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Projects Projectname Users Userid Environments…
  /projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}:
    get:
      tags:
      - Environment Operations
      description: Gets an environment action result.
      parameters:
      - $ref: devcenter.json#/parameters/ApiVersionParameter
      - $ref: devcenter.json#/parameters/ProjectNameParameter
      - $ref: devcenter.json#/parameters/UserIdParameter
      - $ref: '#/components/parameters/EnvironmentNameParameter'
      - $ref: '#/components/parameters/EnvironmentOperationIdParameter'
      operationId: microsoftAzureEnvironmentsGetoperation
      responses:
        '200':
          description: OK. The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvironmentOperation'
        default:
          description: Error response describing why the operation failed.
          headers:
            x-ms-error-code:
              description: The error code for specific error that occurred.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: devcenter.json#/definitions/CloudError
      x-ms-examples:
        EnvironmentOperations_GetByEnvironment:
          $ref: ./examples/EnvironmentOperations_GetByEnvironment.json
      summary: Microsoft Azure Get Projects Projectname Users Userid Environments…
  /projects/{projectName}/users/{userId}/environments/{environmentName}/operations/{operationId}/logs:
    get:
      tags:
      - Environment Operations
      description: Gets the logs for an operation on an environment.
      parameters:
      - $ref: devcenter.json#/parameters/ApiVersionParameter
      - $ref: devcenter.json#/parameters/ProjectNameParameter
      - $ref: devcenter.json#/parameters/UserIdParameter
      - $ref: '#/components/parameters/EnvironmentNameParameter'
      - $ref: '#/components/parameters/EnvironmentOperationIdParameter'
      operationId: microsoftAzureEnvironmentsGetlogsbyoperation
      responses:
        '200':
          description: OK. The request has succeeded.
          content:
            text/plain:
              schema:
                type: string
                format: binary
        default:
          description: Error response describing why the operation failed.
          headers:
            x-ms-error-code:
              description: The error code for specific error that occurred.
              schema:
                type: string
          content:
            text/plain:
              schema:
                $ref: devcenter.json#/definitions/CloudError
      x-ms-examples:
        EnvironmentOperations_GetLogs:
          $ref: ./examples/EnvironmentOperations_GetLogs.json
      summary: Microsoft Azure Get Projects Projectname Users Userid Environments…
components:
  schemas:
    EnvironmentOperationStatus:
      type: string
      enum:
      - NotStarted
      - Running
      - Succeeded
      - Canceled
      - Failed
      description: The status of an environment operation.
      x-ms-enum:
        name: EnvironmentOperationStatus
        modelAsString: true
        values:
        - value: NotStarted
          description: The operation has not started.
        - value: Running
          description: The operation is running.
        - value: Succeeded
          description: The operation succeeded.
        - value: Canceled
          description: The operation was canceled.
        - value: Failed
          description: The operation failed.
    EnvironmentOperationListResult:
      type: object
      description: The action results list result.
      properties:
        value:
          description: The current page of results.
          type: array
          items:
            $ref: '#/components/schemas/EnvironmentOperation'
        nextLink:
          type: string
          description: The URL to get the next set of results.
      required:
      - value
    EnvironmentOperation:
      type: object
      description: Information about an operation on an environment.
      discriminator:
        propertyName: kind
      properties:
        uri:
          description: The unique URI for the environment operation.
          type: string
        operationId:
          description: Unique identifier for the environment operation.
          type: string
        kind:
          description: The kind of operation that occurred.
          $ref: '#/components/schemas/EnvironmentOperationKind'
        status:
          description: The operation status.
          $ref: '#/components/schemas/EnvironmentOperationStatus'
        createdByObjectId:
          description: The object ID of the actor which initiated the operation.
          type: string
        startTime:
          description: The time the operation started.
          type: string
          format: date-time
        endTime:
          description: The time the operation finished.
          type: string
          format: date-time
        environmentParameters:
          type: object
          description: Parameters object for the environment at the time of the operation.
        error:
          description: Provisioning or operation error details. Populated only for error states.
          $ref: devcenter.json#/definitions/CloudErrorBody
      required:
      - uri
      - operationId
      - kind
      - status
    EnvironmentOperationKind:
      type: string
      enum:
      - Deploy
      - Delete
      description: The type of environment operation.
      x-ms-enum:
        name: EnvironmentOperationKind
        modelAsString: true
        values:
        - value: Deploy
          description: The operation represents a deployment.
        - value: Delete
          description: The operation represents a delete.
  parameters:
    EnvironmentNameParameter:
      name: environmentName
      in: path
      required: true
      description: The name of the environment.
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 63
        minLength: 3
        pattern: ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$
    EnvironmentOperationIdParameter:
      name: operationId
      in: path
      required: true
      description: The id of the operation on an environment.
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 63
        minLength: 3
        pattern: ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$
  securitySchemes:
    AADToken:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow
x-ms-parameterized-host:
  hostTemplate: '{endpoint}'
  useSchemePrefix: false
  parameters:
  - $ref: devcenter.json#/parameters/EndpointParameter