AppServiceEnvironmentsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

WebSiteManagementClient's

<xref:app_service_environments> attribute.

Inheritance
builtins.object
AppServiceEnvironmentsOperations

Constructor

AppServiceEnvironmentsOperations(*args, **kwargs)

Methods

begin_change_vnet

Move an App Service Environment to a different VNET.

Move an App Service Environment to a different VNET.

begin_create_or_update

Create or update an App Service Environment.

Create or update an App Service Environment.

begin_create_or_update_multi_role_pool

Create or update a multi-role pool.

Create or update a multi-role pool.

begin_create_or_update_worker_pool

Create or update a worker pool.

Create or update a worker pool.

begin_delete

Delete an App Service Environment.

Delete an App Service Environment.

begin_resume

Resume an App Service Environment.

Resume an App Service Environment.

begin_suspend

Suspend an App Service Environment.

Suspend an App Service Environment.

get

Get the properties of an App Service Environment.

Get the properties of an App Service Environment.

get_diagnostics_item

Get a diagnostics item for an App Service Environment.

Get a diagnostics item for an App Service Environment.

get_inbound_network_dependencies_endpoints

Get the network endpoints of all inbound dependencies of an App Service Environment.

Get the network endpoints of all inbound dependencies of an App Service Environment.

get_multi_role_pool

Get properties of a multi-role pool.

Get properties of a multi-role pool.

get_outbound_network_dependencies_endpoints

Get the network endpoints of all outbound dependencies of an App Service Environment.

Get the network endpoints of all outbound dependencies of an App Service Environment.

get_vip_info

Get IP addresses assigned to an App Service Environment.

Get IP addresses assigned to an App Service Environment.

get_worker_pool

Get properties of a worker pool.

Get properties of a worker pool.

list

Get all App Service Environments for a subscription.

Get all App Service Environments for a subscription.

list_app_service_plans

Get all App Service plans in an App Service Environment.

Get all App Service plans in an App Service Environment.

list_by_resource_group

Get all App Service Environments in a resource group.

Get all App Service Environments in a resource group.

list_capacities

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

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

list_diagnostics

Get diagnostic information for an App Service Environment.

Get diagnostic information for an App Service Environment.

list_multi_role_metric_definitions

Get metric definitions for a multi-role pool of an App Service Environment.

Get metric definitions for a multi-role pool of an App Service Environment.

list_multi_role_pool_instance_metric_definitions

Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.

Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.

list_multi_role_pool_skus

Get available SKUs for scaling a multi-role pool.

Get available SKUs for scaling a multi-role pool.

list_multi_role_pools

Get all multi-role pools.

Get all multi-role pools.

list_multi_role_usages

Get usage metrics for a multi-role pool of an App Service Environment.

Get usage metrics for a multi-role pool of an App Service Environment.

list_operations

List all currently running operations on the App Service Environment.

List all currently running operations on the App Service Environment.

list_usages

Get global usage metrics of an App Service Environment.

Get global usage metrics of an App Service Environment.

list_web_apps

Get all apps in an App Service Environment.

Get all apps in an App Service Environment.

list_web_worker_metric_definitions

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

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

list_web_worker_usages

Get usage metrics for a worker pool of an App Service Environment.

Get usage metrics for a worker pool of an App Service Environment.

list_worker_pool_instance_metric_definitions

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

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

list_worker_pool_skus

Get available SKUs for scaling a worker pool.

Get available SKUs for scaling a worker pool.

list_worker_pools

Get all worker pools of an App Service Environment.

Get all worker pools of an App Service Environment.

reboot

Reboot all machines in an App Service Environment.

Reboot all machines in an App Service Environment.

update

Create or update an App Service Environment.

Create or update an App Service Environment.

update_multi_role_pool

Create or update a multi-role pool.

Create or update a multi-role pool.

update_worker_pool

Create or update a worker pool.

Create or update a worker pool.

begin_change_vnet

Move an App Service Environment to a different VNET.

Move an App Service Environment to a different VNET.

begin_change_vnet(resource_group_name: str, name: str, vnet_info: _models.VirtualNetworkProfile, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[Iterable['_models.Site']]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

vnet_info
Required

Details for the new virtual network. Is either a VirtualNetworkProfile type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of LROPoller that returns an iterator like instance of either WebAppCollection or the result of cls(response)

Exceptions

Type Description

begin_create_or_update

Create or update an App Service Environment.

Create or update an App Service Environment.

begin_create_or_update(resource_group_name: str, name: str, hosting_environment_envelope: _models.AppServiceEnvironmentResource, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.AppServiceEnvironmentResource]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

hosting_environment_envelope
Required

Configuration details of the App Service Environment. Is either a AppServiceEnvironmentResource type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of LROPoller that returns either AppServiceEnvironmentResource or the result of cls(response)

Exceptions

Type Description

begin_create_or_update_multi_role_pool

Create or update a multi-role pool.

Create or update a multi-role pool.

begin_create_or_update_multi_role_pool(resource_group_name: str, name: str, multi_role_pool_envelope: _models.WorkerPoolResource, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.WorkerPoolResource]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

multi_role_pool_envelope
Required

Properties of the multi-role pool. Is either a WorkerPoolResource type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of LROPoller that returns either WorkerPoolResource or the result of cls(response)

Exceptions

Type Description

begin_create_or_update_worker_pool

Create or update a worker pool.

Create or update a worker pool.

begin_create_or_update_worker_pool(resource_group_name: str, name: str, worker_pool_name: str, worker_pool_envelope: _models.WorkerPoolResource, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.WorkerPoolResource]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

worker_pool_name
Required
str

Name of the worker pool. Required.

worker_pool_envelope
Required

Properties of the worker pool. Is either a WorkerPoolResource type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of LROPoller that returns either WorkerPoolResource or the result of cls(response)

Exceptions

Type Description

begin_delete

Delete an App Service Environment.

Delete an App Service Environment.

begin_delete(resource_group_name: str, name: str, force_delete: bool | None = None, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

force_delete
Required

Specify <code>true</code> to force the deletion even if the App Service Environment contains resources. The default is <code>false</code>. Default value is None.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

begin_resume

Resume an App Service Environment.

Resume an App Service Environment.

begin_resume(resource_group_name: str, name: str, **kwargs: Any) -> LROPoller[Iterable[Site]]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of LROPoller that returns an iterator like instance of either WebAppCollection or the result of cls(response)

Exceptions

Type Description

begin_suspend

Suspend an App Service Environment.

Suspend an App Service Environment.

begin_suspend(resource_group_name: str, name: str, **kwargs: Any) -> LROPoller[Iterable[Site]]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of LROPoller that returns an iterator like instance of either WebAppCollection or the result of cls(response)

Exceptions

Type Description

get

Get the properties of an App Service Environment.

Get the properties of an App Service Environment.

get(resource_group_name: str, name: str, **kwargs: Any) -> AppServiceEnvironmentResource

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

AppServiceEnvironmentResource or the result of cls(response)

Exceptions

Type Description

get_diagnostics_item

Get a diagnostics item for an App Service Environment.

Get a diagnostics item for an App Service Environment.

get_diagnostics_item(resource_group_name: str, name: str, diagnostics_name: str, **kwargs: Any) -> HostingEnvironmentDiagnostics

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

diagnostics_name
Required
str

Name of the diagnostics item. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

HostingEnvironmentDiagnostics or the result of cls(response)

Exceptions

Type Description

get_inbound_network_dependencies_endpoints

Get the network endpoints of all inbound dependencies of an App Service Environment.

Get the network endpoints of all inbound dependencies of an App Service Environment.

get_inbound_network_dependencies_endpoints(resource_group_name: str, name: str, **kwargs: Any) -> Iterable[InboundEnvironmentEndpoint]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either InboundEnvironmentEndpoint or the result of cls(response)

Exceptions

Type Description

get_multi_role_pool

Get properties of a multi-role pool.

Get properties of a multi-role pool.

get_multi_role_pool(resource_group_name: str, name: str, **kwargs: Any) -> WorkerPoolResource

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

WorkerPoolResource or the result of cls(response)

Exceptions

Type Description

get_outbound_network_dependencies_endpoints

Get the network endpoints of all outbound dependencies of an App Service Environment.

Get the network endpoints of all outbound dependencies of an App Service Environment.

get_outbound_network_dependencies_endpoints(resource_group_name: str, name: str, **kwargs: Any) -> Iterable[OutboundEnvironmentEndpoint]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either OutboundEnvironmentEndpoint or the result of cls(response)

Exceptions

Type Description

get_vip_info

Get IP addresses assigned to an App Service Environment.

Get IP addresses assigned to an App Service Environment.

get_vip_info(resource_group_name: str, name: str, **kwargs: Any) -> AddressResponse

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

AddressResponse or the result of cls(response)

Exceptions

Type Description

get_worker_pool

Get properties of a worker pool.

Get properties of a worker pool.

get_worker_pool(resource_group_name: str, name: str, worker_pool_name: str, **kwargs: Any) -> WorkerPoolResource

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

worker_pool_name
Required
str

Name of the worker pool. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

WorkerPoolResource or the result of cls(response)

Exceptions

Type Description

list

Get all App Service Environments for a subscription.

Get all App Service Environments for a subscription.

list(**kwargs: Any) -> Iterable[AppServiceEnvironmentResource]

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either AppServiceEnvironmentResource or the result of cls(response)

Exceptions

Type Description

list_app_service_plans

Get all App Service plans in an App Service Environment.

Get all App Service plans in an App Service Environment.

list_app_service_plans(resource_group_name: str, name: str, **kwargs: Any) -> Iterable[AppServicePlan]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either AppServicePlan or the result of cls(response)

Exceptions

Type Description

list_by_resource_group

Get all App Service Environments in a resource group.

Get all App Service Environments in a resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[AppServiceEnvironmentResource]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either AppServiceEnvironmentResource or the result of cls(response)

Exceptions

Type Description

list_capacities

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

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

list_capacities(resource_group_name: str, name: str, **kwargs: Any) -> Iterable[StampCapacity]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either StampCapacity or the result of cls(response)

Exceptions

Type Description

list_diagnostics

Get diagnostic information for an App Service Environment.

Get diagnostic information for an App Service Environment.

list_diagnostics(resource_group_name: str, name: str, **kwargs: Any) -> List[HostingEnvironmentDiagnostics]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

list of HostingEnvironmentDiagnostics or the result of cls(response)

Exceptions

Type Description

list_multi_role_metric_definitions

Get metric definitions for a multi-role pool of an App Service Environment.

Get metric definitions for a multi-role pool of an App Service Environment.

list_multi_role_metric_definitions(resource_group_name: str, name: str, **kwargs: Any) -> Iterable[ResourceMetricDefinition]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either ResourceMetricDefinition or the result of cls(response)

Exceptions

Type Description

list_multi_role_pool_instance_metric_definitions

Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.

Get metric definitions for a specific instance of a multi-role pool of an App Service Environment.

list_multi_role_pool_instance_metric_definitions(resource_group_name: str, name: str, instance: str, **kwargs: Any) -> Iterable[ResourceMetricDefinition]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

instance
Required
str

Name of the instance in the multi-role pool. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either ResourceMetricDefinition or the result of cls(response)

Exceptions

Type Description

list_multi_role_pool_skus

Get available SKUs for scaling a multi-role pool.

Get available SKUs for scaling a multi-role pool.

list_multi_role_pool_skus(resource_group_name: str, name: str, **kwargs: Any) -> Iterable[SkuInfo]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either SkuInfo or the result of cls(response)

Exceptions

Type Description

list_multi_role_pools

Get all multi-role pools.

Get all multi-role pools.

list_multi_role_pools(resource_group_name: str, name: str, **kwargs: Any) -> Iterable[WorkerPoolResource]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either WorkerPoolResource or the result of cls(response)

Exceptions

Type Description

list_multi_role_usages

Get usage metrics for a multi-role pool of an App Service Environment.

Get usage metrics for a multi-role pool of an App Service Environment.

list_multi_role_usages(resource_group_name: str, name: str, **kwargs: Any) -> Iterable[Usage]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either Usage or the result of cls(response)

Exceptions

Type Description

list_operations

List all currently running operations on the App Service Environment.

List all currently running operations on the App Service Environment.

list_operations(resource_group_name: str, name: str, **kwargs: Any) -> List[Operation]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

list of Operation or the result of cls(response)

Exceptions

Type Description

list_usages

Get global usage metrics of an App Service Environment.

Get global usage metrics of an App Service Environment.

list_usages(resource_group_name: str, name: str, filter: str | None = None, **kwargs: Any) -> Iterable[CsmUsageQuota]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

filter
Required
str

Return 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.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either CsmUsageQuota or the result of cls(response)

Exceptions

Type Description

list_web_apps

Get all apps in an App Service Environment.

Get all apps in an App Service Environment.

list_web_apps(resource_group_name: str, name: str, properties_to_include: str | None = None, **kwargs: Any) -> Iterable[Site]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

properties_to_include
Required
str

Comma separated list of app properties to include. Default value is None.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either Site or the result of cls(response)

Exceptions

Type Description

list_web_worker_metric_definitions

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

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

list_web_worker_metric_definitions(resource_group_name: str, name: str, worker_pool_name: str, **kwargs: Any) -> Iterable[ResourceMetricDefinition]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

worker_pool_name
Required
str

Name of the worker pool. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either ResourceMetricDefinition or the result of cls(response)

Exceptions

Type Description

list_web_worker_usages

Get usage metrics for a worker pool of an App Service Environment.

Get usage metrics for a worker pool of an App Service Environment.

list_web_worker_usages(resource_group_name: str, name: str, worker_pool_name: str, **kwargs: Any) -> Iterable[Usage]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

worker_pool_name
Required
str

Name of the worker pool. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either Usage or the result of cls(response)

Exceptions

Type Description

list_worker_pool_instance_metric_definitions

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

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

list_worker_pool_instance_metric_definitions(resource_group_name: str, name: str, worker_pool_name: str, instance: str, **kwargs: Any) -> Iterable[ResourceMetricDefinition]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

worker_pool_name
Required
str

Name of the worker pool. Required.

instance
Required
str

Name of the instance in the worker pool. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either ResourceMetricDefinition or the result of cls(response)

Exceptions

Type Description

list_worker_pool_skus

Get available SKUs for scaling a worker pool.

Get available SKUs for scaling a worker pool.

list_worker_pool_skus(resource_group_name: str, name: str, worker_pool_name: str, **kwargs: Any) -> Iterable[SkuInfo]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

worker_pool_name
Required
str

Name of the worker pool. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either SkuInfo or the result of cls(response)

Exceptions

Type Description

list_worker_pools

Get all worker pools of an App Service Environment.

Get all worker pools of an App Service Environment.

list_worker_pools(resource_group_name: str, name: str, **kwargs: Any) -> Iterable[WorkerPoolResource]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either WorkerPoolResource or the result of cls(response)

Exceptions

Type Description

reboot

Reboot all machines in an App Service Environment.

Reboot all machines in an App Service Environment.

reboot(resource_group_name: str, name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

update

Create or update an App Service Environment.

Create or update an App Service Environment.

update(resource_group_name: str, name: str, hosting_environment_envelope: _models.AppServiceEnvironmentPatchResource, *, content_type: str = 'application/json', **kwargs: Any) -> _models.AppServiceEnvironmentResource

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

hosting_environment_envelope
Required

Configuration details of the App Service Environment. Is either a AppServiceEnvironmentPatchResource type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

Returns

Type Description

AppServiceEnvironmentResource or the result of cls(response)

Exceptions

Type Description

update_multi_role_pool

Create or update a multi-role pool.

Create or update a multi-role pool.

update_multi_role_pool(resource_group_name: str, name: str, multi_role_pool_envelope: _models.WorkerPoolResource, *, content_type: str = 'application/json', **kwargs: Any) -> _models.WorkerPoolResource

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

multi_role_pool_envelope
Required

Properties of the multi-role pool. Is either a WorkerPoolResource type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

Returns

Type Description

WorkerPoolResource or the result of cls(response)

Exceptions

Type Description

update_worker_pool

Create or update a worker pool.

Create or update a worker pool.

update_worker_pool(resource_group_name: str, name: str, worker_pool_name: str, worker_pool_envelope: _models.WorkerPoolResource, *, content_type: str = 'application/json', **kwargs: Any) -> _models.WorkerPoolResource

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

name
Required
str

Name of the App Service Environment. Required.

worker_pool_name
Required
str

Name of the worker pool. Required.

worker_pool_envelope
Required

Properties of the worker pool. Is either a WorkerPoolResource type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

Returns

Type Description

WorkerPoolResource or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.web.v2020_09_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\web\\v2020_09_01\\models\\__init__.py'>