---
title: "POST /subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/locations/{location}/checkNameAvailability"
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/locations/{location}/checkNameAvailability"
tags: ["Servers"]
---

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

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

Check the name availability in the target location.

## Path parameters

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

## Query parameters

- `api-version` string, required

## Request body

- CheckServerNameAvailabilityParameters — Details of server name request body.
  - `name` string — Name for checking availability.
  - `type` string — The resource type of azure analysis services.

## Response `200`

OK. The request has succeeded.

- CheckServerNameAvailabilityResult — The checking result of server name availability.
  - `nameAvailable` boolean — Indicator of available of the server name.
  - `reason` string — The reason of unavailability.
  - `message` string — The detailed message of the request unavailability.

## Other responses

- `default` — Error response describing why the operation failed.

---

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