App Service Environments - Update
Description for Create or update an App Service Environment.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}?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). |
api-version
|
query | True |
string |
API Version |
Request Body
Name | Required | Type | Description |
---|---|---|---|
properties.virtualNetwork | True |
Description of the Virtual Network. |
|
kind |
string |
Kind of resource. |
|
properties.clusterSettings |
Custom settings for changing the behavior of the App Service Environment. |
||
properties.customDnsSuffixConfiguration |
Full view of the custom domain suffix configuration for ASEv3. |
||
properties.dedicatedHostCount |
integer |
Dedicated Host Count |
|
properties.dnsSuffix |
string |
DNS suffix of the App Service Environment. |
|
properties.frontEndScaleFactor |
integer |
Scale factor for front-ends. |
|
properties.internalLoadBalancingMode |
Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. |
||
properties.ipsslAddressCount |
integer |
Number of IP SSL addresses reserved for the App Service Environment. |
|
properties.multiSize |
string |
Front-end VM size, e.g. "Medium", "Large". |
|
properties.networkingConfiguration |
Full view of networking configuration for an ASE. |
||
properties.upgradePreference |
Upgrade Preference |
||
properties.userWhitelistedIpRanges |
string[] |
User added ip ranges to whitelist on ASE db |
|
properties.zoneRedundant |
boolean |
Whether or not this App Service Environment is zone-redundant. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
201 Created |
Created |
|
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
Create or update an App Service Environment.
Sample request
PATCH https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase?api-version=2024-04-01
{
"properties": {
"frontEndScaleFactor": 20,
"virtualNetwork": {
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated"
}
}
}
Sample response
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase",
"name": "test-ase",
"type": "Microsoft.Web/hostingEnvironments",
"kind": "ASEV3",
"location": "South Central US",
"tags": {},
"properties": {
"provisioningState": "Succeeded",
"status": "Ready",
"virtualNetwork": {
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated",
"name": "delegated",
"type": "Microsoft.Network/virtualNetworks/subnets",
"subnet": ""
},
"internalLoadBalancingMode": "None",
"multiSize": "Standard_D2d_v4",
"multiRoleCount": null,
"ipsslAddressCount": 0,
"dnsSuffix": "test-ase.p.azurewebsites.net",
"maximumNumberOfMachines": 250,
"frontEndScaleFactor": 15,
"suspended": false,
"clusterSettings": null,
"userWhitelistedIpRanges": null,
"hasLinuxWorkers": true,
"dedicatedHostCount": 0,
"zoneRedundant": false,
"networkingConfiguration": {
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking",
"properties": {
"windowsOutboundIpAddresses": [
"20.88.241.56",
"20.88.241.9"
],
"linuxOutboundIpAddresses": [
"20.88.241.56",
"20.88.241.9"
],
"externalInboundIpAddresses": [
"52.153.248.36"
],
"internalInboundIpAddresses": [],
"allowNewPrivateEndpointConnections": false,
"ftpEnabled": false,
"remoteDebugEnabled": false,
"inboundIpAddressOverride": null
}
}
}
}
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase",
"name": "test-ase",
"type": "Microsoft.Web/hostingEnvironments",
"kind": "ASEV3",
"location": "South Central US",
"tags": {},
"properties": {
"provisioningState": "Succeeded",
"status": "Ready",
"virtualNetwork": {
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated",
"name": "delegated",
"type": "Microsoft.Network/virtualNetworks/subnets",
"subnet": ""
},
"internalLoadBalancingMode": "None",
"multiSize": "Standard_D2d_v4",
"multiRoleCount": null,
"ipsslAddressCount": 0,
"dnsSuffix": "test-ase.p.azurewebsites.net",
"maximumNumberOfMachines": 250,
"frontEndScaleFactor": 15,
"suspended": false,
"clusterSettings": null,
"userWhitelistedIpRanges": null,
"hasLinuxWorkers": true,
"dedicatedHostCount": 0,
"zoneRedundant": false,
"networkingConfiguration": {
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking",
"properties": {
"windowsOutboundIpAddresses": [
"20.88.241.56",
"20.88.241.9"
],
"linuxOutboundIpAddresses": [
"20.88.241.56",
"20.88.241.9"
],
"externalInboundIpAddresses": [
"52.153.248.36"
],
"internalInboundIpAddresses": [],
"allowNewPrivateEndpointConnections": false,
"ftpEnabled": false,
"remoteDebugEnabled": false,
"inboundIpAddressOverride": null
}
}
}
}
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase",
"name": "test-ase",
"type": "Microsoft.Web/hostingEnvironments",
"kind": "ASEV3",
"location": "South Central US",
"tags": {},
"properties": {
"provisioningState": "Succeeded",
"status": "Ready",
"virtualNetwork": {
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-subnet/subnets/delegated",
"name": "delegated",
"type": "Microsoft.Network/virtualNetworks/subnets",
"subnet": ""
},
"internalLoadBalancingMode": "None",
"multiSize": "Standard_D2d_v4",
"multiRoleCount": null,
"ipsslAddressCount": 0,
"dnsSuffix": "test-ase.p.azurewebsites.net",
"maximumNumberOfMachines": 250,
"frontEndScaleFactor": 15,
"suspended": false,
"clusterSettings": null,
"userWhitelistedIpRanges": null,
"hasLinuxWorkers": true,
"dedicatedHostCount": 0,
"zoneRedundant": false,
"networkingConfiguration": {
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/configurations/networking",
"properties": {
"windowsOutboundIpAddresses": [
"20.88.241.56",
"20.88.241.9"
],
"linuxOutboundIpAddresses": [
"20.88.241.56",
"20.88.241.9"
],
"externalInboundIpAddresses": [
"52.153.248.36"
],
"internalInboundIpAddresses": [],
"allowNewPrivateEndpointConnections": false,
"ftpEnabled": false,
"remoteDebugEnabled": false,
"inboundIpAddressOverride": null
}
}
}
}
Definitions
Name | Description |
---|---|
App |
ARM resource for a app service environment. |
App |
App Service Environment ARM resource. |
AseV3Networking |
Full view of networking configuration for an ASE. |
Custom |
Full view of the custom domain suffix configuration for ASEv3. |
Custom |
|
Default |
App Service error response. |
Details | |
Error |
Error model. |
Hosting |
Current status of the App Service Environment. |
Load |
Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. |
Name |
Name value pair. |
Provisioning |
Provisioning state of the App Service Environment. |
Upgrade |
Whether an upgrade is available for this App Service Environment. |
Upgrade |
Upgrade Preference |
Virtual |
Specification for using a Virtual Network. |
AppServiceEnvironmentPatchResource
ARM resource for a app service environment.
Name | Type | Default value | Description |
---|---|---|---|
id |
string |
Resource Id. |
|
kind |
string |
Kind of resource. |
|
name |
string |
Resource Name. |
|
properties.clusterSettings |
Custom settings for changing the behavior of the App Service Environment. |
||
properties.customDnsSuffixConfiguration |
Full view of the custom domain suffix configuration for ASEv3. |
||
properties.dedicatedHostCount |
integer |
Dedicated Host Count |
|
properties.dnsSuffix |
string |
DNS suffix of the App Service Environment. |
|
properties.frontEndScaleFactor |
integer |
Scale factor for front-ends. |
|
properties.hasLinuxWorkers |
boolean |
Flag that displays whether an ASE has linux workers or not |
|
properties.internalLoadBalancingMode |
Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. |
||
properties.ipsslAddressCount |
integer |
Number of IP SSL addresses reserved for the App Service Environment. |
|
properties.maximumNumberOfMachines |
integer |
Maximum number of VMs in the App Service Environment. |
|
properties.multiRoleCount |
integer |
Number of front-end instances. |
|
properties.multiSize |
string |
Front-end VM size, e.g. "Medium", "Large". |
|
properties.networkingConfiguration |
Full view of networking configuration for an ASE. |
||
properties.provisioningState |
Provisioning state of the App Service Environment. |
||
properties.status |
Current status of the App Service Environment. |
||
properties.suspended |
boolean |
|
|
properties.upgradeAvailability |
Whether an upgrade is available for this App Service Environment. |
||
properties.upgradePreference | None |
Upgrade Preference |
|
properties.userWhitelistedIpRanges |
string[] |
User added ip ranges to whitelist on ASE db |
|
properties.virtualNetwork |
Description of the Virtual Network. |
||
properties.zoneRedundant |
boolean |
Whether or not this App Service Environment is zone-redundant. |
|
type |
string |
Resource type. |
AppServiceEnvironmentResource
App Service Environment ARM resource.
Name | Type | Default value | Description |
---|---|---|---|
id |
string |
Resource Id. |
|
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. |
|
location |
string |
Resource Location. |
|
name |
string |
Resource Name. |
|
properties.clusterSettings |
Custom settings for changing the behavior of the App Service Environment. |
||
properties.customDnsSuffixConfiguration |
Full view of the custom domain suffix configuration for ASEv3. |
||
properties.dedicatedHostCount |
integer |
Dedicated Host Count |
|
properties.dnsSuffix |
string |
DNS suffix of the App Service Environment. |
|
properties.frontEndScaleFactor |
integer |
Scale factor for front-ends. |
|
properties.hasLinuxWorkers |
boolean |
Flag that displays whether an ASE has linux workers or not |
|
properties.internalLoadBalancingMode |
Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. |
||
properties.ipsslAddressCount |
integer |
Number of IP SSL addresses reserved for the App Service Environment. |
|
properties.maximumNumberOfMachines |
integer |
Maximum number of VMs in the App Service Environment. |
|
properties.multiRoleCount |
integer |
Number of front-end instances. |
|
properties.multiSize |
string |
Front-end VM size, e.g. "Medium", "Large". |
|
properties.networkingConfiguration |
Full view of networking configuration for an ASE. |
||
properties.provisioningState |
Provisioning state of the App Service Environment. |
||
properties.status |
Current status of the App Service Environment. |
||
properties.suspended |
boolean |
|
|
properties.upgradeAvailability |
Whether an upgrade is available for this App Service Environment. |
||
properties.upgradePreference | None |
Upgrade Preference |
|
properties.userWhitelistedIpRanges |
string[] |
User added ip ranges to whitelist on ASE db |
|
properties.virtualNetwork |
Description of the Virtual Network. |
||
properties.zoneRedundant |
boolean |
Whether or not this App Service Environment is zone-redundant. |
|
tags |
object |
Resource tags. |
|
type |
string |
Resource type. |
AseV3NetworkingConfiguration
Full view of networking configuration for an ASE.
Name | Type | Description |
---|---|---|
id |
string |
Resource Id. |
kind |
string |
Kind of resource. |
name |
string |
Resource Name. |
properties.allowNewPrivateEndpointConnections |
boolean |
Property to enable and disable new private endpoint connection creation on ASE |
properties.externalInboundIpAddresses |
string[] |
|
properties.ftpEnabled |
boolean |
Property to enable and disable FTP on ASEV3 |
properties.inboundIpAddressOverride |
string |
Customer provided Inbound IP Address. Only able to be set on Ase create. |
properties.internalInboundIpAddresses |
string[] |
|
properties.linuxOutboundIpAddresses |
string[] |
|
properties.remoteDebugEnabled |
boolean |
Property to enable and disable Remote Debug on ASEV3 |
properties.windowsOutboundIpAddresses |
string[] |
|
type |
string |
Resource type. |
CustomDnsSuffixConfiguration
Full view of the custom domain suffix configuration for ASEv3.
Name | Type | Description |
---|---|---|
id |
string |
Resource Id. |
kind |
string |
Kind of resource. |
name |
string |
Resource Name. |
properties.certificateUrl |
string |
The URL referencing the Azure Key Vault certificate secret that should be used as the default SSL/TLS certificate for sites with the custom domain suffix. |
properties.dnsSuffix |
string |
The default custom domain suffix to use for all sites deployed on the ASE. |
properties.keyVaultReferenceIdentity |
string |
The user-assigned identity to use for resolving the key vault certificate reference. If not specified, the system-assigned ASE identity will be used if available. |
properties.provisioningDetails |
string |
|
properties.provisioningState | ||
type |
string |
Resource type. |
CustomDnsSuffixProvisioningState
Name | Type | Description |
---|---|---|
Degraded |
string |
|
Failed |
string |
|
InProgress |
string |
|
Succeeded |
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. |
HostingEnvironmentStatus
Current status of the App Service Environment.
Name | Type | Description |
---|---|---|
Deleting |
string |
|
Preparing |
string |
|
Ready |
string |
|
Scaling |
string |
LoadBalancingMode
Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment.
Name | Type | Description |
---|---|---|
None |
string |
|
Publishing |
string |
|
Web |
string |
|
Web, Publishing |
string |
NameValuePair
Name value pair.
Name | Type | Description |
---|---|---|
name |
string |
Pair name. |
value |
string |
Pair value. |
ProvisioningState
Provisioning state of the App Service Environment.
Name | Type | Description |
---|---|---|
Canceled |
string |
|
Deleting |
string |
|
Failed |
string |
|
InProgress |
string |
|
Succeeded |
string |
UpgradeAvailability
Whether an upgrade is available for this App Service Environment.
Name | Type | Description |
---|---|---|
None |
string |
No upgrade is currently available for this App Service Environment |
Ready |
string |
An upgrade is ready to be manually initiated on this App Service Environment |
UpgradePreference
Upgrade Preference
Name | Type | Description |
---|---|---|
Early |
string |
This App Service Environment will be upgraded before others in the same region that have Upgrade Preference 'Late' |
Late |
string |
This App Service Environment will be upgraded after others in the same region that have Upgrade Preference 'Early' |
Manual |
string |
ASEv3 only. Once an upgrade is available, this App Service Environment will wait 10 days for the upgrade to be manually initiated. After 10 days the upgrade will begin automatically |
None |
string |
No preference on when this App Service Environment will be upgraded |
VirtualNetworkProfile
Specification for using a Virtual Network.
Name | Type | Description |
---|---|---|
id |
string |
Resource id of the Virtual Network. |
name |
string |
Name of the Virtual Network (read-only). |
subnet |
string |
Subnet within the Virtual Network. |
type |
string |
Resource type of the Virtual Network (read-only). |