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
description: Learn how to enable CI/CD to Azure App Service from GitHub, BitBucket, Azure Repos, or other repos. Select the build pipeline that fits your needs.
4
4
ms.assetid: 6adb5c84-6cf3-424e-a336-c554f23b4000
5
5
ms.topic: article
6
-
ms.date: 08/23/2019
6
+
ms.date: 03/20/2020
7
7
ms.reviewer: dariac
8
8
ms.custom: seodec18
9
-
10
9
---
10
+
11
11
# Continuous deployment to Azure App Service
12
12
13
13
[Azure App Service](overview.md) enables continuous deployment from GitHub, BitBucket, and [Azure Repos](https://azure.microsoft.com/services/devops/repos/) repositories by pulling in the latest updates. This article shows you how to use the Azure portal to continuously deploy your app through the Kudu build service or [Azure Pipelines](https://azure.microsoft.com/services/devops/pipelines/).
@@ -22,11 +22,11 @@ To use Azure Repos, make sure your Azure DevOps organization is linked to your A
22
22
23
23
For Bitbucket or GitHub, authorize Azure App Service to connect to your repository. You only need to authorize with a source control service once.
24
24
25
-
1. In the [Azure portal](https://portal.azure.com), search for and select **App Services**.
25
+
1. In the [Azure portal](https://portal.azure.com), search for **App Services** and select.
26
26
27
27

28
28
29
-
1. Select the web app you want to deploy.
29
+
1. Select the App Service you want to deploy.
30
30
31
31

32
32
@@ -40,13 +40,13 @@ For Bitbucket or GitHub, authorize Azure App Service to connect to your reposito
40
40
41
41
## Enable continuous deployment
42
42
43
-
After you authorize a source control service, configure your app for continuous deployment through the built-in [Kudu App Service build server](#option-1-use-the-app-service-build-service), or through [Azure Pipelines](#option-2-use-azure-pipelines).
43
+
After you authorize a source control service, configure your app for continuous deployment through the built-in [Kudu App Service](#option-1-kudu-app-service) build server, or through [Azure Pipelines](#option-2-azure-pipelines).
44
44
45
-
### Option 1: Use the App Service build service
45
+
### Option 1: Kudu App Service
46
46
47
47
You can use the built-in Kudu App Service build server to continuously deploy from GitHub, Bitbucket, or Azure Repos.
48
48
49
-
1. In the [Azure portal](https://portal.azure.com), search for and select **App Services**, and then select the web app you want to deploy.
49
+
1. In the [Azure portal](https://portal.azure.com), search for **App Services**, and then select the App Service you want to deploy.
50
50
51
51
1. On the app page, select **Deployment Center** in the left menu.
52
52
@@ -79,59 +79,84 @@ You can use the built-in Kudu App Service build server to continuously deploy fr
79
79
80
80
1. After you configure the build provider, review the settings on the **Summary** page, and then select **Finish**.
81
81
82
-
New commits in the selected repository and branch now deploy continuously into your App Service app. You can track the commits and deployments on the **Deployment Center** page.
82
+
1. New commits in the selected repository and branch now deploy continuously into your App Service app. You can track the commits and deployments on the **Deployment Center** page.
83
83
84
84

85
85
86
-
### Option 2: Use Azure Pipelines
86
+
### Option 2: Azure Pipelines
87
+
88
+
If your account has the necessary permissions, you can set up Azure Pipelines to continuously deploy from GitHub or Azure Repos. For more information about deploying through Azure Pipelines, see [Deploy a web app to Azure App Services](/azure/devops/pipelines/apps/cd/deploy-webdeploy-webapps).
87
89
88
-
If your account has the necessary permissions, you can set up Azure Pipelines to continuously deploy from GitHub or Azure Repos repositories. For more information about deploying through Azure Pipelines, see [Deploy a web app to Azure App Services](/azure/devops/pipelines/apps/cd/deploy-webdeploy-webapps).
90
+
#### Prerequisites
89
91
90
-
For Azure App Service to create continuous delivery Azure Pipelines in your Azure DevOps organization:
92
+
For Azure App Service to create continuous delivery using Azure Pipelines, your Azure DevOps organization should have the following permissions:
91
93
92
94
- Your Azure account must have permissions to write to Azure Active Directory and create a service.
93
95
94
96
- Your Azure account must have the **Owner** role in your Azure subscription.
95
97
96
98
- You must be an administrator in the Azure DevOps project you want to use.
97
99
98
-
To configure Azure Pipelines (Preview):
100
+
#### GitHub + Azure Pipelines
99
101
100
-
1. In the [Azure portal](https://portal.azure.com), search for and select **App Services**, and then select the web app you want to deploy.
102
+
1. In the [Azure portal](https://portal.azure.com), search for **App Services**, and then select the App Service you want to deploy.
101
103
102
104
1. On the app page, select **Deployment Center** in the left menu.
105
+
106
+
1. Select **GitHub** as the source control provider on the **Deployment Center** page and select **Continue**. For **GitHub**, you can select **Change Account** to change the authorized account.
- For GitHub, drop down and select the **Organization**, **Repository**, and **Branch** you want to deploy continuously.
114
+
1. On the **Configure** page, in the **Code** section, select the **Organization**, **Repository**, and **Branch** you want to deploy continuously and select **Continue**.
109
115
110
116
> [!NOTE]
111
117
> If you don't see any repositories, you may need to authorize Azure App Service in GitHub. Browse to your GitHub repository and go to **Settings** > **Applications** > **Authorized OAuth Apps**. Select **Azure App Service**, and then select **Grant**. For organization repositories, you must be an owner of the organization to grant the permissions.
112
-
113
-
- For Azure Repos, select the **Azure DevOps Organization**, **Project**, **Repository**, and **Branch** you want to deploy continuously, or configure a new Azure DevOps organization.
114
-
115
-
> [!NOTE]
116
-
> If your existing Azure DevOps organization isn't listed, you may need to link it to your Azure subscription. For more information, see [Define your CD release pipeline](/azure/devops/pipelines/apps/cd/deploy-webdeploy-webapps#cd).
117
-
118
-
1. Select **Continue**.
119
-
120
-
1. For Azure Repos, in the **Build** section, specify the language framework that Azure Pipelines should use to run build tasks, and then select **Continue**.
121
-
122
-
1. On the **Test** page, choose whether to enable load tests, and then select **Continue**.
123
-
124
-
1. Depending on your App Service plan [pricing tier](https://azure.microsoft.com/pricing/details/app-service/plans/), you may see a **Deploy to staging** page. Choose whether to [enable deployment slots](deploy-staging-slots.md), and then select **Continue**.
125
-
126
-
> [!NOTE]
127
-
> Azure Pipelines doesn't allow continuous delivery to the production slot. This restriction prevents accidental deployments to production. Set up continuous delivery to a staging slot, verify the changes there, and then swap the slots when you are ready.
128
-
118
+
119
+
In the **Build** section, specify the Azure DevOps Organization, Project, language framework that Azure Pipelines should use to run build tasks, and then select **Continue**.
New commits in the selected repository and branch now deploy continuously into your App Service app. You can track the commits and deployments on the **Deployment Center** page.
127
+
1.New commits in the selected repository and branch now deploy continuously into your App Service. You can track the commits and deployments on the **Deployment Center** page.
132
128
133
129

134
130
131
+
#### Azure Repos + Azure Pipelines
132
+
133
+
1. In the [Azure portal](https://portal.azure.com), search for **App Services**, and then select the App Service you want to deploy.
134
+
135
+
1. On the app page, select **Deployment Center** in the left menu.
136
+
137
+
1. Select **Azure Repos** as the source control provider on the **Deployment Center** page and select **Continue**.
1. On the **Configure** page, in the **Code** section, select the **Organization**, **Repository**, and **Branch** you want to deploy continuously and select **Continue**.
146
+
147
+
> [!NOTE]
148
+
> If your existing Azure DevOps organization isn't listed, you may need to link it to your Azure subscription. For more information, see [Define your CD release pipeline](/azure/devops/pipelines/apps/cd/deploy-webdeploy-webapps#cd).
149
+
150
+
In the **Build** section, specify the Azure DevOps Organization, Project, language framework that Azure Pipelines should use to run build tasks, and then select **Continue**.
1. New commits in the selected repository and branch now deploy continuously into your App Service. You can track the commits and deployments on the **Deployment Center** page.
159
+
135
160
## Disable continuous deployment
136
161
137
162
To disable continuous deployment, select **Disconnect** at the top of your app's **Deployment Center** page.
0 commit comments