---
title: "Validate if a resource can be created."
method: POST
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validate"
---

# Validate if a resource can be created.

`POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/validate`

Validate if a resource can be created.

## Path parameters

- `resourceGroupName` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Request body

- ValidateRequest — Resource validation request content.
  - `name` string, required — Resource name to verify.
  - `type` 'ServerFarm' | 'Site', required — Resource type used for verification.
  - `location` string, required — Expected location of the resource.
  - `properties` ValidateProperties, required — App properties used for validation.
    - `serverFarmId` string — ARM resource ID of an App Service plan that would host the app.
    - `skuName` string — Name of the target SKU for the App Service plan.
    - `needLinuxWorkers` boolean — <code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.
    - `isSpot` boolean — <code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.
    - `capacity` integer — Target capacity of the App Service plan (number of VMs).
    - `hostingEnvironment` string — Name of App Service Environment where app or App Service plan should be created.
    - `isXenon` boolean — <code>true</code> if App Service plan is running as a windows container

## Response `200`

OK

- ValidateResponse — Describes the result of resource validation.
  - `status` string — Result of validation.
  - `error` ValidateResponseError — Error details for when validation fails.
    - `code` string — Validation error code.
    - `message` string — Validation error message.

## Other responses

- `default` — App Service error response.

---

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