App Service Environments - Create Or Update Worker Pool
Description for Create or update a worker pool.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}?api-version=2024-04-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
name
|
path | True |
string |
Name of the App Service Environment. |
resource
|
path | True |
string |
Name of the resource group to which the resource belongs. Regex pattern: |
subscription
|
path | True |
string |
Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). |
worker
|
path | True |
string |
Name of the worker pool. |
api-version
|
query | True |
string |
API Version |
Request Body
Name | Type | Description |
---|---|---|
kind |
string |
Kind of resource. |
properties.computeMode |
Shared or dedicated app hosting. |
|
properties.workerCount |
integer |
Number of instances in the worker pool. |
properties.workerSize |
string |
VM size of the worker pool instances. |
properties.workerSizeId |
integer |
Worker size ID for referencing this worker pool. |
sku |
Description of a SKU for a scalable resource. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK. |
|
202 Accepted |
Operation is in progress. |
|
Other Status Codes |
App Service error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Get properties of a worker pool.
Sample request
Sample response
{}
{}
Definitions
Name | Description |
---|---|
Capability |
Describes the capabilities/features allowed for a specific SKU. |
Compute |
Shared/dedicated workers. |
Default |
App Service error response. |
Details | |
Error |
Error model. |
Sku |
Description of the App Service plan scale options. |
Sku |
Description of a SKU for a scalable resource. |
Worker |
Worker pool of an App Service Environment ARM resource. |
Capability
Describes the capabilities/features allowed for a specific SKU.
Name | Type | Description |
---|---|---|
name |
string |
Name of the SKU capability. |
reason |
string |
Reason of the SKU capability. |
value |
string |
Value of the SKU capability. |
ComputeModeOptions
Shared/dedicated workers.
Name | Type | Description |
---|---|---|
Dedicated |
string |
|
Dynamic |
string |
|
Shared |
string |
DefaultErrorResponse
App Service error response.
Name | Type | Description |
---|---|---|
error |
Error model. |
Details
Name | Type | Description |
---|---|---|
code |
string |
Standardized string to programmatically identify the error. |
message |
string |
Detailed error description and debugging information. |
target |
string |
Detailed error description and debugging information. |
Error
Error model.
Name | Type | Description |
---|---|---|
code |
string |
Standardized string to programmatically identify the error. |
details |
Details[] |
Detailed errors. |
innererror |
string |
More information to debug error. |
message |
string |
Detailed error description and debugging information. |
target |
string |
Detailed error description and debugging information. |
SkuCapacity
Description of the App Service plan scale options.
Name | Type | Description |
---|---|---|
default |
integer |
Default number of workers for this App Service plan SKU. |
elasticMaximum |
integer |
Maximum number of Elastic workers for this App Service plan SKU. |
maximum |
integer |
Maximum number of workers for this App Service plan SKU. |
minimum |
integer |
Minimum number of workers for this App Service plan SKU. |
scaleType |
string |
Available scale configurations for an App Service plan. |
SkuDescription
Description of a SKU for a scalable resource.
Name | Type | Description |
---|---|---|
capabilities |
Capabilities of the SKU, e.g., is traffic manager enabled? |
|
capacity |
integer |
Current number of instances assigned to the resource. |
family |
string |
Family code of the resource SKU. |
locations |
string[] |
Locations of the SKU. |
name |
string |
Name of the resource SKU. |
size |
string |
Size specifier of the resource SKU. |
skuCapacity |
Min, max, and default scale values of the SKU. |
|
tier |
string |
Service tier of the resource SKU. |
WorkerPoolResource
Worker pool of an App Service Environment ARM resource.
Name | Type | Description |
---|---|---|
id |
string |
Resource Id. |
kind |
string |
Kind of resource. |
name |
string |
Resource Name. |
properties.computeMode |
Shared or dedicated app hosting. |
|
properties.instanceNames |
string[] |
Names of all instances in the worker pool (read only). |
properties.workerCount |
integer |
Number of instances in the worker pool. |
properties.workerSize |
string |
VM size of the worker pool instances. |
properties.workerSizeId |
integer |
Worker size ID for referencing this worker pool. |
sku |
Description of a SKU for a scalable resource. |
|
type |
string |
Resource type. |