---
title: "POST /subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/checkNameAvailability"
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/checkNameAvailability"
tags: ["CodeSigningAccounts"]
---

# POST /subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/checkNameAvailability

`POST /subscriptions/{subscriptionId}/providers/Microsoft.CodeSigning/checkNameAvailability`

Checks if the artifact signing account name is valid and is not already in use.

## Parameters

- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref

## Request body

- CheckNameAvailability — The parameters used to check the availability of the artifact signing account name.
  - `type` string, required — The type of the resource, "Microsoft.CodeSigning/codeSigningAccounts".
  - `name` string, required — Artifact signing account name.

## Response `200`

The request has succeeded.

- CheckNameAvailabilityResult — The CheckNameAvailability operation response.
  - `nameAvailable` boolean — A boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used.
  - `reason` 'AccountNameInvalid' | 'AlreadyExists' — The reason that an artifact signing account name could not be used. The Reason element is only returned if nameAvailable is false.
  - `message` string — An error message explaining the Reason value in more detail.

## Other responses

- `default` — An unexpected error response.

---

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