---
title: "Accounts_CheckNameAvailability"
method: POST
path: "/subscriptions/{subscriptionId}/providers/microsoft.visualstudio/checkNameAvailability"
tags: ["Accounts"]
---

# Accounts_CheckNameAvailability

`POST /subscriptions/{subscriptionId}/providers/microsoft.visualstudio/checkNameAvailability`

Checks if the specified Visual Studio Team Services account name is available. Resource name can be either an account name or an account name and PUID.

## Path parameters

- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Request body

- CheckNameAvailabilityParameter — The body of a POST request to check name availability.
  - `resourceName` string — The name of the resource to check availability for.
  - `resourceType` string — The type of resource to check availability for.

## Response `200`

The operation succeeded. The response contains the result of the name availability check.

- CheckNameAvailabilityResult — The response to a name availability request.
  - `message` string — The message describing the detailed reason.
  - `nameAvailable` boolean — The value which indicates whether the provided name is available.

---

[API](https://skmtc.dev/azure/apis/visual-studio-resource-provider-client.md) · [All operations](https://skmtc.dev/azure/apis/visual-studio-resource-provider-client/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/visual-studio-resource-provider-client/revisions/3e33b3da678f/schema)
