Configure deployment credentials for Azure App Service
User-level credentials: one set of credentials for the entire Azure account. It can be used to deploy to App Service for any app, in any subscription, that the Azure account has permission to access. It's the default set that's surfaced in the portal GUI (such as the Overview and Properties of the app's resource page). When a user is granted app access via Role-Based Access Control (RBAC) or coadmin permissions, that user can use their own user-level credentials until the access is revoked. Do not share these credentials with other Azure users.
App-level credentials: one set of credentials for each app. It can be used to deploy to that app only. The credentials for each app are generated automatically at app creation. They can't be configured manually, but can be reset anytime. For a user to be granted access to app-level credentials via (RBAC), that user must be contributor or higher on the app (including Website Contributor built-in role). Readers are not allowed to publish, and can't access those credentials.
Configure user-level credentials
You can configure your user-level credentials in any app's resource page. Regardless in which app you configure these credentials, it applies to all apps and for all subscriptions in your Azure account.
In the Cloud Shell
- The username must be unique within Azure, and for local Git pushes, must not contain the ‘@’ symbol.
- The password must be at least eight characters long, with two of the following three elements: letters, numbers, and symbols.
az webapp deployment user set --user-name <username> --password <password>
The JSON output shows the password as
null. If you get a
'Conflict'. Details: 409 error, change the username. If you get a
'Bad Request'. Details: 400 error, use a stronger password.
In the portal
In the Azure portal, you must have at least one app before you can access the deployment credentials page. To configure your user-level credentials:
In the Azure portal, from the left menu, select App Services > <any_app> > Deployment center > FTP > Dashboard.
Or, if you've already configured Git deployment, select App Services > <any_app> > Deployment center > FTP/Credentials.
Select User Credentials, configure the user name and password, and then select Save Credentials.
Once you have set your deployment credentials, you can find the Git deployment username in your app's Overview page,
If Git deployment is configured, the page shows a Git/deployment username; otherwise, an FTP/deployment username.
Azure does not show your user-level deployment password. If you forget the password, you can reset your credentials by following the steps in this section.
Use user-level credentials with FTP/FTPS
Authenticating to an FTP/FTPS endpoint using user-level credentials requirers a username in the following format:
Since user-level credentials are linked to the user and not a specific resource, the username must be in this format to direct the sign-in action to the right app endpoint.
Get and reset app-level credentials
To get the app-level credentials:
In the Azure portal, from the left menu, select App Services > <any_app> > Deployment center > FTP/Credentials.
Select App Credentials, and select the Copy link to copy the username or password.
To reset the app-level credentials, select Reset Credentials in the same dialog.