Check Storage Account Name Availability
Updated: February 24, 2016
The Check Storage Account Name Availability operation checks to see if the specified storage account name is available, or if it has already been taken.
The Check Storage Account Name Availability request may be specified as follows. Replace <subscription-id> with your subscription ID and <storage-account-name> with the name of that you want to use for the storage account.
Method | Request URI |
|---|---|
GET | https://management.core.windows.net/<subscription-id>/services/storageservices/operations/isavailable/<storage-account-name> |
None.
The following table describes the request headers.
Request Header | Description |
|---|---|
x-ms-version | Required. Specifies the version of the operation to use for this request. This header should be set to 2012-03-01 or higher. |
None.
The response includes an HTTP status code, a set of response headers, and a response body.
A successful operation returns status code 200 (OK).
The response for this operation includes the following headers. The response may also include additional standard HTTP headers.
Response Header | Description |
|---|---|
x-ms-request-id | A value that uniquely identifies a request made against the management service. |
The format of the response body is as follows:
<?xml version="1.0" encoding="utf-8"?> <AvailabilityResponse xmlns=”http://schemas.microsoft.com/windowsazure”> <Result>name-availability</Result> <Reason>reason-for-denial</Reason> </AvailabilityResponse>
The following table describes the elements in the response body.
Element name | Description |
|---|---|
Result | Specifies 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 and cannot be used. |
Reason | Specifies the reason that a storage account name could not be used. The value will be true if the name can be used. The Reason element is only returned using version 2013-03-01 or higher. |