Skip to main content

location

Creates, updates, deletes, gets or lists a location resource.

Overview

Namelocation
TypeResource
Idazure.batch.location

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
messagestringGets an error message explaining the Reason value in more detail.
nameAvailablebooleanGets 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 or invalid and cannot be used.
reasonstringGets the reason that a Batch account name could not be used. The Reason element is only returned if NameAvailable is false. Known values are: "Invalid" and "AlreadyExists". (Invalid, AlreadyExists)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
check_name_availabilityselectlocation_name, subscription_idChecks whether the Batch account name is available in the specified region.
list_supported_virtual_machine_skusselectlocation_name, subscription_idmaxresults, $filterGets the list of Batch supported Virtual Machine VM sizes available at the given location.
get_quotasexeclocation_name, subscription_idGets the Batch service quotas for the specified subscription at the given location.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
location_namestringThe region for which to retrieve Batch service quotas. Required.
subscription_idstring
$filterstringOData filter expression. Valid properties for filtering are "familyName". Default value is None.
maxresultsintegerThe maximum number of items to return in the response. Default value is None.

SELECT examples

Checks whether the Batch account name is available in the specified region.

SELECT
message,
nameAvailable,
reason
FROM azure.batch.location
WHERE location_name = '{{ location_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Gets the Batch service quotas for the specified subscription at the given location.

EXEC azure.batch.location.get_quotas 
@location_name='{{ location_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;