---
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`

## Request

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

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.dev/azure/apis/analysisservices-microsoft-analysisservices-analysisservices.md) - [All operations](https://skmtc.dev/azure/apis/analysisservices-microsoft-analysisservices-analysisservices/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/analysisservices-microsoft-analysisservices-analysisservices/revisions/fe0bb87ff5c0?raw)
