Skip to content

Commit 4c91acc

Browse files
committed
more edit
1 parent 87d39c7 commit 4c91acc

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

articles/app-service/deploy-configure-credentials.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ ms.date: 06/30/2025
1111

1212
# Manage deployment credentials for Azure App Service
1313

14-
You can deploy local apps to [Azure App Service](overview.md) by using [local Git deployment](deploy-local-git.md) or [FTP/S deployment](deploy-ftp.md). App Service supports two types of credentials for secure local app deployment: *user-scope* and *app-scope* credentials. These deployment credentials are different from your Azure subscription credentials. This article explains how to create and manage deployment credentials for local Git or FTP/S deployment.
14+
You can deploy local apps to [Azure App Service](overview.md) by using [local Git deployment](deploy-local-git.md) or [FTP/S deployment](deploy-ftp.md). This article explains how to create and manage deployment credentials for local Git or FTP/S deployment.
15+
16+
App Service supports two types of credentials for secure local app deployment: *user-scope* and *app-scope* credentials. These deployment credentials are different from your Azure subscription credentials.
1517

1618
[!INCLUDE [app-service-deploy-credentials](../../includes/app-service-deploy-credentials.md)]
1719

@@ -24,24 +26,26 @@ To access, set, or reset deployment user credentials, you must have **Contributo
2426

2527
To publish App Service apps via local Git or FTP/S, you must enable basic authentication. **SCM Basic Auth Publishing Credentials** and **FTP Basic Auth Publishing Credentials** must both be set to **On** on the app's **Configuration** page in the Azure portal.
2628

27-
Basic authentication is less secure than other authentication methods and is disabled by default for new apps. When basic authentication is disabled, you can't view or set deployment credentials in the app's **Deployment Center** or use these credentials for publishing. For more information, see [Disable basic authentication in Azure App Service deployments](configure-basic-auth-disable.md).
29+
Basic authentication is less secure than other authentication methods and is disabled by default for new apps. If basic authentication is disabled, you can't view or set deployment credentials in the app's **Deployment Center** or use these credentials for publishing. For more information, see [Disable basic authentication in Azure App Service deployments](configure-basic-auth-disable.md).
2830

2931
<a name="userscope"></a>
3032
## Set user-scope credentials
3133

32-
Both local Git and FTP/S deployment require a user name. The user name must be unique within Azure.
34+
For FTP/S deployment, you need both a user name and a password. Local Git deployment requires a user name but not a password.
35+
36+
The user name must be unique within Azure. For local Git deployment, the user name can't contain the `@` character.
3337

34-
- For local Git, the user name can't contain the `@` character.
38+
For FTP/S:
3539

36-
- To authenticate to an FTP/S endpoint, the user name must follow the format `<app-name>\<user-name>`. Since user-scope credentials are linked to the user and not to the app, the username must be in this format to direct the sign-in action to the correct FTP/S endpoint for the app.
40+
- The user name must follow the format `<app-name>\<user-name>`. Since user-scope credentials are linked to the user and not to the app, the username must be in this format to direct the sign-in action to the correct FTP/S endpoint for the app.
3741

38-
For FTP/S deployment, you also need a password. The password must be at least eight characters and contain capital letters, lowercase letters, numbers, and symbols. The JSON output shows the password as `null`. Local Git deployment doesn't require a password.
42+
- The password must be at least eight characters and contain capital letters, lowercase letters, numbers, and symbols. The JSON output from credential creation shows the password as `null`.
3943

4044
You can configure user-scope credentials by using Azure CLI or the Azure portal.
4145

4246
# [Azure CLI](#tab/cli)
4347

44-
To create user-scope credentials, run the [`az webapp deployment user set`](/cli/azure/webapp/deployment/user#az-webapp-deployment-user-set) command, replacing `<username>` and `<password>` with values you select.
48+
To create user-scope credentials using Azure CLI, run the [`az webapp deployment user set`](/cli/azure/webapp/deployment/user#az-webapp-deployment-user-set) command, replacing `<username>` and `<password>` with values you select.
4549

4650
```azurecli-interactive
4751
az webapp deployment user set --user-name <username> --password <password>
@@ -53,19 +57,17 @@ You can't create user-scope credentials by using Azure PowerShell. Use Azure CLI
5357

5458
# [Azure portal](#tab/portal)
5559

56-
You must have at least one app to set user-scope deployment credentials in the [Azure portal](https://portal.azure.com). You can use any app that has **SCM Basic Auth** and **FTP Basic Auth** enabled. The credentials then apply to all apps for all subscriptions in your Azure account that have **SCM Basic Auth** and **FTP Basic Auth** enabled.
57-
58-
To configure deployment credentials:
60+
In the [Azure portal](https://portal.azure.com), you must have at least one app to use for setting user-scope credentials. The credentials then apply to all apps for all subscriptions in your Azure account that have **SCM Basic Auth** and **FTP Basic Auth** enabled.
5961

6062
1. Select **Deployment Center** under **Deployment** in the left navigation menu of an app.
6163
1. Select the **FTPS credentials** tab, or if **Local Git** is configured as the build source, the **Local Git/FTPS credentials** tab.
6264
1. In the **User-scope** section, add a **Username**.
63-
1. For FTP/S deployments, add and confirm a **Password**.
65+
1. Add and confirm a **Password**.
6466
1. Select **Save**.
6567

6668
-----
6769

68-
After you set the credentials, you can see your deployment user name on your app's **Overview** page in the Azure portal. If local Git deployment is configured, the label is **Git/deployment username**. Otherwise, the label is **FTP/deployment username**.
70+
After you set user-scope credentials, you can see your deployment user name on your app's **Overview** page in the Azure portal. If local Git deployment is configured, the label is **Git/Deployment username**. Otherwise, the label is **FTP/Deployment username**.
6971

7072
The portal doesn't show the password. If you forget your password, you can [reset your credentials](#reset-credentials) to get a new one.
7173

@@ -74,7 +76,7 @@ The portal doesn't show the password. If you forget your password, you can [rese
7476
<a name="appscope"></a>
7577
## Get application-scope credentials
7678

77-
The application-scope credentials are automatically created with the app. The FTP/S app-scope user name always follows the format `app-name\$app-name`. The local Git user name uses the format `$app-name`.
79+
The application-scope credentials are automatically created at app creation. The FTP/S app-scope user name always follows the format `app-name\$app-name`. The local Git user name uses the format `$app-name`.
7880

7981
>[!NOTE]
8082
>When you use `git remote add` in shells that use the dollar sign for variable interpolation, such as Bash, you must use `\$` to escape any dollar signs in the username or password to avoid authentication errors.
@@ -83,7 +85,7 @@ You can get your app-scope credentials by using Azure CLI, Azure PowerShell, or
8385

8486
# [Azure CLI](#tab/cli)
8587

86-
Get the application-scope credentials by using the [`az webapp deployment list-publishing-profiles`](/cli/azure/webapp/deployment#az-webapp-deployment-list-publishing-profiles) command. For example:
88+
In Azure CLI, get the application-scope credentials by using the [`az webapp deployment list-publishing-profiles`](/cli/azure/webapp/deployment#az-webapp-deployment-list-publishing-profiles) command. For example:
8789

8890
```azurecli-interactive
8991
az webapp deployment list-publishing-profiles --resource-group myResourceGroup --name myApp
@@ -99,17 +101,17 @@ The returned Git remote URI doesn't have `/<app-name>.git` at the end. If you us
99101

100102
# [Azure PowerShell](#tab/powershell)
101103

102-
Get the application-scope credentials by using the [`Get-AzWebAppPublishingProfile`](/powershell/module/az.websites/get-azwebapppublishingprofile) command. For example:
104+
In Azure PowerShell, get the application-scope credentials by using the [`Get-AzWebAppPublishingProfile`](/powershell/module/az.websites/get-azwebapppublishingprofile) command. For example:
103105

104106
```azurepowershell-interactive
105107
Get-AzWebAppPublishingProfile -ResourceGroupName myResourceGroup -Name myApp
106108
```
107109

108110
# [Azure portal](#tab/portal)
109111

110-
To get the application-scope credentials:
112+
To get the application-scope credentials in the Azure portal:
111113

112-
1. In the Azure portal, select **Deployment Center** under **Deployment** in the left navigation menu of your app.
114+
1. Select **Deployment Center** under **Deployment** in the left navigation menu of your app.
113115
1. On the **Deployment Center** page, select the **FTPS credentials** or **Local Git/FTPS credentials** tab.
114116
1. In the **Application-scope** section, view the **FTPS username**, **Local Git username**, and **Password**. Select the copy icons to copy the values.
115117

@@ -147,7 +149,7 @@ Invoke-AzResourceAction -ResourceGroupName <group-name> -ResourceType Microsoft.
147149

148150
# [Azure portal](#tab/portal)
149151

150-
From the left navigation menu of your app in the Azure portal, select **Deployment Center** > **FTPS credentials** or **Local Git/FTPS credentials**.
152+
In the Azure portal, select **Deployment Center** from your app's left navigation menu, and then select the **FTPS credentials** or **Local Git/FTPS credentials** tab.
151153

152154
- To reset your app-scope credentials and get a new password, select **Reset** at the bottom of the **Application-scope** section.
153155

0 commit comments

Comments
 (0)