app_service_plans
Creates, updates, deletes, gets or lists an app_service_plans resource.
Overview
| Name | app_service_plans |
| Type | Resource |
| Id | azure.web.app_service_plans |
Fields
The following fields are returned by SELECT queries:
- list_hybrid_connection_keys
- get_vnet_gateway
- get_route_for_vnet
- list_routes_for_vnet
- get
- list_by_resource_group
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Resource Id. |
name | string | Resource Name. |
kind | string | Kind of resource. |
sendKeyName | string | The name of the send key. |
sendKeyValue | string | The value of the send key. |
type | string | Resource type. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
kind | string | Kind of resource. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
vnetName | string | The Virtual Network name. |
vpnPackageUri | string | The URI where the VPN package can be downloaded. Required. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
endAddress | string | The ending address for this route. If the start address is specified in CIDR notation, this must be omitted. |
kind | string | Kind of resource. |
routeType | string | The type of route this is: DEFAULT - By default, every app has routes to the local address ranges specified by RFC1918 INHERITED - Routes inherited from the real Virtual Network routes STATIC - Static route set on the app only These values will be used for syncing an app's routes with those from a Virtual Network. Known values are: "DEFAULT", "INHERITED", and "STATIC". (DEFAULT, INHERITED, STATIC) |
startAddress | string | The starting address for this route. This may also include a CIDR notation, in which case the end address must not be specified. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
endAddress | string | The ending address for this route. If the start address is specified in CIDR notation, this must be omitted. |
kind | string | Kind of resource. |
routeType | string | The type of route this is: DEFAULT - By default, every app has routes to the local address ranges specified by RFC1918 INHERITED - Routes inherited from the real Virtual Network routes STATIC - Static route set on the app only These values will be used for syncing an app's routes with those from a Virtual Network. Known values are: "DEFAULT", "INHERITED", and "STATIC". (DEFAULT, INHERITED, STATIC) |
startAddress | string | The starting address for this route. This may also include a CIDR notation, in which case the end address must not be specified. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
asyncScalingEnabled | boolean | If true, this App Service Plan will attempt to scale asynchronously if there are insufficient workers to scale synchronously. If false, this App Service Plan will only attempt sync scaling. |
elasticScaleEnabled | boolean | ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku. |
extendedLocation | object | Extended Location. |
freeOfferExpirationTime | string (date-time) | The time when the server farm free offer expires. |
geoRegion | string | Geographical location for the App Service plan. |
hostingEnvironmentProfile | object | Specification for the App Service Environment to use for the App Service plan. |
hyperV | boolean | If Hyper-V container app service plan true, false otherwise. |
identity | object | Managed service identity. |
installScripts | array | Install scripts associated with this App Service plan. |
isCustomMode | boolean | Whether this server farm is in custom mode. |
isSpot | boolean | If true, this App Service Plan owns spot instances. |
isXenon | boolean | Obsolete: If Hyper-V container app service plan true, false otherwise. |
kind | string | Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference _ for details supported values for kind. |
kubeEnvironmentProfile | object | Specification for the Kubernetes Environment to use for the App Service plan. |
location | string | The geo-location where the resource lives. Required. |
maximumElasticWorkerCount | integer | Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan. |
maximumNumberOfWorkers | integer | Maximum number of instances that can be assigned to this App Service plan. |
network | object | All network settings for the server farm. |
numberOfSites | integer | Number of apps assigned to this App Service plan. |
numberOfWorkers | integer | The number of instances that are assigned to this App Service plan. |
perSiteScaling | boolean | If true, apps assigned to this App Service plan can be scaled independently. If false, apps assigned to this App Service plan will scale to all instances of the plan. |
planDefaultIdentity | object | Identity to use by platform for various features and integrations using managed identity. |
provisioningState | string | Provisioning state of the App Service Plan. Known values are: "Succeeded", "Failed", "Canceled", "InProgress", and "Deleting". (Succeeded, Failed, Canceled, InProgress, Deleting) |
rdpEnabled | boolean | If true, RDP access is enabled for this App Service plan. Only applicable for IsCustomMode ASPs. If false, RDP access is disabled. |
registryAdapters | array | Registry adapters associated with this App Service plan. |
reserved | boolean | If Linux app service plan true, false otherwise. |
resourceGroup | string | Resource group of the App Service plan. |
sku | object | Description of a SKU for a scalable resource. |
spotExpirationTime | string (date-time) | The time when the server farm expires. Valid only if it is a spot server farm. |
status | string | App Service plan status. Known values are: "Ready", "Pending", and "Creating". (Ready, Pending, Creating) |
storageMounts | array | Storage mounts associated with this App Service plan. |
subscription | string | App Service plan subscription. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
targetWorkerCount | integer | Scaling worker count. |
targetWorkerSizeId | integer | Scaling worker size ID. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
workerTierName | string | Target worker tier assigned to the App Service plan. |
zoneRedundant | boolean | If true, this App Service Plan will perform availability zone balancing. If false, this App Service Plan will not perform availability zone balancing. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
asyncScalingEnabled | boolean | If true, this App Service Plan will attempt to scale asynchronously if there are insufficient workers to scale synchronously. If false, this App Service Plan will only attempt sync scaling. |
elasticScaleEnabled | boolean | ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku. |
extendedLocation | object | Extended Location. |
freeOfferExpirationTime | string (date-time) | The time when the server farm free offer expires. |
geoRegion | string | Geographical location for the App Service plan. |
hostingEnvironmentProfile | object | Specification for the App Service Environment to use for the App Service plan. |
hyperV | boolean | If Hyper-V container app service plan true, false otherwise. |
identity | object | Managed service identity. |
installScripts | array | Install scripts associated with this App Service plan. |
isCustomMode | boolean | Whether this server farm is in custom mode. |
isSpot | boolean | If true, this App Service Plan owns spot instances. |
isXenon | boolean | Obsolete: If Hyper-V container app service plan true, false otherwise. |
kind | string | Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference _ for details supported values for kind. |
kubeEnvironmentProfile | object | Specification for the Kubernetes Environment to use for the App Service plan. |
location | string | The geo-location where the resource lives. Required. |
maximumElasticWorkerCount | integer | Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan. |
maximumNumberOfWorkers | integer | Maximum number of instances that can be assigned to this App Service plan. |
network | object | All network settings for the server farm. |
numberOfSites | integer | Number of apps assigned to this App Service plan. |
numberOfWorkers | integer | The number of instances that are assigned to this App Service plan. |
perSiteScaling | boolean | If true, apps assigned to this App Service plan can be scaled independently. If false, apps assigned to this App Service plan will scale to all instances of the plan. |
planDefaultIdentity | object | Identity to use by platform for various features and integrations using managed identity. |
provisioningState | string | Provisioning state of the App Service Plan. Known values are: "Succeeded", "Failed", "Canceled", "InProgress", and "Deleting". (Succeeded, Failed, Canceled, InProgress, Deleting) |
rdpEnabled | boolean | If true, RDP access is enabled for this App Service plan. Only applicable for IsCustomMode ASPs. If false, RDP access is disabled. |
registryAdapters | array | Registry adapters associated with this App Service plan. |
reserved | boolean | If Linux app service plan true, false otherwise. |
resourceGroup | string | Resource group of the App Service plan. |
sku | object | Description of a SKU for a scalable resource. |
spotExpirationTime | string (date-time) | The time when the server farm expires. Valid only if it is a spot server farm. |
status | string | App Service plan status. Known values are: "Ready", "Pending", and "Creating". (Ready, Pending, Creating) |
storageMounts | array | Storage mounts associated with this App Service plan. |
subscription | string | App Service plan subscription. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
targetWorkerCount | integer | Scaling worker count. |
targetWorkerSizeId | integer | Scaling worker size ID. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
workerTierName | string | Target worker tier assigned to the App Service plan. |
zoneRedundant | boolean | If true, this App Service Plan will perform availability zone balancing. If false, this App Service Plan will not perform availability zone balancing. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
asyncScalingEnabled | boolean | If true, this App Service Plan will attempt to scale asynchronously if there are insufficient workers to scale synchronously. If false, this App Service Plan will only attempt sync scaling. |
elasticScaleEnabled | boolean | ServerFarm supports ElasticScale. Apps in this plan will scale as if the ServerFarm was ElasticPremium sku. |
extendedLocation | object | Extended Location. |
freeOfferExpirationTime | string (date-time) | The time when the server farm free offer expires. |
geoRegion | string | Geographical location for the App Service plan. |
hostingEnvironmentProfile | object | Specification for the App Service Environment to use for the App Service plan. |
hyperV | boolean | If Hyper-V container app service plan true, false otherwise. |
identity | object | Managed service identity. |
installScripts | array | Install scripts associated with this App Service plan. |
isCustomMode | boolean | Whether this server farm is in custom mode. |
isSpot | boolean | If true, this App Service Plan owns spot instances. |
isXenon | boolean | Obsolete: If Hyper-V container app service plan true, false otherwise. |
kind | string | Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference _ for details supported values for kind. |
kubeEnvironmentProfile | object | Specification for the Kubernetes Environment to use for the App Service plan. |
location | string | The geo-location where the resource lives. Required. |
maximumElasticWorkerCount | integer | Maximum number of total workers allowed for this ElasticScaleEnabled App Service Plan. |
maximumNumberOfWorkers | integer | Maximum number of instances that can be assigned to this App Service plan. |
network | object | All network settings for the server farm. |
numberOfSites | integer | Number of apps assigned to this App Service plan. |
numberOfWorkers | integer | The number of instances that are assigned to this App Service plan. |
perSiteScaling | boolean | If true, apps assigned to this App Service plan can be scaled independently. If false, apps assigned to this App Service plan will scale to all instances of the plan. |
planDefaultIdentity | object | Identity to use by platform for various features and integrations using managed identity. |
provisioningState | string | Provisioning state of the App Service Plan. Known values are: "Succeeded", "Failed", "Canceled", "InProgress", and "Deleting". (Succeeded, Failed, Canceled, InProgress, Deleting) |
rdpEnabled | boolean | If true, RDP access is enabled for this App Service plan. Only applicable for IsCustomMode ASPs. If false, RDP access is disabled. |
registryAdapters | array | Registry adapters associated with this App Service plan. |
reserved | boolean | If Linux app service plan true, false otherwise. |
resourceGroup | string | Resource group of the App Service plan. |
sku | object | Description of a SKU for a scalable resource. |
spotExpirationTime | string (date-time) | The time when the server farm expires. Valid only if it is a spot server farm. |
status | string | App Service plan status. Known values are: "Ready", "Pending", and "Creating". (Ready, Pending, Creating) |
storageMounts | array | Storage mounts associated with this App Service plan. |
subscription | string | App Service plan subscription. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
targetWorkerCount | integer | Scaling worker count. |
targetWorkerSizeId | integer | Scaling worker size ID. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
workerTierName | string | Target worker tier assigned to the App Service plan. |
zoneRedundant | boolean | If true, this App Service Plan will perform availability zone balancing. If false, this App Service Plan will not perform availability zone balancing. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_hybrid_connection_keys | select | resource_group_name, name, namespace_name, relay_name, subscription_id | Get the send key name and value of a Hybrid Connection. Description for Get the send key name and value of a Hybrid Connection. | |
get_vnet_gateway | select | resource_group_name, name, vnet_name, gateway_name, subscription_id | Get a Virtual Network gateway. Description for Get a Virtual Network gateway. | |
get_route_for_vnet | select | resource_group_name, name, vnet_name, route_name, subscription_id | Get a Virtual Network route in an App Service plan. Description for Get a Virtual Network route in an App Service plan. | |
list_routes_for_vnet | select | resource_group_name, name, vnet_name, subscription_id | Get all routes that are associated with a Virtual Network in an App Service plan. Description for Get all routes that are associated with a Virtual Network in an App Service plan. | |
get | select | resource_group_name, name, subscription_id | Get an App Service plan. Description for Get an App Service plan. | |
list_by_resource_group | select | resource_group_name, subscription_id | Get all App Service plans in a resource group. Description for Get all App Service plans in a resource group. | |
list | select | subscription_id | detailed | Get all App Service plans for a subscription. Description for Get all App Service plans for a subscription. |
create_or_update | insert | resource_group_name, name, subscription_id, location | Creates or updates an App Service Plan. Description for Creates or updates an App Service Plan. | |
update | update | resource_group_name, name, subscription_id | Creates or updates an App Service Plan. Description for Creates or updates an App Service Plan. | |
create_or_update | replace | resource_group_name, name, subscription_id, location | Creates or updates an App Service Plan. Description for Creates or updates an App Service Plan. | |
delete | delete | resource_group_name, name, subscription_id | Delete an App Service plan. Description for Delete an App Service plan. | |
list_capabilities | exec | resource_group_name, name, subscription_id | List all capabilities of an App Service plan. Description for List all capabilities of an App Service plan. | |
list_hybrid_connections | exec | resource_group_name, name, subscription_id | Retrieve all Hybrid Connections in use in an App Service plan. Description for Retrieve all Hybrid Connections in use in an App Service plan. | |
list_web_apps | exec | resource_group_name, name, subscription_id | $skipToken, $filter, $top | Get all apps associated with an App Service plan. Description for Get all apps associated with an App Service plan. |
list_usages | exec | resource_group_name, name, subscription_id | $filter | Gets server farm usage information. Description for Gets server farm usage information. |
list_web_apps_by_hybrid_connection | exec | resource_group_name, name, namespace_name, relay_name, subscription_id | Get all apps that use a Hybrid Connection in an App Service Plan. Description for Get all apps that use a Hybrid Connection in an App Service Plan. | |
list_vnets | exec | resource_group_name, name, subscription_id | Get all Virtual Networks associated with an App Service plan. Description for Get all Virtual Networks associated with an App Service plan. | |
get_server_farm_rdp_password | exec | resource_group_name, name, subscription_id | Get the RDP password for an IsCustomMode ServerFarm. Description for Get the RDP password for an IsCustomMode ServerFarm. | |
get_server_farm_instance_details | exec | resource_group_name, name, subscription_id | Get the instance details for an app service plan. Description for Get the instance details for an app service plan. | |
get_server_farm_skus | exec | resource_group_name, name, subscription_id | Gets all selectable SKUs for a given App Service Plan. Description for Gets all selectable SKUs for a given App Service Plan. | |
get_hybrid_connection | exec | resource_group_name, name, namespace_name, relay_name, subscription_id | Retrieve a Hybrid Connection in use in an App Service plan. Description for Retrieve a Hybrid Connection in use in an App Service plan. | |
delete_hybrid_connection | exec | resource_group_name, name, namespace_name, relay_name, subscription_id | Delete a Hybrid Connection in use in an App Service plan. Description for Delete a Hybrid Connection in use in an App Service plan. | |
get_hybrid_connection_plan_limit | exec | resource_group_name, name, subscription_id | Get the maximum number of Hybrid Connections allowed in an App Service plan. Description for Get the maximum number of Hybrid Connections allowed in an App Service plan. | |
get_vnet_from_server_farm | exec | resource_group_name, name, vnet_name, subscription_id | Get a Virtual Network associated with an App Service plan. Description for Get a Virtual Network associated with an App Service plan. | |
update_vnet_gateway | exec | resource_group_name, name, vnet_name, gateway_name, subscription_id | Update a Virtual Network gateway. Description for Update a Virtual Network gateway. | |
create_or_update_vnet_route | exec | resource_group_name, name, vnet_name, route_name, subscription_id | Create or update a Virtual Network route in an App Service plan. Description for Create or update a Virtual Network route in an App Service plan. | |
update_vnet_route | exec | resource_group_name, name, vnet_name, route_name, subscription_id | Create or update a Virtual Network route in an App Service plan. Description for Create or update a Virtual Network route in an App Service plan. | |
delete_vnet_route | exec | resource_group_name, name, vnet_name, route_name, subscription_id | Delete a Virtual Network route in an App Service plan. Description for Delete a Virtual Network route in an App Service plan. | |
recycle_managed_instance_worker | exec | resource_group_name, name, worker_name, subscription_id | Recycles a managed instance worker machine. Description for Recycles a managed instance worker machine. | |
restart_web_apps | exec | resource_group_name, name, subscription_id | softRestart | Restart all apps in an App Service plan. Description for Restart all apps in an App Service plan. |
reboot_worker | exec | resource_group_name, name, worker_name, subscription_id | Reboot a worker machine in an App Service plan. Description for Reboot a worker machine in an App Service plan. |
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.
| Name | Datatype | Description |
|---|---|---|
gateway_name | string | Name of the gateway. Only the 'primary' gateway is supported. Required. |
name | string | App Service plan. Required. |
namespace_name | string | Name of the Service Bus namespace. Required. |
relay_name | string | Name of the Service Bus relay. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
route_name | string | Name of the Virtual Network route. Required. |
subscription_id | string | |
vnet_name | string | Name of the Virtual Network. Required. |
worker_name | string | Name of worker machine, which typically starts with RD. Required. |
$filter | string | Return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2'). Default value is None. |
$skipToken | string | Skip to a web app in the list of webapps associated with app service plan. If specified, the resulting list will contain web apps starting from (including) the skipToken. Otherwise, the resulting list contains web apps from the start of the list. Default value is None. |
$top | string | List page size. If specified, results are paged. Default value is None. |
detailed | boolean | Specify true to return all App Service plan properties. The default is false, which returns a subset of the properties. Retrieval of all properties may increase the API latency. Default value is None. |
softRestart | boolean | Specify true to perform a soft restart, applies the configuration settings and restarts the apps if necessary. The default is false, which always restarts and reprovisions the apps. Default value is None. |
SELECT examples
- list_hybrid_connection_keys
- get_vnet_gateway
- get_route_for_vnet
- list_routes_for_vnet
- get
- list_by_resource_group
- list
Get the send key name and value of a Hybrid Connection. Description for Get the send key name and value of a Hybrid Connection.
SELECT
id,
name,
kind,
sendKeyName,
sendKeyValue,
type
FROM azure.web.app_service_plans
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND name = '{{ name }}' -- required
AND namespace_name = '{{ namespace_name }}' -- required
AND relay_name = '{{ relay_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Get a Virtual Network gateway. Description for Get a Virtual Network gateway.
SELECT
id,
name,
kind,
systemData,
type,
vnetName,
vpnPackageUri
FROM azure.web.app_service_plans
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND name = '{{ name }}' -- required
AND vnet_name = '{{ vnet_name }}' -- required
AND gateway_name = '{{ gateway_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Get a Virtual Network route in an App Service plan. Description for Get a Virtual Network route in an App Service plan.
SELECT
id,
name,
endAddress,
kind,
routeType,
startAddress,
systemData,
type
FROM azure.web.app_service_plans
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND name = '{{ name }}' -- required
AND vnet_name = '{{ vnet_name }}' -- required
AND route_name = '{{ route_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Get all routes that are associated with a Virtual Network in an App Service plan. Description for Get all routes that are associated with a Virtual Network in an App Service plan.
SELECT
id,
name,
endAddress,
kind,
routeType,
startAddress,
systemData,
type
FROM azure.web.app_service_plans
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND name = '{{ name }}' -- required
AND vnet_name = '{{ vnet_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Get an App Service plan. Description for Get an App Service plan.
SELECT
id,
name,
asyncScalingEnabled,
elasticScaleEnabled,
extendedLocation,
freeOfferExpirationTime,
geoRegion,
hostingEnvironmentProfile,
hyperV,
identity,
installScripts,
isCustomMode,
isSpot,
isXenon,
kind,
kubeEnvironmentProfile,
location,
maximumElasticWorkerCount,
maximumNumberOfWorkers,
network,
numberOfSites,
numberOfWorkers,
perSiteScaling,
planDefaultIdentity,
provisioningState,
rdpEnabled,
registryAdapters,
reserved,
resourceGroup,
sku,
spotExpirationTime,
status,
storageMounts,
subscription,
systemData,
tags,
targetWorkerCount,
targetWorkerSizeId,
type,
workerTierName,
zoneRedundant
FROM azure.web.app_service_plans
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND name = '{{ name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Get all App Service plans in a resource group. Description for Get all App Service plans in a resource group.
SELECT
id,
name,
asyncScalingEnabled,
elasticScaleEnabled,
extendedLocation,
freeOfferExpirationTime,
geoRegion,
hostingEnvironmentProfile,
hyperV,
identity,
installScripts,
isCustomMode,
isSpot,
isXenon,
kind,
kubeEnvironmentProfile,
location,
maximumElasticWorkerCount,
maximumNumberOfWorkers,
network,
numberOfSites,
numberOfWorkers,
perSiteScaling,
planDefaultIdentity,
provisioningState,
rdpEnabled,
registryAdapters,
reserved,
resourceGroup,
sku,
spotExpirationTime,
status,
storageMounts,
subscription,
systemData,
tags,
targetWorkerCount,
targetWorkerSizeId,
type,
workerTierName,
zoneRedundant
FROM azure.web.app_service_plans
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Get all App Service plans for a subscription. Description for Get all App Service plans for a subscription.
SELECT
id,
name,
asyncScalingEnabled,
elasticScaleEnabled,
extendedLocation,
freeOfferExpirationTime,
geoRegion,
hostingEnvironmentProfile,
hyperV,
identity,
installScripts,
isCustomMode,
isSpot,
isXenon,
kind,
kubeEnvironmentProfile,
location,
maximumElasticWorkerCount,
maximumNumberOfWorkers,
network,
numberOfSites,
numberOfWorkers,
perSiteScaling,
planDefaultIdentity,
provisioningState,
rdpEnabled,
registryAdapters,
reserved,
resourceGroup,
sku,
spotExpirationTime,
status,
storageMounts,
subscription,
systemData,
tags,
targetWorkerCount,
targetWorkerSizeId,
type,
workerTierName,
zoneRedundant
FROM azure.web.app_service_plans
WHERE subscription_id = '{{ subscription_id }}' -- required
AND detailed = '{{ detailed }}'
;
INSERT examples
- create_or_update
- Manifest
Creates or updates an App Service Plan. Description for Creates or updates an App Service Plan.
INSERT INTO azure.web.app_service_plans (
tags,
location,
properties,
sku,
extendedLocation,
kind,
identity,
resource_group_name,
name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ sku }}',
'{{ extendedLocation }}',
'{{ kind }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
extendedLocation,
identity,
kind,
location,
properties,
sku,
systemData,
tags,
type
;
# Description fields are for documentation purposes
- name: app_service_plans
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the app_service_plans resource.
- name: name
value: "{{ name }}"
description: Required parameter for the app_service_plans resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the app_service_plans resource.
- name: tags
value: "{{ tags }}"
description: |
Resource tags.
- name: location
value: "{{ location }}"
description: |
The geo-location where the resource lives. Required.
- name: properties
description: |
AppServicePlan resource specific properties.
value:
workerTierName: "{{ workerTierName }}"
status: "{{ status }}"
subscription: "{{ subscription }}"
hostingEnvironmentProfile:
id: "{{ id }}"
name: "{{ name }}"
type: "{{ type }}"
maximumNumberOfWorkers: {{ maximumNumberOfWorkers }}
numberOfWorkers: {{ numberOfWorkers }}
geoRegion: "{{ geoRegion }}"
perSiteScaling: {{ perSiteScaling }}
elasticScaleEnabled: {{ elasticScaleEnabled }}
maximumElasticWorkerCount: {{ maximumElasticWorkerCount }}
numberOfSites: {{ numberOfSites }}
isSpot: {{ isSpot }}
spotExpirationTime: "{{ spotExpirationTime }}"
freeOfferExpirationTime: "{{ freeOfferExpirationTime }}"
resourceGroup: "{{ resourceGroup }}"
reserved: {{ reserved }}
isXenon: {{ isXenon }}
hyperV: {{ hyperV }}
targetWorkerCount: {{ targetWorkerCount }}
targetWorkerSizeId: {{ targetWorkerSizeId }}
provisioningState: "{{ provisioningState }}"
kubeEnvironmentProfile:
id: "{{ id }}"
name: "{{ name }}"
type: "{{ type }}"
zoneRedundant: {{ zoneRedundant }}
asyncScalingEnabled: {{ asyncScalingEnabled }}
planDefaultIdentity:
identityType: "{{ identityType }}"
userAssignedIdentityResourceId: "{{ userAssignedIdentityResourceId }}"
isCustomMode: {{ isCustomMode }}
registryAdapters:
- registryKey: "{{ registryKey }}"
type: "{{ type }}"
keyVaultSecretReference:
secretUri: "{{ secretUri }}"
referenceStatus: "{{ referenceStatus }}"
installScripts:
- name: "{{ name }}"
source:
sourceUri: "{{ sourceUri }}"
type: "{{ type }}"
network:
virtualNetworkSubnetId: "{{ virtualNetworkSubnetId }}"
storageMounts:
- name: "{{ name }}"
type: "{{ type }}"
source: "{{ source }}"
destinationPath: "{{ destinationPath }}"
credentialsKeyVaultReference:
secretUri: "{{ secretUri }}"
referenceStatus: "{{ referenceStatus }}"
rdpEnabled: {{ rdpEnabled }}
- name: sku
description: |
Description of a SKU for a scalable resource.
value:
name: "{{ name }}"
tier: "{{ tier }}"
size: "{{ size }}"
family: "{{ family }}"
capacity: {{ capacity }}
skuCapacity:
minimum: {{ minimum }}
maximum: {{ maximum }}
elasticMaximum: {{ elasticMaximum }}
default: {{ default }}
scaleType: "{{ scaleType }}"
locations:
- "{{ locations }}"
capabilities:
- name: "{{ name }}"
value: "{{ value }}"
reason: "{{ reason }}"
- name: extendedLocation
description: |
Extended Location.
value:
name: "{{ name }}"
type: "{{ type }}"
- name: kind
value: "{{ kind }}"
description: |
Kind of resource. If the resource is an app, you can refer to `https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference `_ for details supported values for kind.
- name: identity
description: |
Managed service identity.
value:
type: "{{ type }}"
tenantId: "{{ tenantId }}"
principalId: "{{ principalId }}"
userAssignedIdentities: "{{ userAssignedIdentities }}"
UPDATE examples
- update
Creates or updates an App Service Plan. Description for Creates or updates an App Service Plan.
UPDATE azure.web.app_service_plans
SET
kind = '{{ kind }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND name = '{{ name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
extendedLocation,
identity,
kind,
location,
properties,
sku,
systemData,
tags,
type;
REPLACE examples
- create_or_update
Creates or updates an App Service Plan. Description for Creates or updates an App Service Plan.
REPLACE azure.web.app_service_plans
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
sku = '{{ sku }}',
extendedLocation = '{{ extendedLocation }}',
kind = '{{ kind }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND name = '{{ name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
extendedLocation,
identity,
kind,
location,
properties,
sku,
systemData,
tags,
type;
DELETE examples
- delete
Delete an App Service plan. Description for Delete an App Service plan.
DELETE FROM azure.web.app_service_plans
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND name = '{{ name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;
Lifecycle Methods
- list_capabilities
- list_hybrid_connections
- list_web_apps
- list_usages
- list_web_apps_by_hybrid_connection
- list_vnets
- get_server_farm_rdp_password
- get_server_farm_instance_details
- get_server_farm_skus
- get_hybrid_connection
- delete_hybrid_connection
- get_hybrid_connection_plan_limit
- get_vnet_from_server_farm
- update_vnet_gateway
- create_or_update_vnet_route
- update_vnet_route
- delete_vnet_route
- recycle_managed_instance_worker
- restart_web_apps
- reboot_worker
List all capabilities of an App Service plan. Description for List all capabilities of an App Service plan.
EXEC azure.web.app_service_plans.list_capabilities
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Retrieve all Hybrid Connections in use in an App Service plan. Description for Retrieve all Hybrid Connections in use in an App Service plan.
EXEC azure.web.app_service_plans.list_hybrid_connections
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Get all apps associated with an App Service plan. Description for Get all apps associated with an App Service plan.
EXEC azure.web.app_service_plans.list_web_apps
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@subscription_id='{{ subscription_id }}' --required,
@$skipToken='{{ $skipToken }}',
@$filter='{{ $filter }}',
@$top='{{ $top }}'
;
Gets server farm usage information. Description for Gets server farm usage information.
EXEC azure.web.app_service_plans.list_usages
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@subscription_id='{{ subscription_id }}' --required,
@$filter='{{ $filter }}'
;
Get all apps that use a Hybrid Connection in an App Service Plan. Description for Get all apps that use a Hybrid Connection in an App Service Plan.
EXEC azure.web.app_service_plans.list_web_apps_by_hybrid_connection
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@namespace_name='{{ namespace_name }}' --required,
@relay_name='{{ relay_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Get all Virtual Networks associated with an App Service plan. Description for Get all Virtual Networks associated with an App Service plan.
EXEC azure.web.app_service_plans.list_vnets
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Get the RDP password for an IsCustomMode ServerFarm. Description for Get the RDP password for an IsCustomMode ServerFarm.
EXEC azure.web.app_service_plans.get_server_farm_rdp_password
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Get the instance details for an app service plan. Description for Get the instance details for an app service plan.
EXEC azure.web.app_service_plans.get_server_farm_instance_details
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Gets all selectable SKUs for a given App Service Plan. Description for Gets all selectable SKUs for a given App Service Plan.
EXEC azure.web.app_service_plans.get_server_farm_skus
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Retrieve a Hybrid Connection in use in an App Service plan. Description for Retrieve a Hybrid Connection in use in an App Service plan.
EXEC azure.web.app_service_plans.get_hybrid_connection
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@namespace_name='{{ namespace_name }}' --required,
@relay_name='{{ relay_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Delete a Hybrid Connection in use in an App Service plan. Description for Delete a Hybrid Connection in use in an App Service plan.
EXEC azure.web.app_service_plans.delete_hybrid_connection
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@namespace_name='{{ namespace_name }}' --required,
@relay_name='{{ relay_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Get the maximum number of Hybrid Connections allowed in an App Service plan. Description for Get the maximum number of Hybrid Connections allowed in an App Service plan.
EXEC azure.web.app_service_plans.get_hybrid_connection_plan_limit
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Get a Virtual Network associated with an App Service plan. Description for Get a Virtual Network associated with an App Service plan.
EXEC azure.web.app_service_plans.get_vnet_from_server_farm
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@vnet_name='{{ vnet_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Update a Virtual Network gateway. Description for Update a Virtual Network gateway.
EXEC azure.web.app_service_plans.update_vnet_gateway
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@vnet_name='{{ vnet_name }}' --required,
@gateway_name='{{ gateway_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}",
"kind": "{{ kind }}"
}'
;
Create or update a Virtual Network route in an App Service plan. Description for Create or update a Virtual Network route in an App Service plan.
EXEC azure.web.app_service_plans.create_or_update_vnet_route
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@vnet_name='{{ vnet_name }}' --required,
@route_name='{{ route_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}",
"kind": "{{ kind }}"
}'
;
Create or update a Virtual Network route in an App Service plan. Description for Create or update a Virtual Network route in an App Service plan.
EXEC azure.web.app_service_plans.update_vnet_route
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@vnet_name='{{ vnet_name }}' --required,
@route_name='{{ route_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}",
"kind": "{{ kind }}"
}'
;
Delete a Virtual Network route in an App Service plan. Description for Delete a Virtual Network route in an App Service plan.
EXEC azure.web.app_service_plans.delete_vnet_route
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@vnet_name='{{ vnet_name }}' --required,
@route_name='{{ route_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Recycles a managed instance worker machine. Description for Recycles a managed instance worker machine.
EXEC azure.web.app_service_plans.recycle_managed_instance_worker
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@worker_name='{{ worker_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Restart all apps in an App Service plan. Description for Restart all apps in an App Service plan.
EXEC azure.web.app_service_plans.restart_web_apps
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@subscription_id='{{ subscription_id }}' --required,
@softRestart={{ softRestart }}
;
Reboot a worker machine in an App Service plan. Description for Reboot a worker machine in an App Service plan.
EXEC azure.web.app_service_plans.reboot_worker
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@worker_name='{{ worker_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;