Location interface
Interface representing a Location.
Methods
check |
Checks whether the Batch account name is available in the specified region. |
get |
Gets the Batch service quotas for the specified subscription at the given location. |
list |
Gets the list of Batch supported Virtual Machine VM sizes available at the given location. |
Method Details
checkNameAvailability(string, CheckNameAvailabilityParameters, LocationCheckNameAvailabilityOptionalParams)
Checks whether the Batch account name is available in the specified region.
function checkNameAvailability(locationName: string, parameters: CheckNameAvailabilityParameters, options?: LocationCheckNameAvailabilityOptionalParams): Promise<CheckNameAvailabilityResult>
Parameters
- locationName
-
string
The desired region for the name check.
- parameters
- CheckNameAvailabilityParameters
Properties needed to check the availability of a name.
The options parameters.
Returns
Promise<CheckNameAvailabilityResult>
getQuotas(string, LocationGetQuotasOptionalParams)
Gets the Batch service quotas for the specified subscription at the given location.
function getQuotas(locationName: string, options?: LocationGetQuotasOptionalParams): Promise<BatchLocationQuota>
Parameters
- locationName
-
string
The region for which to retrieve Batch service quotas.
- options
- LocationGetQuotasOptionalParams
The options parameters.
Returns
Promise<BatchLocationQuota>
listSupportedVirtualMachineSkus(string, LocationListSupportedVirtualMachineSkusOptionalParams)
Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
function listSupportedVirtualMachineSkus(locationName: string, options?: LocationListSupportedVirtualMachineSkusOptionalParams): PagedAsyncIterableIterator<SupportedSku, SupportedSku[], PageSettings>
Parameters
- locationName
-
string
The region for which to retrieve Batch service supported SKUs.
The options parameters.