---
title: "POST /subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability"
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability"
tags: ["CheckFrontDoorNameAvailabilityWithSubscription"]
---

# POST /subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability

`POST /subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability`

Check the availability of a Front Door subdomain.

## Parameters

- `./network.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref
- `./network.json#/components/parameters/ApiVersionParameter` — unresolved $ref

## Request body

- CheckNameAvailabilityInput — Input of CheckNameAvailability API.
  - `name` string, required — The resource name to validate.
  - `type` 'Microsoft.Network/frontDoors' | 'Microsoft.Network/frontDoors/frontendEndpoints', required — Type of Front Door resource used in CheckNameAvailability.

## Response `200`

OK. The request has succeeded.

- CheckNameAvailabilityOutput — Output of check name availability API.
  - `nameAvailability` 'Available' | 'Unavailable' — Indicates whether the name is available.
  - `reason` string — The reason why the name is not available.
  - `message` string — The detailed error message describing why the name is not available.

## Other responses

- `default` — Front Door error response describing why the operation failed.

---

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