---
title: "POST /subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability"
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability"
---

# POST /subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability

`POST /subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Checks that the resource name is valid and is not already in use.

## Path parameters

- `subscriptionId` string, uuid, required
- `location` string, required

## Query parameters

- `api-version` string, required

## Request body

- NameAvailabilityParameters: Data POST-ed to the nameAvailability action
  - `type` string, required: The resource type. Can be "Microsoft.SignalRService/SignalR", "Microsoft.SignalRService/WebPubSub", "Microsoft.SignalRService/SignalR/replicas" or "Microsoft.SignalRService/WebPubSub/replicas"
  - `name` string, required: The resource name to validate. e.g."my-resource-name"

## Response `200`

The request has succeeded.

- NameAvailability: Result of the request to check name availability. It contains a flag and possible reason of failure.
  - `nameAvailable` boolean: Indicates whether the name is available or not.
  - `reason` string: The reason of the availability. Required if name is not available.
  - `message` string: The message of the operation.

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-07-13** (2021-04-01-preview) `1af7b550cd0b`: 2 breaking, 1 info
  - added the new path request parameter `subscriptionId`
  - added the new required `query` request parameter `api-version`
  - api tag `WebPubSub` removed
- **2026-07-13** (2021-04-01-preview) `41ecf87c9dda`: 1 warning, 1 info
  - deleted the `path` request parameter `location`
  - api tag `WebPubSub` removed
- **2026-07-13** (2021-04-01-preview) `aa4834c0c016`: 2 warning
  - deleted the `path` request parameter `subscriptionId`
  - deleted the `query` request parameter `api-version`

[Operation history](https://skmtc.dev/azure/apis/webpubsub-microsoft-signalrservice-signalrservice/changes/subscriptions/:subscriptionId/providers/Microsoft.SignalRService/locations/:location/checkNameAvailability/post.md)

---

[API](https://skmtc.dev/azure/apis/webpubsub-microsoft-signalrservice-signalrservice.md) - [All operations](https://skmtc.dev/azure/apis/webpubsub-microsoft-signalrservice-signalrservice/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/webpubsub-microsoft-signalrservice-signalrservice/revisions/1af7b550cd0b?raw)
