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
9
10
10
---
11
+
11
12
# Continuous deployment to Azure App Service
12
13
13
14
[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 +23,11 @@ To use Azure Repos, make sure your Azure DevOps organization is linked to your A
22
23
23
24
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
25
25
-
1. In the [Azure portal](https://portal.azure.com), search for and select **App Services**.
26
+
1. In the [Azure portal](https://portal.azure.com), search for **App Services** and select.
26
27
27
28

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

32
33
@@ -42,11 +43,11 @@ For Bitbucket or GitHub, authorize Azure App Service to connect to your reposito
42
43
43
44
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).
44
45
45
-
### Option 1: Use the App Service build service
46
+
### Option 1: Kudu App Service
46
47
47
48
You can use the built-in Kudu App Service build server to continuously deploy from GitHub, Bitbucket, or Azure Repos.
48
49
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.
50
+
1. In the [Azure portal](https://portal.azure.com), search for **App Services**, and then select the App Service you want to deploy.
50
51
51
52
1. On the app page, select **Deployment Center** in the left menu.
52
53
@@ -83,9 +84,11 @@ You can use the built-in Kudu App Service build server to continuously deploy fr
83
84
84
85

85
86
86
-
### Option 2: Use Azure Pipelines
87
+
### Option 2: Azure Pipelines
88
+
89
+
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
90
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).
91
+
#### Prerequisites
89
92
90
93
For Azure App Service to create continuous delivery using Azure Pipelines, your Azure DevOps organization should have the following permissions:
91
94
@@ -95,40 +98,66 @@ For Azure App Service to create continuous delivery using Azure Pipelines, your
95
98
96
99
- You must be an administrator in the Azure DevOps project you want to use.
97
100
98
-
To configure the Azure Pipelines (Preview):
101
+
#### GitHub + Azure Pipelines
99
102
100
-
1. In the [Azure portal](https://portal.azure.com), search for **App Services**, and then select the web app you want to deploy.
103
+
1. In the [Azure portal](https://portal.azure.com), search for **App Services**, and then select the App Service you want to deploy.
101
104
102
105
1. On the app page, select **Deployment Center** in the left menu.
103
106
104
-
1. Select your authorized source control provider on the **Deployment Center** page and select **Continue**. For **GitHub**, you can select **Change Account** to change the authorized account.
107
+
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.
1. On the **Configure** page, in the **Code** section:
113
-
114
-
- For **GitHub**, select the **Organization**, **Repository**, and **Branch** you want to deploy continuously and select **Continue**.
115
+
1. On the **Configure** page, in the **Code** section, select the **Organization**, **Repository**, and **Branch** you want to deploy continuously and select **Continue**.
115
116
116
117
> [!NOTE]
117
118
> 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.
118
-
119
-
- For Azure Repos, select the **Azure DevOps Organization**, **Project**, **Repository**, and **Branch** you want to deploy continuously, or configure a new Azure DevOps organization and select **Continue**.
120
-
121
-
> [!NOTE]
122
-
> 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).
123
-
124
-
1. In the **Build** section, specify the language framework that Azure Pipelines should use to run build tasks, and then select **Continue**.
119
+
120
+
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.
128
+
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.
129
129
130
130

131
131
132
+
#### Azure Repos + Azure Pipelines
133
+
134
+
1. In the [Azure portal](https://portal.azure.com), search for **App Services**, and then select the App Service you want to deploy.
135
+
136
+
1. On the app page, select **Deployment Center** in the left menu.
137
+
138
+
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**.
147
+
148
+
> [!NOTE]
149
+
> 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).
150
+
151
+
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.
160
+
132
161
## Disable continuous deployment
133
162
134
163
To disable continuous deployment, select **Disconnect** at the top of your app's **Deployment Center** page.
0 commit comments