You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/environment/using-an-ase.md
+18-17Lines changed: 18 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ To create an app in an ASE:
64
64
65
65
## How scale works
66
66
67
-
Every App Service app runs in an App Service plan. App Service Environments hold App Service plans, and App Service plans hold apps. When you scale an app, you scale the App Service plan and thus scale all the apps in the same plan.
67
+
Every App Service app runs in an App Service plan. App Service Environments hold App Service plans, and App Service plans hold apps. When you scale an app, you also scale the App Service plan and all the apps in that same plan.
68
68
69
69
When you scale an App Service plan, the needed infrastructure is added automatically. There's a time delay to scale operations while the infrastructure is being added. If you do several scale operations in sequence, the first infrastructure scale request is acted on and the others are queued. When the first scale operation finishes, the other infrastructure requests all operate together. And when the infrastructure is added, the App Service plans are assigned as appropriate. Creating a new App Service plan is itself a scale operation because it requests additional hardware.
70
70
@@ -82,7 +82,9 @@ With an External ASE, you can configure IP-based SSL for your app in the same wa
82
82
83
83
When you scale out your App Service plans, workers are automatically added to support them. Every ASE is created with two front ends. The front ends automatically scale out at a rate of one front end for every set of 15 App Service plan instances. For example, if you have three App Service plans with five instances each, you'd have a total of 15 instances and three front ends. If you scale to a total of 30 instances, you have four front ends. This pattern continues as you scale out.
84
84
85
-
The number of front ends that are allocated by default is good for a moderate load. You can lower the ratio to as little as one front end for every five instances. You can also change the size of the front ends. By default, they're single core. In the Azure portal, you can change their size to two or four cores instead. There's a charge for changing the ratio or the front-end sizes. For more information, see [Azure App Service pricing][Pricing]. If you want to improve the load capacity of your ASE, you'll get more improvement by first scaling to two-core front ends before you adjust the scale ratio. Changing the core size of your front ends will cause an upgrade of your ASE and should be done outside of regular business hours.
85
+
The number of front ends that are allocated by default is good for a moderate load. You can lower the ratio to as little as one front end for every five instances. You can also change the size of the front ends. By default, they're single core. In the Azure portal, you can change their size to two or four cores instead.
86
+
87
+
There's a charge for changing the ratio or the front-end sizes. For more information, see [Azure App Service pricing][Pricing]. If you want to improve the load capacity of your ASE, you'll get more improvement by first scaling to two-core front ends before you adjust the scale ratio. Changing the core size of your front ends will cause an upgrade of your ASE and should be done outside of regular business hours.
86
88
87
89
Front-end resources are the HTTP/HTTPS endpoint for the ASE. With the default front-end configuration, memory usage per front end is consistently around 60 percent. The primary reason to scale your front ends is CPU usage, which is primarily driven by HTTPS traffic.
88
90
@@ -116,7 +118,7 @@ In an ASE, as with the multitenant App Service, you can publish by these methods
116
118
117
119
With an External ASE, these publishing options all work the same way. For more information, see [Deployment in Azure App Service][AppDeploy].
118
120
119
-
Publishing is significantly different with an ILB ASE, for which the publishing endpoints are all available only through the ILB. The ILB is on a private IP in the ASE subnet in the virtual network. If you don't have network access to the ILB, you can't publish any apps on that ASE. As noted in [Create and use an ILB ASE][MakeILBASE], you must configure DNS for the apps in the system. That requirement includes the SCM endpoint. If the endpoints are not defined properly, you can't publish. Your IDEs must also have network access to the ILB to publish directly to it.
121
+
Publishing is significantly different with an ILB ASE, for which the publishing endpoints are all available only through the ILB. The ILB is on a private IP in the ASE subnet in the virtual network. If you don't have network access to the ILB, you can't publish any apps on that ASE. As noted in [Create and use an ILB ASE][MakeILBASE], you must configure DNS for the apps in the system. That requirement includes the SCM endpoint. If the endpoints aren't defined properly, you can't publish. Your IDEs must also have network access to the ILB to publish directly to it.
120
122
121
123
Without additional components, internet-based CI systems like GitHub and Azure DevOps don't work with an ILB ASE because the publishing endpoint isn't internet accessible. You can enable publishing to an ILB ASE from Azure DevOps by installing a self-hosted release agent in the virtual network that contains the ILB ASE. Alternatively, you can also use a CI system that uses a pull model, such as Dropbox.
122
124
@@ -132,16 +134,16 @@ You can integrate your ASE with Azure Monitor to send logs about the ASE to Azur
132
134
133
135
| Situation | Message |
134
136
|---------|----------|
135
-
| ASE is unhealthy | The specified ASE is unhealthy due to an invalid virtual network configuration. The ASE will be suspended if the unhealthy state continues. Ensure the guidelines defined here are followed: https://docs.microsoft.com/azure/app-service/environment/network-info|
137
+
| ASE is unhealthy | The specified ASE is unhealthy due to an invalid virtual network configuration. The ASE will be suspended if the unhealthy state continues. Ensure the guidelines defined here are followed: https://docs.microsoft.com/azure/app-service/environment/network-info.|
136
138
| ASE subnet is almost out of space | The specified ASE is in a subnet that is almost out of space. There are {0} remaining addresses. Once these addresses are exhausted, the ASE will not be able to scale. |
137
139
| ASE is approaching total instance limit | The specified ASE is approaching the total instance limit of the ASE. It currently contains {0} App Service Plan instances of a maximum 201 instances. |
138
-
| ASE is unable to reach a dependency | The specified ASE is not able to reach {0}. Ensure the guidelines defined here are followed: https://docs.microsoft.com/azure/app-service/environment/network-info|
139
-
| ASE is suspended | The specified ASE is suspended. The ASE suspension may be due to an account shortfall or an invalid virtual network configuration. Resolve the root cause and resume the ASE to continue serving traffic |
140
-
| ASE upgrade has started | A platform upgrade to the specified ASE has begun. Expect delays in scaling operations |
141
-
| ASE upgrade has completed | A platform upgrade to the specified ASE has finished |
142
-
| Scale operations have started | An App Service plan ({0}) has begun scaling. Desired state: {1} I{2} workers
143
-
| Scale operations have completed | An App Service plan ({0}) has finished scaling. Current state: {1} I{2} workers |
144
-
| Scale operations have failed | An App Service plan ({0}) has failed to scale. Current state: {1} I{2} workers |
140
+
| ASE is unable to reach a dependency | The specified ASE is not able to reach {0}. Ensure the guidelines defined here are followed: https://docs.microsoft.com/azure/app-service/environment/network-info.|
141
+
| ASE is suspended | The specified ASE is suspended. The ASE suspension may be due to an account shortfall or an invalid virtual network configuration. Resolve the root cause and resume the ASE to continue serving traffic.|
142
+
| ASE upgrade has started | A platform upgrade to the specified ASE has begun. Expect delays in scaling operations.|
143
+
| ASE upgrade has completed | A platform upgrade to the specified ASE has finished.|
144
+
| Scale operations have started | An App Service plan ({0}) has begun scaling. Desired state: {1} I{2} workers.
145
+
| Scale operations have completed | An App Service plan ({0}) has finished scaling. Current state: {1} I{2} workers.|
146
+
| Scale operations have failed | An App Service plan ({0}) has failed to scale. Current state: {1} I{2} workers.|
145
147
146
148
To enable logging on your ASE:
147
149
@@ -153,17 +155,17 @@ To enable logging on your ASE:
153
155
154
156
![ASE diagnostic log settings][4]
155
157
156
-
If you integrate with Log Analytics, you can see the logs by selecting **Logs** from the ASE portal and creating a query against **AppServiceEnvironmentPlatformLogs**.
158
+
If you integrate with Log Analytics, you can see the logs by selecting **Logs** from the ASE portal and creating a query against **AppServiceEnvironmentPlatformLogs**.
157
159
158
160
## Upgrade preference
159
161
160
162
If you have multiple ASEs, you might want some ASEs to be upgraded before others. Within the ASE **HostingEnvironment Resource Manager** object, you can set a value for **upgradePreference**. The **upgradePreference** setting can be configured by using a template, ARMClient, or https://resources.azure.com. The three possible values are:
161
163
162
-
-**None**: Azure will upgrade your ASE in no particular batch. This is the default value.
164
+
-**None**: Azure will upgrade your ASE in no particular batch. This value is the default.
163
165
-**Early**: Your ASE will be upgraded in the first half of the App Service upgrades.
164
166
-**Late**: Your ASE will be upgraded in the second half of the App Service upgrades.
165
167
166
-
If you're using https://resources.azure.com, do this to set the **upgradePreferences** value:
168
+
If you're using https://resources.azure.com, follow these steps to set the **upgradePreferences** value:
167
169
168
170
1. Go to resources.azure.com and sign in with your Azure account.
169
171
1. Go through the resources to subscriptions\/\[subscription name\]\/resourceGroups\/\[resource group name\]\/providers\/Microsoft.Web\/hostingEnvironments\/\[ASE name\].
@@ -174,13 +176,13 @@ If you're using https://resources.azure.com, do this to set the **upgradePrefere
174
176
175
177
![resources azure com display][5]
176
178
177
-
The **upgradePreferences** feature makes the most sense when you have multiple ASEs because your "Early" upgraded ASEs will be upgraded before your "Late" ASEs. When you have multiple ASEs, you should set your development and test ASEs to be "Early" and your production ASEs to be "Late".
179
+
The **upgradePreferences** feature makes the most sense when you have multiple ASEs because your "Early" ASEs will be upgraded before your "Late" ASEs. When you have multiple ASEs, you should set your development and test ASEs to be "Early" and your production ASEs to be "Late".
178
180
179
181
## Pricing
180
182
181
183
The pricing SKU called *Isolated* is for use only with ASEs. All App Service plans that are hosted in the ASE are in the Isolated pricing SKU. Isolated rates for App Service plans can vary by region.
182
184
183
-
In addition to the price of your App Service plans, there is a flat rate for ASE itself. The flat rate doesn't change with the size of your ASE. It pays for the ASE infrastructure at a default scaling rate of one additional front end for every 15 App Service plan instances.
185
+
In addition to the price of your App Service plans, there's a flat rate for the ASE itself. The flat rate doesn't change with the size of your ASE. It pays for the ASE infrastructure at a default scale rate of one additional front end for every 15 App Service plan instances.
184
186
185
187
If the default scale rate of one front end for every 15 App Service plan instances is not fast enough, you can adjust the ratio at which front ends are added or the size of the front ends. When you adjust the ratio or size, you pay for the front-end cores that would not be added by default.
0 commit comments