---
title: "POST /subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/checkDeviceServiceNameAvailability"
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/checkDeviceServiceNameAvailability"
tags: ["CheckDeviceServiceNameAvailability"]
---

# POST /subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/checkDeviceServiceNameAvailability

`POST /subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/checkDeviceServiceNameAvailability`

Check if a Windows IoT Device Service name is available.

## Path parameters

- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Request body

- DeviceServiceCheckNameAvailabilityParameters — Input values.
  - `name` string, required — The name of the Windows IoT Device Service to check.

## Response `200`

OK. The request has succeeded.

- DeviceServiceNameAvailabilityInfo — The properties indicating whether a given Windows IoT Device Service name is available.
  - `nameAvailable` boolean — The value which indicates whether the provided name is available.
  - `reason` 'Invalid' | 'AlreadyExists' — The reason for unavailability.
  - `message` string — The detailed reason message.

## Other responses

- `default` — DefaultErrorResponse

---

[API](https://skmtc.dev/azure/apis/windowsiot-microsoft-windowsiot-windowsiotservices.md) · [All operations](https://skmtc.dev/azure/apis/windowsiot-microsoft-windowsiot-windowsiotservices/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/windowsiot-microsoft-windowsiot-windowsiotservices/revisions/70e6fcc2c58a/schema)
