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/deploy-local-git.md
+20-25Lines changed: 20 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ ms.workload: na
12
12
ms.tgt_pltfrm: na
13
13
ms.devlang: na
14
14
ms.topic: article
15
-
ms.date: 06/05/2018
15
+
ms.date: 06/14/2019
16
16
ms.author: dariagrigoriu;cephalin
17
17
ms.custom: seodec18
18
18
@@ -48,47 +48,42 @@ The easiest way to enable local Git deployment for your app with the Kudu build
48
48
49
49
[!INCLUDE [Configure a deployment user](../../includes/configure-deployment-user-no-h.md)]
50
50
51
+
> [!NOTE]
52
+
> Instead of account-level credentials, you can also deploy with app-level credentials, which are automatically generated for each app.
53
+
>
54
+
51
55
### Enable local Git with Kudu
52
56
53
57
To enable local Git deployment for your app with the Kudu build server, run [`az webapp deployment source config-local-git`](/cli/azure/webapp/deployment/source?view=azure-cli-latest#az-webapp-deployment-source-config-local-git) in the Cloud Shell.
54
58
55
59
```azurecli-interactive
56
-
az webapp deployment source config-local-git --name <app_name> --resource-group <group_name>
60
+
az webapp deployment source config-local-git --name <app-name> --resource-group <group-name>
57
61
```
58
62
59
63
To create a Git-enabled app instead, run [`az webapp create`](/cli/azure/webapp?view=azure-cli-latest#az-webapp-create) in the Cloud Shell with the `--deployment-local-git` parameter.
60
64
61
65
```azurecli-interactive
62
-
az webapp create --name <app_name> --resource-group <group_name> --plan <plan_name> --deployment-local-git
63
-
```
64
-
65
-
The `az webapp create` command should give you something similar to the following output:
66
-
67
-
```json
68
-
Local git is configured with url of 'https://<username>@<app_name>.scm.azurewebsites.net/<app_name>.git'
az webapp create --name <app-name> --resource-group <group-name> --plan <plan-name> --deployment-local-git
81
67
```
82
68
83
69
### Deploy your project
84
70
85
-
Back in the _local terminal window_, add an Azure remote to your local Git repository. Replace _\<url>_ with the URL of the Git remote that you got from [Enable Git for your app](#enable-local-git-with-kudu).
71
+
Back in the _local terminal window_, add an Azure remote to your local Git repository. Replace _\<username>_ with the deployment user from [Configure a deployment user](#configure-a-deployment-user) and _\<app-name>_ with the app name from [Enable Git for your app](#enable-local-git-with-kudu).
Push to the Azure remote to deploy your app with the following command. When prompted for a password, make sure that you enter the password you created in [Configure a deployment user](#configure-a-deployment-user), not the password you use to log in to the Azure portal.
77
+
> [!NOTE]
78
+
> To deploy with app-level credentials instead, get the credentials specific to your app by running the following command in the Cloud Shell:
> Then use the command output to run `git remote add azure <url>` like above.
85
+
86
+
Push to the Azure remote to deploy your app with the following command. When prompted for a password, make sure that you enter the password you created in [Configure a deployment user](#configure-a-deployment-user), not the password you use to sign in to the Azure portal.
Copy file name to clipboardExpand all lines: includes/configure-deployment-user-no-h.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,14 @@ services: app-service
5
5
author: cephalin
6
6
ms.service: app-service
7
7
ms.topic: "include"
8
-
ms.date: 02/02/2018
8
+
ms.date: 06/14/2019
9
9
ms.author: cephalin
10
10
ms.custom: "include file"
11
11
---
12
12
13
-
In the Azure Cloud Shell, configure deployment credentials with the [`az webapp deployment user set`](/cli/azure/webapp/deployment/user?view=azure-cli-latest#az-webapp-deployment-user-set) command. This deployment user is required for FTP and local Git deployment to a web app. The username and password are account level. _They're different from your Azure subscription credentials._
13
+
In the Azure Cloud Shell, configure deployment credentials with the [`az webapp deployment user set`](/cli/azure/webapp/deployment/user?view=azure-cli-latest#az-webapp-deployment-user-set) command. You use this deployment user for FTP and local Git deployment to a web app. The username and password are account level. _They're different from your Azure subscription credentials._
14
14
15
-
In the following example, replace *\<username>* and *\<password>*, including the brackets, with a new username and password. The username must be unique within Azure. The password must be at least eight characters long, with two of the following three elements: letters, numbers, and symbols.
15
+
In the following example, replace *\<username>* and *\<password>*, including the brackets, with a new username and password. The username must be unique within Azure. The password must be at least eight characters long, with two of the following three elements: letters, numbers, and symbols.
16
16
17
17
```azurecli-interactive
18
18
az webapp deployment user set --user-name <username> --password <password>
0 commit comments