Fabric Capacities - Check Name Availability

Implements local CheckNameAvailability operations

POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Fabric/locations/{location}/checkNameAvailability?api-version=2023-11-01

URI Parameters

Name In Required Type Description
location
path True

string

The name of the Azure region.

subscriptionId
path True

string

uuid

The ID of the target subscription. The value must be an UUID.

api-version
query True

string

The API version to use for this operation.

Request Body

Name Type Description
name

string

The name of the resource for which availability needs to be checked.

type

string

The resource type.

Responses

Name Type Description
200 OK

CheckNameAvailabilityResponse

The request has succeeded.

Other Status Codes

ErrorResponse

An unexpected error response.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Check name availability of a capacity

Sample request

POST https://management.azure.com/subscriptions/548B7FB7-3B2A-4F46-BB02-66473F1FC22C/providers/Microsoft.Fabric/locations/westcentralus/checkNameAvailability?api-version=2023-11-01

{
  "name": "azsdktest",
  "type": "Microsoft.Fabric/capacities"
}

Sample response

{
  "nameAvailable": true
}

Definitions

Name Description
CheckNameAvailabilityReason

The reason why the given name is not available.

CheckNameAvailabilityRequest

The check availability request body.

CheckNameAvailabilityResponse

The check availability result.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

CheckNameAvailabilityReason

The reason why the given name is not available.

Name Type Description
AlreadyExists

string

Invalid

string

CheckNameAvailabilityRequest

The check availability request body.

Name Type Description
name

string

The name of the resource for which availability needs to be checked.

type

string

The resource type.

CheckNameAvailabilityResponse

The check availability result.

Name Type Description
message

string

Detailed reason why the given name is available.

nameAvailable

boolean

Indicates if the resource name is available.

reason

CheckNameAvailabilityReason

The reason why the given name is not available.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.