Skip to main content

environments_capacities

Creates, updates, deletes, gets or lists an environments_capacities resource.

Overview

Nameenvironments_capacities
TypeResource
Idazure.app_service.environments_capacities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringName of the stamp.
availableCapacityinteger (int64)Available capacity (# of machines, bytes of storage etc...).
computeModestringShared/dedicated workers.
excludeFromCapacityAllocationbooleanIf true, it includes basic apps. Basic apps are not used for capacity allocation.
isApplicableForAllComputeModesbooleantrue if capacity is applicable for all apps; otherwise, false.
isLinuxbooleanIs this a linux stamp capacity
siteModestringShared or Dedicated.
totalCapacityinteger (int64)Total capacity (# of machines, bytes of storage etc...).
unitstringName of the unit.
workerSizestringSize of the machines.
workerSizeIdinteger (int32)Size ID of machines: 0 - Small 1 - Medium 2 - Large

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, name, subscriptionIdDescription for Get the used, available, and total worker capacity an App Service Environment.

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
namestringName of the App Service Environment.
resourceGroupNamestringName of the resource group to which the resource belongs.
subscriptionIdstringYour Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).

SELECT examples

Description for Get the used, available, and total worker capacity an App Service Environment.

SELECT
name,
availableCapacity,
computeMode,
excludeFromCapacityAllocation,
isApplicableForAllComputeModes,
isLinux,
siteMode,
totalCapacity,
unit,
workerSize,
workerSizeId
FROM azure.app_service.environments_capacities
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND name = '{{ name }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;