---
title: "Check if a provisioning service name is available."
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability"
---

# Check if a provisioning service name is available.

`POST /subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability`

Check if a provisioning service name is available. This will validate if the name is syntactically valid and if the name is usable

## Parameters

- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref

## Request body

- OperationInputs — Input values for operation results call.
  - `name` string, required — The name of the Provisioning Service to check.

## Response `200`

The request has succeeded.

- NameAvailabilityInfo — Description of name availability.
  - `nameAvailable` boolean — specifies if a name is available or not
  - `reason` 'Invalid' | 'AlreadyExists' — specifies the reason a name is unavailable
  - `message` string — message containing a detailed reason name is unavailable

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/deviceprovisioningservices-microsoft-devices-deviceprovision.md) · [All operations](https://skmtc.net/azure/apis/deviceprovisioningservices-microsoft-devices-deviceprovision/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/deviceprovisioningservices-microsoft-devices-deviceprovision/revisions/42d943f380d1/schema)
