Microsoft Azure Device Services API

The DeviceServices API from Microsoft Azure, for deviceservices.

GitHub OpenAPI

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/Microsoft.WindowsIoT/deviceServices/{deviceName} Get a Windows IoT Device Service · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What's the non-security metadata of my Windows IoT Device Service?”
“Can I look up one Windows IoT device service by name?”
Tell an agent
Get Windows IoT Device Service {deviceName} in resource group {resourceGroupName}.
Show device service {deviceName} in group {resourceGroupName}, subscription {subscriptionId}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices/{deviceName} Create or replace a Windows IoT Device Service · Microsoft Azure Create Or Update The Metadata Of A Windows Iot Device Service #
Ask an LLM
“How do I create a Windows IoT Device Service?”
“Can I replace a device service's metadata in full?”
Tell an agent
Create Windows IoT Device Service {deviceName} in {resourceGroupName}.
Create or replace device service {deviceName} in group {resourceGroupName}, subscription {subscriptionId}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices/{deviceName} Update a Windows IoT Device Service · Microsoft Azure Updates The Metadata Of A Windows Iot Device Service #
Ask an LLM
“Can I update just the tags of a Windows IoT Device Service?”
“How do I change a device service's metadata safely with an ETag?”
Tell an agent
Update the tags on Windows IoT Device Service {deviceName} in {resourceGroupName}.
Patch device service {deviceName} in group {resourceGroupName}, subscription {subscriptionId}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices/{deviceName} Delete a Windows IoT Device Service · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I delete a Windows IoT Device Service?”
“Is it possible to remove a device service from my resource group?”
Tell an agent destructive · confirm first
Delete Windows IoT Device Service {deviceName} in {resourceGroupName}.
Remove device service {deviceName} from group {resourceGroupName}, subscription {subscriptionId}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices List Windows IoT Device Services in a resource group · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which Windows IoT Device Services are in my resource group?”
“Can I list device services for one resource group only?”
Tell an agent
List Windows IoT Device Services in resource group {resourceGroupName}.
Show device services in group {resourceGroupName} of subscription {subscriptionId}.
GET /subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/deviceServices List Windows IoT Device Services in a subscription · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Windowsiot… #
Ask an LLM
“What Windows IoT Device Services do I have across my subscription?”
“Can I see every device service in one subscription at once?”
Tell an agent
List all Windows IoT Device Services in subscription {subscriptionId}.
Show every device service under subscription {subscriptionId}.

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-deviceservices-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-deviceservices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '2019-06-01'
  title: Microsoft Azure Device Services API
  description: Use this API to manage the Windows IoT device services in your Azure subscription.
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: DeviceServices
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices/{deviceName}
  : get:
      tags:
      - DeviceServices
      description: Get the non-security related metadata of a Windows IoT Device Service.
      operationId: microsoftAzureServicesGet
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/DeviceNameParameter'
      responses:
        '200':
          description: OK. The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceService'
        default:
          description: DefaultErrorResponse
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetails'
      deprecated: false
      x-ms-examples:
        Services_GetProperties:
          $ref: ./examples/Service_GetProperties.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      tags:
      - DeviceServices
      summary: Microsoft Azure Create Or Update The Metadata Of A Windows Iot Device Service
      description: Create or update the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service.
      operationId: microsoftAzureServicesCreateorupdate
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/DeviceNameParameter'
      - name: If-Match
        in: header
        required: false
        description: ETag of the Windows IoT Device Service. Do not specify for creating a new Windows IoT Device Service. Required to update an existing Windows IoT Device Service.
        schema:
          type: string
      responses:
        '200':
          description: OK. The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceService'
        '201':
          description: OK. The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceService'
        default:
          description: DefaultErrorResponse
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetails'
      deprecated: false
      x-ms-examples:
        Service_Create:
          $ref: ./examples/Service_Create.json
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeviceService'
        description: The Windows IoT Device Service metadata and security metadata.
        required: true
    patch:
      tags:
      - DeviceServices
      summary: Microsoft Azure Updates The Metadata Of A Windows Iot Device Service
      description: Updates the metadata of a Windows IoT Device Service. The usual pattern to modify a property is to retrieve the Windows IoT Device Service metadata and security metadata, and then combine them with the modified values in a new body to update the Windows IoT Device Service.
      operationId: microsoftAzureServicesUpdate
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/DeviceNameParameter'
      - name: If-Match
        in: header
        required: false
        description: ETag of the Windows IoT Device Service. Do not specify for creating a brand new Windows IoT Device Service. Required to update an existing Windows IoT Device Service.
        schema:
          type: string
      responses:
        '200':
          description: OK. The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceService'
        default:
          description: DefaultErrorResponse
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetails'
      deprecated: false
      x-ms-examples:
        Service_Update:
          $ref: ./examples/Service_Update.json
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeviceService'
        description: The Windows IoT Device Service metadata and security metadata.
        required: true
    delete:
      tags:
      - DeviceServices
      description: Delete a Windows IoT Device Service.
      operationId: microsoftAzureServicesDelete
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/DeviceNameParameter'
      responses:
        '200':
          description: OK. The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceService'
        '204':
          description: OK. The request has succeeded with no content to return.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceService'
        default:
          description: DefaultErrorResponse
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetails'
      deprecated: false
      x-ms-examples:
        Service_Delete:
          $ref: ./examples/Service_Delete.json
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices:
    get:
      tags:
      - DeviceServices
      description: Get all the IoT hubs in a resource group.
      operationId: microsoftAzureServicesListbyresourcegroup
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      responses:
        '200':
          description: OK. The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceServiceDescriptionListResult'
        default:
          description: DefaultErrorResponse
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetails'
      deprecated: false
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        Service_ListByResourceGroup:
          $ref: ./examples/Service_ListByResourceGroup.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  /subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/deviceServices:
    get:
      tags:
      - DeviceServices
      description: Get all the IoT hubs in a subscription.
      operationId: microsoftAzureServicesList
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      responses:
        '200':
          description: OK. The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceServiceDescriptionListResult'
        default:
          description: DefaultErrorResponse
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetails'
      deprecated: false
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        Service_List:
          $ref: ./examples/Service_List.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Windowsiot…
components:
  schemas:
    TrackedResource:
      description: The resource model definition for a ARM tracked top level resource
      properties:
        tags:
          type: object
          additionalProperties:
            type: string
          x-ms-mutability:
          - read
          - create
          - update
          description: Resource tags.
        location:
          type: string
          x-ms-mutability:
          - read
          - create
          description: The Azure Region where the resource lives
      allOf:
      - $ref: '#/components/schemas/Resource'
    DeviceServiceDescriptionListResult:
      description: The JSON-serialized array of DeviceService objects with a next link.
      type: object
      properties:
        value:
          description: The array of DeviceService objects.
          type: array
          items:
            $ref: '#/components/schemas/DeviceService'
        nextLink:
          description: The next link.
          type: string
          readOnly: true
    DeviceServiceProperties:
      description: The properties of a Windows IoT Device Service.
      type: object
      properties:
        notes:
          description: Windows IoT Device Service notes.
          type: string
        startDate:
          description: Windows IoT Device Service start date,
          type: string
          format: date-time
          readOnly: true
        quantity:
          description: Windows IoT Device Service device allocation,
          type: integer
          format: int64
        billingDomainName:
          description: Windows IoT Device Service ODM AAD domain
          type: string
        adminDomainName:
          description: Windows IoT Device Service OEM AAD domain
          type: string
    ErrorDetails:
      description: The details of the error.
      properties:
        error:
          type: object
          description: The error object.
          properties:
            code:
              description: One of a server-defined set of error codes.
              type: string
            message:
              description: A human-readable representation of the error.
              type: string
            target:
              description: The target of the particular error.
              type: string
            details:
              description: A human-readable representation of the error's details.
              type: string
    DeviceService:
      description: The description of the Windows IoT Device Service.
      type: object
      properties:
        etag:
          description: The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.
          type: string
        properties:
          description: The properties of a Windows IoT Device Service.
          $ref: '#/components/schemas/DeviceServiceProperties'
          x-ms-client-flatten: true
      allOf:
      - $ref: '#/components/schemas/TrackedResource'
    Resource:
      description: The core properties of ARM resources
      properties:
        id:
          readOnly: true
          type: string
          description: Fully qualified resource Id for the resource
        name:
          readOnly: true
          type: string
          description: The name of the resource
        type:
          readOnly: true
          type: string
          description: The type of the resource.
      x-ms-azure-resource: true
  parameters:
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The subscription identifier.
      required: true
      schema:
        type: string
    ApiVersionParameter:
      name: api-version
      in: query
      description: The version of the API.
      required: true
      schema:
        type: string
    ResourceGroupNameParameter:
      name: resourceGroupName
      description: The name of the resource group that contains the Windows IoT Device Service.
      in: path
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    DeviceNameParameter:
      name: deviceName
      in: path
      description: The name of the Windows IoT Device Service.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
  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
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/windowsiot/resource-manager/Microsoft.WindowsIoT/preview/2018-02-16-preview/WindowsIotServices.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)