Share via


Locations - Check Trial Availability

Return trial status for subscription by region

POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability?api-version=2023-03-01

URI Parameters

Name In Required Type Description
location
path True

string

Azure region

subscriptionId
path True

string

minLength: 1

The ID of the target subscription.

api-version
query True

string

minLength: 1

The API version to use for this operation.

Request Body

Name Required Type Description
name True

string

The name of the SKU.

Responses

Name Type Description
200 OK

Trial

Request has succeeded

Other Status Codes

ErrorResponse

Error response describing why the operation failed

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

Locations_CheckTrialAvailability
Locations_CheckTrialAvailabilityWithSku

Locations_CheckTrialAvailability

Sample request

POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/eastus/checkTrialAvailability?api-version=2023-03-01

Sample response

{
  "status": "TrialAvailable",
  "availableHosts": 4
}

Locations_CheckTrialAvailabilityWithSku

Sample request

POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/eastus/checkTrialAvailability?api-version=2023-03-01

{
  "name": "avs52t"
}

Sample response

{
  "status": "TrialAvailable",
  "availableHosts": 4
}

Definitions

Name Description
ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

Sku

The resource model definition representing SKU

Trial

Subscription trial availability

TrialStatus

Trial status

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.

Sku

The resource model definition representing SKU

Name Type Description
name

string

The name of the SKU.

Trial

Subscription trial availability

Name Type Description
availableHosts

integer (int32)

Number of trial hosts available

status

TrialStatus

Trial status

TrialStatus

Trial status

Value Description
TrialAvailable
TrialUsed
TrialDisabled