Skip to content

Commit 3e8f4f3

Browse files
committed
Add tabs
1 parent dafd347 commit 3e8f4f3

File tree

1 file changed

+48
-19
lines changed

1 file changed

+48
-19
lines changed

articles/reliability/reliability-app-service.md

Lines changed: 48 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,17 @@ If you enable availability zones but specify a capacity less than two, the platf
161161
162162
- **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.
163163
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.
172+
173+
# [Bicep](#tab/bicep)
174+
164175
```bicep
165176
resource appServicePlan 'Microsoft.Web/serverfarms@2022-03-01' = {
166177
name: appServicePlanName
@@ -177,9 +188,7 @@ If you enable availability zones but specify a capacity less than two, the platf
177188
}
178189
```
179190
180-
```azurecli
181-
az appservice plan create -g MyResourceGroup -n MyPlan --zone-redundant --number-of-workers 2 --sku P1V3
182-
```
191+
---
183192
184193
- **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:
185194
@@ -215,6 +224,17 @@ If you enable availability zones but specify a capacity less than two, the platf
215224
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.
216225
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.
217226
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.
235+
236+
# [Bicep](#tab/bicep)
237+
218238
```bicep
219239
resource appServicePlan 'Microsoft.Web/serverfarms@2022-03-01' = {
220240
name: appServicePlanName
@@ -234,17 +254,20 @@ If you enable availability zones but specify a capacity less than two, the platf
234254
}
235255
```
236256
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+
---
243258
244259
- **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.
245260
246261
To enable zone redundancy for the App Service Environment, set the `zoneRedundant` property to `true` or use the Azure CLI.
247262
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
267+
```
268+
269+
# [Bicep](#tab/bicep)
270+
248271
```bicep
249272
resource asev3 'Microsoft.Web/hostingEnvironments@2020-12-01' = {
250273
name: aseName
@@ -258,16 +281,24 @@ If you enable availability zones but specify a capacity less than two, the platf
258281
zoneRedundant: true
259282
}
260283
}
261-
```
262-
263-
```azurecli
264-
az resource update --ids /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/hostingEnvironments/{aseName} --set properties.zoneRedundant=true
265284
```
266285
286+
---
287+
267288
> [!NOTE]
268289
> 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.
269290
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.
300+
301+
# [Bicep](#tab/bicep)
271302
272303
```bicep
273304
resource appServicePlan 'Microsoft.Web/serverfarms@2022-03-01' = {
@@ -286,11 +317,9 @@ If you enable availability zones but specify a capacity less than two, the platf
286317
zoneRedundant: true
287318
}
288319
}
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+
---
294323
295324
- **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.
296325

0 commit comments

Comments
 (0)