Skip to main content

app_service_environments

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

Overview

Nameapp_service_environments
TypeResource
Idazure.web.app_service_environments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id.
namestringResource Name.
kindstringKind of resource.
metricAvailabilitiesarrayList of time grains supported for the metric together with retention period.
primaryAggregationTypestringPrimary aggregation type.
propertiesobjectResource metric definition properties.
resourceUristringResource URI.
typestringResource type.
unitstringUnit of the metric.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_worker_pool_instance_metric_definitionsselectresource_group_name, name, worker_pool_name, instance, subscription_idGet metric definitions for a specific instance of a worker pool of an App Service Environment. Description for Get metric definitions for a specific instance of a worker pool of an App Service Environment.
list_web_worker_metric_definitionsselectresource_group_name, name, worker_pool_name, subscription_idGet metric definitions for a worker pool of an App Service Environment. Description for Get metric definitions for a worker pool of an App Service Environment.
list_multi_role_pool_instance_metric_definitionsselectresource_group_name, name, instance, subscription_idGet metric definitions for a specific instance of a multi-role pool of an App Service Environment. Description for Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.
get_diagnostics_itemselectresource_group_name, name, diagnostics_name, subscription_idGet a diagnostics item for an App Service Environment. Description for Get a diagnostics item for an App Service Environment.
get_private_endpoint_connectionselectresource_group_name, name, private_endpoint_connection_name, subscription_idGets a private endpoint connection. Description for Gets a private endpoint connection.
getselectresource_group_name, name, subscription_idGet the properties of an App Service Environment. Description for Get the properties of an App Service Environment.
list_by_resource_groupselectresource_group_name, subscription_idGet all App Service Environments in a resource group. Description for Get all App Service Environments in a resource group.
listselectsubscription_idGet all App Service Environments for a subscription. Description for Get all App Service Environments for a subscription.
create_or_updateinsertresource_group_name, name, subscription_id, locationCreate or update an App Service Environment. Description for Create or update an App Service Environment.
updateupdateresource_group_name, name, subscription_idCreate or update an App Service Environment. Description for Create or update an App Service Environment.
create_or_updatereplaceresource_group_name, name, subscription_id, locationCreate or update an App Service Environment. Description for Create or update an App Service Environment.
deletedeleteresource_group_name, name, subscription_idforceDeleteDelete an App Service Environment. Description for Delete an App Service Environment.
list_worker_poolsexecresource_group_name, name, subscription_idGet all worker pools of an App Service Environment. Description for Get all worker pools of an App Service Environment.
list_worker_pool_skusexecresource_group_name, name, worker_pool_name, subscription_idGet available SKUs for scaling a worker pool. Description for Get available SKUs for scaling a worker pool.
list_web_worker_usagesexecresource_group_name, name, worker_pool_name, subscription_idGet usage metrics for a worker pool of an App Service Environment. Description for Get usage metrics for a worker pool of an App Service Environment.
list_capacitiesexecresource_group_name, name, subscription_idGet the used, available, and total worker capacity an App Service Environment. Description for Get the used, available, and total worker capacity an App Service Environment.
list_diagnosticsexecresource_group_name, name, subscription_idGet diagnostic information for an App Service Environment. Description for Get diagnostic information for an App Service Environment.
list_operationsexecresource_group_name, name, subscription_idList all currently running operations on the App Service Environment. Description for List all currently running operations on the App Service Environment.
list_app_service_plansexecresource_group_name, name, subscription_idGet all App Service plans in an App Service Environment. Description for Get all App Service plans in an App Service Environment.
list_web_appsexecresource_group_name, name, subscription_idpropertiesToIncludeGet all apps in an App Service Environment. Description for Get all apps in an App Service Environment.
list_usagesexecresource_group_name, name, subscription_id$filterGet global usage metrics of an App Service Environment. Description for Get global usage metrics of an App Service Environment.
list_multi_role_poolsexecresource_group_name, name, subscription_idGet all multi-role pools. Description for Get all multi-role pools.
list_multi_role_metric_definitionsexecresource_group_name, name, subscription_idGet metric definitions for a multi-role pool of an App Service Environment. Description for Get metric definitions for a multi-role pool of an App Service Environment.
list_multi_role_pool_skusexecresource_group_name, name, subscription_idGet available SKUs for scaling a multi-role pool. Description for Get available SKUs for scaling a multi-role pool.
list_multi_role_usagesexecresource_group_name, name, subscription_idGet usage metrics for a multi-role pool of an App Service Environment. Description for Get usage metrics for a multi-role pool of an App Service Environment.
get_worker_poolexecresource_group_name, name, worker_pool_name, subscription_idGet properties of a worker pool. Description for Get properties of a worker pool.
create_or_update_worker_poolexecresource_group_name, name, worker_pool_name, subscription_idCreate or update a worker pool. Description for Create or update a worker pool.
update_worker_poolexecresource_group_name, name, worker_pool_name, subscription_idCreate or update a worker pool. Description for Create or update a worker pool.
get_inbound_network_dependencies_endpointsexecresource_group_name, name, subscription_idGet the network endpoints of all inbound dependencies of an App Service Environment. Description for Get the network endpoints of all inbound dependencies of an App Service Environment.
get_outbound_network_dependencies_endpointsexecresource_group_name, name, subscription_idGet the network endpoints of all outbound dependencies of an App Service Environment. Description for Get the network endpoints of all outbound dependencies of an App Service Environment.
get_private_link_resourcesexecresource_group_name, name, subscription_idGets the private link resources. Description for Gets the private link resources.
get_vip_infoexecresource_group_name, name, subscription_idGet IP addresses assigned to an App Service Environment. Description for Get IP addresses assigned to an App Service Environment.
get_ase_custom_dns_suffix_configurationexecresource_group_name, name, subscription_idGet Custom Dns Suffix configuration of an App Service Environment. Get Custom Dns Suffix configuration of an App Service Environment.
update_ase_custom_dns_suffix_configurationexecresource_group_name, name, subscription_idUpdate Custom Dns Suffix configuration of an App Service Environment. Update Custom Dns Suffix configuration of an App Service Environment.
delete_ase_custom_dns_suffix_configurationexecresource_group_name, name, subscription_idDelete Custom Dns Suffix configuration of an App Service Environment. Delete Custom Dns Suffix configuration of an App Service Environment.
get_ase_v3_networking_configurationexecresource_group_name, name, subscription_idGet networking configuration of an App Service Environment. Description for Get networking configuration of an App Service Environment.
update_ase_networking_configurationexecresource_group_name, name, subscription_idUpdate networking configuration of an App Service Environment. Description for Update networking configuration of an App Service Environment.
get_multi_role_poolexecresource_group_name, name, subscription_idGet properties of a multi-role pool. Description for Get properties of a multi-role pool.
create_or_update_multi_role_poolexecresource_group_name, name, subscription_idCreate or update a multi-role pool. Description for Create or update a multi-role pool.
update_multi_role_poolexecresource_group_name, name, subscription_idCreate or update a multi-role pool. Description for Create or update a multi-role pool.
approve_or_reject_private_endpoint_connectionexecresource_group_name, name, private_endpoint_connection_name, subscription_idApproves or rejects a private endpoint connection. Description for Approves or rejects a private endpoint connection.
delete_private_endpoint_connectionexecresource_group_name, name, private_endpoint_connection_name, subscription_idDeletes a private endpoint connection. Description for Deletes a private endpoint connection.
get_private_endpoint_connection_listexecresource_group_name, name, subscription_idGets the list of private endpoints associated with a hosting environment. Description for Gets the list of private endpoints associated with a hosting environment.
change_vnetexecresource_group_name, name, subscription_id, idMove an App Service Environment to a different VNET. Description for Move an App Service Environment to a different VNET.
test_upgrade_available_notificationexecresource_group_name, name, subscription_idSend a test notification that an upgrade is available for this App Service Environment. Send a test notification that an upgrade is available for this App Service Environment.
upgradeexecresource_group_name, name, subscription_idInitiate an upgrade of an App Service Environment if one is available. Description for Initiate an upgrade of an App Service Environment if one is available.
rebootexecresource_group_name, name, subscription_idReboot all machines in an App Service Environment. Description for Reboot all machines in an App Service Environment.
resumeexecresource_group_name, name, subscription_idResume an App Service Environment. Description for Resume an App Service Environment.
suspendexecresource_group_name, name, subscription_idSuspend an App Service Environment. Description for Suspend 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
diagnostics_namestringRequired.
instancestringName of the instance in the multi-role pool. Required.
namestringName of the App Service Environment. Required.
private_endpoint_connection_namestringName of the private endpoint connection. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
worker_pool_namestringName of the worker pool. Required.
$filterstringReturn only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'. Default value is None.
forceDeletebooleanSpecify true to force the deletion even if the App Service Environment contains resources. The default is false. Default value is None.
propertiesToIncludestringComma separated list of app properties to include. Default value is None.

SELECT examples

Get metric definitions for a specific instance of a worker pool of an App Service Environment. Description for Get metric definitions for a specific instance of a worker pool of an App Service Environment.

SELECT
id,
name,
kind,
metricAvailabilities,
primaryAggregationType,
properties,
resourceUri,
type,
unit
FROM azure.web.app_service_environments
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND name = '{{ name }}' -- required
AND worker_pool_name = '{{ worker_pool_name }}' -- required
AND instance = '{{ instance }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update an App Service Environment. Description for Create or update an App Service Environment.

INSERT INTO azure.web.app_service_environments (
tags,
location,
properties,
kind,
resource_group_name,
name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ kind }}',
'{{ resource_group_name }}',
'{{ name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
kind,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Create or update an App Service Environment. Description for Create or update an App Service Environment.

UPDATE azure.web.app_service_environments
SET
kind = '{{ kind }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND name = '{{ name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
kind,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create or update an App Service Environment. Description for Create or update an App Service Environment.

REPLACE azure.web.app_service_environments
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
kind = '{{ kind }}'
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,
kind,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete an App Service Environment. Description for Delete an App Service Environment.

DELETE FROM azure.web.app_service_environments
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND name = '{{ name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND forceDelete = '{{ forceDelete }}'
;

Lifecycle Methods

Get all worker pools of an App Service Environment. Description for Get all worker pools of an App Service Environment.

EXEC azure.web.app_service_environments.list_worker_pools 
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;