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/app-service-web-app-cloning.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
-
title: Clone an App with PowerShell
2
+
title: Clone an App by Using PowerShell
3
3
description: Learn how to clone your App Service app to a new app by using PowerShell. Learn about various cloning scenarios, including Traffic Manager integration.
With the release of Microsoft Azure PowerShell version 1.1.0, there's a new option for `New-AzWebApp`. By using this option, you can clone an existing App Service app to a newly created app in a different region or in the same region. You can deploy multiple apps across different regions quickly and easily.
15
+
This article explains how you can clone an existing App Service app to a newly created app in a different region or in the same region. You can deploy multiple apps across different regions quickly and easily.
16
16
17
-
App cloning is supported for Standard, Premium, Premium V2, and Isolated App Service plans. The feature uses the same limitations as the App Service Backup feature, see [Back up an app in Azure App Service](manage-backup.md).
17
+
App cloning is supported in **Standard**, **Premium**, **Premium V2**, and **Isolated** pricing tiers. The feature uses the same limitations as the App Service Backup feature, see [Back up an app in Azure App Service](manage-backup.md).
18
18
19
19
## Clone an existing app
20
20
@@ -109,8 +109,9 @@ After you have the Traffic Manager ID, the following command demonstrates how to
109
109
```powershell
110
110
$destapp = New-AzWebApp -ResourceGroupName <Resource group name> -Name dest-webapp -Location "South Central US" -AppServicePlan DestinationAppServicePlan -SourceWebApp $srcapp -TrafficManagerProfileId $TMProfileID
111
111
```
112
+
112
113
> [!NOTE]
113
-
> If you're receiving an error that states "SSL validation on the traffic manager hostname is failing," we suggest you use the `-IgnoreCustomHostNames` attribute in the PowerShell cmdlet while you perform the clone operation. The alternative is that you can use the portal.
114
+
> If you receive an error that states **SSL validation on the traffic manager hostname is failing**, we suggest that you use the `-IgnoreCustomHostNames` attribute in the PowerShell cmdlet while you perform the clone operation. Alternatively, you can use the Azure portal.
114
115
115
116
## Current restrictions
116
117
@@ -125,14 +126,13 @@ Here are the known restrictions of app cloning:
125
126
* TiP rules aren't cloned.
126
127
* Database content isn't cloned.
127
128
* Outbound IP addresses change if you clone to a different scale unit.
128
-
* Linux apps: not available.
129
+
* Linux apps aren't available.
129
130
* Managed identities aren't cloned.
130
-
* Function apps: not available.
131
+
* Function apps aren't available.
131
132
132
133
## Related content
133
134
134
-
*[Clone an app in Azure App Service](app-service-web-app-cloning.md)
135
-
*[Back up an app in Azure App Service](manage-backup.md)
136
-
*[Learn about Azure Resource Manager support for Azure Traffic Manager Preview](../traffic-manager/traffic-manager-powershell-arm.md)
137
-
*[Get an introduction to App Service Environment](environment/intro.md)
138
-
*[Use Azure PowerShell with Azure Resource Manager](../azure-resource-manager/management/manage-resources-powershell.md)
135
+
*[Back up and restore your app in Azure App Service](manage-backup.md)
136
+
*[Using PowerShell to manage Traffic Manager](../traffic-manager/traffic-manager-powershell-arm.md)
137
+
*[App Service Environment overview](environment/intro.md)
138
+
*[Manage Azure resources by using Azure PowerShell](../azure-resource-manager/management/manage-resources-powershell.md)
# Continuous deployment with custom containers in Azure App Service
15
15
16
-
Learn how to configure continuous integration and continuous delivery (CI/CD) for a custom container image from managed [Azure Container Registry](https://azure.microsoft.com/services/container-registry/) repositories or [Docker Hub](https://hub.docker.com).
16
+
This article explains how to configure continuous integration and continuous delivery (CI/CD) for a custom container image from managed [Azure Container Registry](https://azure.microsoft.com/services/container-registry/) repositories or [Docker Hub](https://hub.docker.com).
17
17
18
18
## 1. Go to the Deployment Center
19
19
20
20
In the [Azure portal](https://portal.azure.com), go to the management pane for your Azure App Service app.
21
21
22
-
From the left menu, select **Deployment Center** > **Settings**.
22
+
In the sidebar menu under **Deployment**, select **Deployment Center**. Choose the **Settings** tab.
23
23
24
24
::: zone pivot="container-linux"
25
-
## 2. Choose deployment source
25
+
## 2. Select code source
26
26
27
-
Choose the deployment source based on the following criteria:
27
+
From the **Source** dropdown menu, select the deployment source based on the following criteria:
28
28
29
29
***Container registry** sets up CI/CD between your container registry and App Service.
30
30
* Choose the **GitHub Actions** option if you maintain the source code for your container image in GitHub. New commits to your GitHub repository trigger the deploy action, which can run `docker build` and `docker push` directly to your container registry. It then updates your App Service app to run the new image. For more information, see [How CI/CD works with GitHub Actions](#how-cicd-works-with-github-actions).
@@ -50,7 +50,7 @@ To deploy a multi-container (Docker Compose) app, select **Docker Compose** in *
50
50
If you don't see the **Container Type** dropdown list, scroll back up to **Source** and select **Container Registry**.
51
51
::: zone-end
52
52
53
-
In **Registry source**, select where your container registry is. If it's not Azure Container Registry or Docker Hub, select **Private Registry**.
53
+
In **Registry source**, select where your container registry is. If it's not Azure Container Registry or Docker Hub, select **Private registry**.
54
54
55
55
::: zone pivot="container-linux"
56
56
> [!NOTE]
@@ -63,7 +63,7 @@ Follow the next steps by selecting the tab that matches your choice.
63
63
64
64
The **Registry** dropdown list displays the registries in the same subscription as your app. Select the registry you want.
65
65
66
-
To deploy from a registry in a different subscription, select **Private Registry** in **Registry source** instead.
66
+
To deploy from a registry in a different subscription, select **Private registry** in **Registry source** instead.
67
67
68
68
To use managed identities to lock down Azure Container Registry access, see:
When using App Service, you can scale your apps by scaling the [App Service plan](overview-hosting-plans.md) they run on. When multiple apps are running in the same App Service plan, each scaled-out instance runs all the apps in the plan.
16
+
You can scale your apps by scaling the [App Service plan](overview-hosting-plans.md) they run on. When multiple apps are running in the same App Service plan, each scaled-out instance runs all the apps in the plan.
17
17
18
-
*Per-app scaling* can be enabled at the App Service plan level to allow for scaling an app independently from the
18
+
In contrast, *per-app scaling* can be enabled at the App Service plan level to scale an app independently from the
19
19
App Service plan that hosts it. This way, an App Service plan can be scaled to 10 instances, but an app can be set to use only five.
20
20
21
21
> [!NOTE]
22
22
> Per-app scaling is available only for **Standard**, **Premium**, **Premium V2**, **Premium V3**, and **Isolated** pricing tiers.
23
23
>
24
24
25
-
Apps are allocated to available App Service plan using a besteffort approach for an even distribution across instances. While an even distribution is not guaranteed, the platform will make sure that two instances of the same app will not be hosted on the same App Service plan instance.
25
+
Apps are allocated to the available App Service plan using a best-effort approach for an even distribution across instances. While an even distribution isn't guaranteed, the platform makes sure that two instances of the same app aren't hosted on the same App Service plan instance.
26
26
27
-
The platform does not rely on metrics to decide on worker allocation. Applications are rebalanced only when instances are added or removed from the App Service plan.
27
+
The platform doesn't rely on metrics to decide on worker allocation. Applications are rebalanced only when instances are added or removed from the App Service plan.
28
28
29
-
## Perapp scaling using PowerShell
29
+
## Per-app scaling using PowerShell
30
30
31
-
Create a plan with per-app scaling by passing in the ```-PerSiteScaling $true``` parameter to the ```New-AzAppServicePlan``` cmdlet.
31
+
Create a plan with per-app scaling by passing in the `-PerSiteScaling $true` parameter to the `New-AzAppServicePlan` cmdlet.
# Modify the NumberOfWorkers setting to the desired value.
55
+
# Modify the NumberOfWorkers setting to the desired value
60
56
$newapp.SiteConfig.NumberOfWorkers = 2
61
57
62
-
# Post updated app back to azure
58
+
# Post updated app back to Azure
63
59
Set-AzWebApp $newapp
64
60
```
65
61
@@ -70,12 +66,10 @@ Set-AzWebApp $newapp
70
66
71
67
The following Azure Resource Manager template creates:
72
68
73
-
- An App Service plan that's scaled out to 10 instances
74
-
-an app that's configured to scale to a max of five instances.
69
+
- An App Service plan that's scaled out to 10 instances.
70
+
-An app that's configured to scale to a max of five instances.
75
71
76
-
The App Service plan is setting the **PerSiteScaling** property
77
-
to true `"perSiteScaling": true`. The app is setting the **number of workers**
78
-
to use to 5 `"properties": { "numberOfWorkers": "5" }`.
72
+
The App Service plan is setting the `PerSiteScaling` property to true `"perSiteScaling": true`. The app is setting the `number of workers` to use to 5 `"properties": { "numberOfWorkers": "5" }`.
79
73
80
74
```json
81
75
{
@@ -126,20 +120,20 @@ to use to 5 `"properties": { "numberOfWorkers": "5" }`.
126
120
127
121
## Recommended configuration for high-density hosting
128
122
129
-
Perapp scaling is a feature that is enabled in both global Azure regions and [App Service Environments](environment/app-service-app-service-environment-intro.md). However, the recommended strategy is to use App Service Environments to take advantage of their advanced features and the larger App Service plan capacity.
123
+
Per-app scaling is a feature that's enabled in both global Azure regions and [App Service Environments](environment/app-service-app-service-environment-intro.md). However, the recommended strategy is to use App Service Environments to take advantage of their advanced features and the larger App Service plan capacity.
130
124
131
125
Follow these steps to configure high-density hosting for your apps:
132
126
133
127
1. Designate an App Service plan as the high-density plan and scale it out to the desired capacity.
134
128
1. Set the `PerSiteScaling` flag to true on the App Service plan.
135
-
1. New apps are created and assigned to that App Service plan with the **numberOfWorkers** property set to **1**.
129
+
1. New apps are created and assigned to that App Service plan with the `numberOfWorkers` property set to *1*.
136
130
- Using this configuration yields the highest density possible.
137
131
1. The number of workers can be configured independently per app to grant additional resources as needed. For example:
138
-
- A high-use app can set **numberOfWorkers** to **3** to have more processing capacity for that app.
139
-
- Low-use apps would set **numberOfWorkers** to **1**.
132
+
- A high-use app can set `numberOfWorkers` to *3* to have more processing capacity for that app.
133
+
- Low-use apps would set `numberOfWorkers` to *1*.
140
134
141
-
## Next steps
135
+
## Related content
142
136
143
-
-[Azure App Service plans in-depth overview](overview-hosting-plans.md)
144
-
-[Introduction to App Service Environment](environment/app-service-app-service-environment-intro.md)
137
+
-[What are Azure App Service plans?](overview-hosting-plans.md)
138
+
-[App Service Environment overview](environment/overview.md)
145
139
-[Tutorial: Run a load test to identify performance bottlenecks in a web app](../load-testing/tutorial-identify-bottlenecks-azure-portal.md)
0 commit comments