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-configure-credentials.md
+24-19Lines changed: 24 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,18 +11,18 @@ ms.date: 06/27/2025
11
11
12
12
# Manage deployment credentials for Azure App Service
13
13
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 you can use for secure local app deployment, *user-scope* and *app-scope* credentials. These credentials are different from your Azure subscription credentials.
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 you can use for secure local app deployment, *user-scope* and *app-scope* credentials. These deployment credentials are different from your Azure subscription credentials.
To access, set, or reset deployment user credentials, you must have contributor-level permissions on an Azure App Service app that you want to deploy by using local Git or FTP/S.
20
+
To access, set, or reset deployment user credentials, you must have contributor-level permissions on an App Service app.
21
21
22
22
<aname="disable-basic-authentication"></a>
23
23
### Basic authentication requirement
24
24
25
-
Basic authentication must be enabled to publish App Service apps via local Git or FTP/S. Both **SCM Basic Auth Publishing Credentials** and **FTP Basic Auth Publishing Credentials** must be set to **On** on the app's **Configuration** page in the Azure portal.
25
+
To publish App Service apps via local Git or FTP/S, basic authentication must be enabled. **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.
26
26
27
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).
28
28
@@ -31,11 +31,11 @@ Basic authentication is less secure than other authentication methods and is dis
31
31
32
32
You can configure user-scope credentials by using Azure CLI or the Azure portal.
33
33
34
-
-For FTP/S deployment, you need both a user name and password.
35
-
- The user name must be unique within Azure and 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 FTP/S endpoint for the app.
36
-
-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`.
37
-
38
-
- For local Git deployment, you only need a user name, which must be unique within Azure and can't contain the `@` character.
34
+
-Both local Git and FTP/S deployment require a user name.
35
+
- The user name must be unique within Azure, and can't contain the `@` character.
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.
37
+
38
+
- For FTP/S deployment only, 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.
39
39
40
40
# [Azure CLI](#tab/cli)
41
41
@@ -44,11 +44,10 @@ To create user-scope credentials, run the [`az webapp deployment user set`](/cli
44
44
```azurecli-interactive
45
45
az webapp deployment user set --user-name <username> --password <password>
46
46
```
47
-
For local Git, you only need to provide a user name
48
47
49
48
# [Azure PowerShell](#tab/powershell)
50
49
51
-
You can't create user-scope credentials by using Azure PowerShell. Use Azure CLI or the Azure portal to create the credentials instead. Or you can use app-scope credentials to deploy to FTP/S or local Git.
50
+
You can't create user-scope credentials by using Azure PowerShell. Use Azure CLI or the Azure portal to create the credentials, or use app-scope credentials to deploy to FTP/S or local Git.
52
51
53
52
# [Azure portal](#tab/portal)
54
53
@@ -62,19 +61,19 @@ To configure deployment credentials:
62
61
1. For FTP/S deployments, add and confirm a **Password**.
63
62
1. Select **Save**.
64
63
65
-
After you set the credentials, you can see your deployment user name on your app's **Overview** page. If local Git deployment is configured, the label is **Git/deployment username**. Otherwise, the label is **FTP/deployment username**. The page doesn't show the password.
64
+
-----
66
65
67
-

66
+
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**. The page doesn't show the password.
68
67
69
-
-----
68
+

70
69
71
70
<aname="appscope"></a>
72
71
## Get application-scope credentials
73
72
74
-
The application-scope credentials are automatically created. 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`.
73
+
The application-scope credentials are automatically created along 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`.
75
74
76
75
>[!NOTE]
77
-
>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.
76
+
>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.
78
77
79
78
You can get your app-scope credentials by using Azure CLI, Azure PowerShell, or the Azure portal.
1. From the left navigation menu of your app, select **Deployment Center** > **FTPS credentials** or **Local Git/FTPS credentials**.
148
-
1. To reset your app-scope credentials and get a new password, select **Reset** at the bottom of the **Application-scope** section.
149
-
1. To reset your user-scope credentials, select **Reset** at the bottom of the **User-scope** section. This action deletes both user name and password, and disables user-scope credentials.
150
-
1. To reenable and reset your user-scope credentials, enter a new username and password, and select **Save**. This action takes effect across all the apps in your account that use the user-scope credentials.
146
+
From the left navigation menu of your app, select **Deployment Center** > **FTPS credentials** or **Local Git/FTPS credentials**.
147
+
148
+
- To reset your app-scope credentials and get a new password, select **Reset** at the bottom of the **Application-scope** section.
149
+
150
+
- To reset your user-scope credentials:
151
+
152
+
1. Select **Reset** at the bottom of the **User-scope** section. This action deletes both user name and password, and disables user-scope credentials.
153
+
1. To reenable and reset your user-scope credentials, enter a new username and password, and select **Save**.
154
+
155
+
This action takes effect across all the apps in your account that use the user-scope credentials.
0 commit comments