---
title: "Checks resource name validity"
method: POST
path: "/providers/Microsoft.Resources/checkResourceName"
tags: ["Tenants"]
---

# Checks resource name validity

`POST /providers/Microsoft.Resources/checkResourceName`

A resource name is valid if it is not a reserved word, does not contains a reserved word and does not start with a reserved word

## Query parameters

- `api-version` string, required

## Request body

- ResourceName — Name and Type of the Resource
  - `name` string, required — Name of the resource
  - `type` string, required — The type of the resource

## Response `200`

OK - Returns status as allowed or not.

- CheckResourceNameResult — Resource Name valid if not a reserved word, does not contain a reserved word and does not start with a reserved word
  - `name` string — Name of Resource
  - `type` string — Type of Resource
  - `status` 'Allowed' | 'Reserved' — Is the resource name Allowed or Reserved

## Other responses

- `default` — Error response saying resource name is invalid

## Changes

- **2020-07-11** (2019-06-01) `f7fdf7983945` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/azure/apis/subscriptionclient-3/changes/providers/Microsoft.Resources/checkResourceName/post.md)

---

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