Microsoft Azure Serial Ports API

The SerialPorts API from Microsoft Azure, for serialports.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 6

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 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts List serial ports configured on a VM · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which serial ports are configured on my virtual machine?”
“Can I see the serial console ports for one parent resource?”
Tell an agent
List serial ports on {type} {parent} ({ns}) in resource group {rg}.
Show serial ports for resource {parent} in subscription {sub}.
GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort} Get a serial port's settings · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What is the configuration of a specific serial port?”
“Is a particular serial port on my VM enabled?”
Tell an agent
Get serial port {port} on {type} {parent} ({ns}) in resource group {rg}.
Show settings of serial port {port} in subscription {sub}.
PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort} Create or update a serial port · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I enable a serial port on my virtual machine?”
“Can I change the state of an existing serial port?”
Tell an agent
Configure serial port {port} on {type} {parent} ({ns}) in resource group {rg}.
Set serial port {port} properties to {props} in subscription {sub}.
DELETE /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort} Delete a serial port · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I remove a serial port from a VM?”
“Can I delete a serial port configuration I no longer need?”
Tell an agent destructive · confirm first
Delete serial port {port} on {type} {parent} ({ns}) in resource group {rg}.
Remove serial port {port} in subscription {sub}.
GET /subscriptions/{subscriptionId}/providers/Microsoft.SerialConsole/serialPorts List all serial ports in a subscription · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“What serial ports exist across my whole subscription?”
“Can I see every serial console port without naming a VM?”
Tell an agent
List all serial ports in subscription {sub}.
Show every SerialPort resource under subscription {sub}.
POST /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}/connect Connect to a VM's serial port · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I open a serial console connection to my VM?”
“Can I connect to a serial port when the VM is unreachable over the network?”
Tell an agent
Connect to serial port {port} on {type} {parent} ({ns}) in resource group {rg}.
Open a serial console session on port {port} in subscription {sub}.

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-serialports-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-serialports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure MicrosoftSerialConsoleClient Serial Ports…
  version: '2018-05-01'
  description: The Azure Serial Console allows you to access the serial console of a Virtual Machine or VM scale set instance
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: SerialPorts
paths:
  ? /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts
  : get:
      tags:
      - SerialPorts
      operationId: microsoftAzureSerialportsList
      description: Lists all of the configured serial ports for a parent resource
      parameters:
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/ResourceProviderNamespaceParameter'
      - $ref: '#/components/parameters/ParentResourceTypeParameter'
      - $ref: '#/components/parameters/ParentResourceParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SerialPortListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        List Serial Ports for parent resources:
          $ref: ./examples/ListSerialPort.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}
  : get:
      tags:
      - SerialPorts
      operationId: microsoftAzureSerialportsGet
      description: Gets the configured settings for a serial port
      parameters:
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/ResourceProviderNamespaceParameter'
      - $ref: '#/components/parameters/ParentResourceTypeParameter'
      - $ref: '#/components/parameters/ParentResourceParameter'
      - name: serialPort
        in: path
        required: true
        description: The name of the serial port to connect to.
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SerialPort'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        Get the serial port for a parent resource:
          $ref: ./examples/GetSerialPort.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      tags:
      - SerialPorts
      operationId: microsoftAzureSerialportsCreate
      description: Creates or updates a serial port
      parameters:
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/ResourceProviderNamespaceParameter'
      - $ref: '#/components/parameters/ParentResourceTypeParameter'
      - $ref: '#/components/parameters/ParentResourceParameter'
      - name: serialPort
        in: path
        required: true
        description: The name of the serial port to create.
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SerialPort'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        Create a new serial port resource.:
          $ref: ./examples/CreateSerialPort.json
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SerialPort'
        description: Parameters supplied to create the serial port.
        required: true
    delete:
      tags:
      - SerialPorts
      operationId: microsoftAzureSerialportsDelete
      description: Deletes a serial port
      parameters:
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/ResourceProviderNamespaceParameter'
      - $ref: '#/components/parameters/ParentResourceTypeParameter'
      - $ref: '#/components/parameters/ParentResourceParameter'
      - name: serialPort
        in: path
        required: true
        description: The name of the serial port to delete.
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      responses:
        '200':
          description: OK
        '204':
          description: No Content
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        Delete a serial port resource:
          $ref: ./examples/DeleteSerialPort.json
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
  /subscriptions/{subscriptionId}/providers/Microsoft.SerialConsole/serialPorts:
    get:
      tags:
      - SerialPorts
      description: Handles requests to list all SerialPort resources in a subscription.
      operationId: microsoftAzureSerialportsListbysubscriptions
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      responses:
        '200':
          description: OK - Return a list of SerialPort resources
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SerialPortListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        List Serial Ports for subscription:
          $ref: ./examples/ListSerialPortSubscription.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft…
  ? /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}/connect
  : post:
      tags:
      - SerialPorts
      operationId: microsoftAzureSerialportsConnect
      description: Connect to serial port of the target resource
      parameters:
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/ResourceProviderNamespaceParameter'
      - $ref: '#/components/parameters/ParentResourceTypeParameter'
      - $ref: '#/components/parameters/ParentResourceParameter'
      - name: serialPort
        in: path
        required: true
        description: The name of the serial port to connect to.
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      responses:
        '200':
          description: OK - Return a connection string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SerialPortConnectResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        Connect to a virtual machine serial port:
          $ref: ./examples/SerialPortConnectVM.json
        Connect to a scale set instance serial port:
          $ref: ./examples/SerialPortConnectVMSS.json
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
components:
  parameters:
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      required: true
      description: Subscription ID which uniquely identifies the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call requiring it.
      schema:
        type: string
    ParentResourceParameter:
      name: parentResource
      in: path
      required: true
      description: 'The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.'
      x-ms-parameter-location: method
      schema:
        type: string
    ApiVersionParameter:
      name: api-version
      in: query
      required: true
      description: The API version to use for this operation.
      schema:
        type: string
    ResourceProviderNamespaceParameter:
      name: resourceProviderNamespace
      in: path
      required: true
      description: The namespace of the resource provider.
      x-ms-parameter-location: method
      schema:
        type: string
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      required: true
      description: The name of the resource group.
      x-ms-parameter-location: method
      schema:
        type: string
    ParentResourceTypeParameter:
      name: parentResourceType
      in: path
      required: true
      description: 'The resource type of the parent resource.  For example: ''virtualMachines'' or ''virtualMachineScaleSets'''
      x-ms-parameter-location: method
      x-ms-skip-url-encoding: true
      schema:
        type: string
  schemas:
    SerialPortListResult:
      title: Serial port list result
      description: The list serial ports operation response.
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/SerialPort'
          description: The list of serial ports.
    CloudErrorBody:
      x-ms-external: true
      properties:
        code:
          type: string
          description: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
        message:
          type: string
          description: A message describing the error, intended to be suitable for display in a user interface.
        target:
          type: string
          description: The target of the particular error. For example, the name of the property in error.
        details:
          type: array
          items:
            $ref: '#/components/schemas/CloudErrorBody'
          description: A list of additional details about the error.
      description: An error response from the Batch service.
    SerialPort:
      title: Serial port
      description: Represents the serial port of the parent resource.
      type: object
      properties:
        properties:
          description: The properties of the serial port.
          x-ms-client-flatten: true
          $ref: '#/components/schemas/SerialPortProperties'
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
    SerialPortConnectResult:
      title: Serial port connect result
      description: Returns a connection string to the serial port of the resource.
      type: object
      properties:
        connectionString:
          description: Connection string to the serial port of the resource.
          type: string
    CloudError:
      description: An error response from the service.
      x-ms-external: true
      properties:
        error:
          $ref: '#/components/schemas/CloudErrorBody'
          description: Cloud error body.
    ProxyResource:
      description: The resource model definition for a ARM proxy resource. It will have everything other than required location and tags
      allOf:
      - $ref: '#/components/schemas/Resource'
    SerialPortProperties:
      description: The properties of the serial port.
      properties:
        state:
          description: Specifies whether the port is enabled for a serial console connection.
          type: string
          enum:
          - enabled
          - disabled
          x-ms-enum:
            name: SerialPortState
            modelAsString: false
    Resource:
      description: The Resource model definition.
      properties:
        id:
          readOnly: true
          type: string
          description: Resource Id
        name:
          readOnly: true
          type: string
          description: Resource name
        type:
          readOnly: true
          type: string
          description: Resource type
      x-ms-azure-resource: true
  securitySchemes:
    azure_auth:
      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