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/reliability/reliability-app-service.md
+48-19Lines changed: 48 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -161,6 +161,17 @@ If you enable availability zones but specify a capacity less than two, the platf
161
161
162
162
- **Create a new App Service plan with zone redundancy.** To deploy a new zone-redundant App Service plan, select the *Zone redundant* option when you deploy the plan in the Azure portal or set the App Service plan `zoneRedundant` property to `true` in the Azure CLI command, Azure PowerShell command, Bicep file, or Azure Resource Manager template.
163
163
164
+
# [Azure CLI](#tab/azurecli)
165
+
166
+
```azurecli
167
+
az appservice plan create -g MyResourceGroup -n MyPlan --zone-redundant --number-of-workers 2 --sku P1V3
168
+
```
169
+
170
+
> [!NOTE]
171
+
> If you use the Azure CLI to modify the `zone-redundant` property, you must specify the `--number-of-workers` property, which is the number of instances, and use a capacity greater than or equal to 2.
@@ -177,9 +188,7 @@ If you enable availability zones but specify a capacity less than two, the platf
177
188
}
178
189
```
179
190
180
-
```azurecli
181
-
az appservice plan create -g MyResourceGroup -n MyPlan --zone-redundant --number-of-workers 2 --sku P1V3
182
-
```
191
+
---
183
192
184
193
- **Migration.** If you have an existing App Service plan that supports zone redundancy (the maximum available zones is greater than 1), you can enable zone redundancy by setting the App Service plan's `zoneRedundant` property to `true` in the Azure CLI, your Bicep file, or your Resource Manager template:
185
194
@@ -215,6 +224,17 @@ If you enable availability zones but specify a capacity less than two, the platf
215
224
1. Ensure that the App Service Environment has zone redundancy enabled. You can only enable zone redundancy on an Isolated v2 App Service plan when the App Service Environment is zone redundant.
216
225
1. Select the *Zone redundant* option when you deploy the plan in the Azure portal, or set the App Service plan's `zoneRedundant` property to `true` in the Azure CLI command, Azure PowerShell command, Bicep file, or Azure Resource Manager template.
217
226
227
+
# [Azure CLI](#tab/azurecli)
228
+
229
+
```azurecli
230
+
az appservice plan create -g MyResourceGroup -n MyPlan --app-service-environment MyAse --zone-redundant --number-of-workers 2 --sku I1V2
231
+
```
232
+
233
+
> [!NOTE]
234
+
> If you use the Azure CLI to modify the `zoneRedundant` property, you must specify the `number-of-workers` property, which is the number of instances, and use a capacity greater than or equal to 2.
@@ -234,17 +254,20 @@ If you enable availability zones but specify a capacity less than two, the platf
234
254
}
235
255
```
236
256
237
-
```azurecli
238
-
az appservice plan create -g MyResourceGroup -n MyPlan --app-service-environment MyAse --zone-redundant --number-of-workers 2 --sku I1V2
239
-
```
240
-
241
-
> [!NOTE]
242
-
> If you use the Azure CLI to modify the `zoneRedundant` property, you must specify the `number-of-workers` property, which is the number of instances, and use a capacity greater than or equal to 2.
257
+
---
243
258
244
259
- **Migration.** If you have an existing App Service Environment or Isolated v2 App Service plan that supports zone redundancy, you can enable zone redundancy at any time.
245
260
246
261
To enable zone redundancy for the App Service Environment, set the `zoneRedundant` property to `true` or use the Azure CLI.
247
262
263
+
# [Azure CLI](#tab/azurecli)
264
+
265
+
```azurecli
266
+
az resource update --ids /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/hostingEnvironments/{aseName} --set properties.zoneRedundant=true
@@ -258,16 +281,24 @@ If you enable availability zones but specify a capacity less than two, the platf
258
281
zoneRedundant: true
259
282
}
260
283
}
261
-
```
262
-
263
-
```azurecli
264
-
az resource update --ids /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/hostingEnvironments/{aseName} --set properties.zoneRedundant=true
265
284
```
266
285
286
+
---
287
+
267
288
> [!NOTE]
268
289
> When you change the zone redundancy status of the App Service Environment, you initiate an upgrade that takes 12-24 hours to complete. During the upgrade process, you don't experience any downtime or performance issues.
269
290
270
-
For Isolated v2 App Service plans, if the App Service Environment is zone redundant, the App Service plans can be made zone redundant. Each App Service plan has its own independent zone redundancy setting, which means that you can have a mix of zone redundant and non-zone redundant plans in an App Service Environment. To enable zone redundancy on an Isolated v2 App Service plan, set the App Service plan's `zoneRedundant` property to `true` or use the Azure CLI.
291
+
For Isolated v2 App Service plans, if the App Service Environment is zone redundant, the App Service plans can be made zone redundant. Each App Service plan has its own independent zone redundancy setting, which means that you can have a mix of zone redundant and non-zone redundant plans in an App Service Environment. To enable zone redundancy on an Isolated v2 App Service plan, set the App Service plan's `zoneRedundant` property to `true` or use the Azure CLI.
292
+
293
+
# [Azure CLI](#tab/azurecli)
294
+
295
+
```azurecli
296
+
az appservice plan update -g <resource group name> -n <app service plan name> --set zoneRedundant=true sku.capacity=2
297
+
```
298
+
299
+
> [!NOTE] > If you use the Azure CLI to modify the `zoneRedundant` property, you must specify the `sku.capacity` property, which is the number of instances, and use a capacity greater than or equal to 2.
@@ -286,11 +317,9 @@ If you enable availability zones but specify a capacity less than two, the platf
286
317
zoneRedundant: true
287
318
}
288
319
}
289
-
```
290
-
291
-
```azurecli
292
-
az appservice plan update -g <resource group name> -n <app service plan name> --set zoneRedundant=true sku.capacity=2
293
-
```
320
+
```
321
+
322
+
---
294
323
295
324
- **Disable zone redundancy.** To disable zone redundancy, you can set the App Service plan or App Service Environment `zoneRedundant` property to `false` or use the Azure CLI.
0 commit comments