Configure deployment credentials for Azure App Service

Azure App Service supports two types of credentials for local Git deployment and FTP/S deployment. These are not the same as your Azure Active Directory credentials.

  • 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 his/her 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. Readers are not allowed to publish, and can't access those credentials.

Set and reset 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.

To configure your user-level credentials:

  1. In the Azure portal, from the left menu, click App Services > <any_app> > Deployment center > Deployment credentials.

    In the portal, you must have at least one app before you can access the deployment credentials page. However, with the Azure CLI, you can configure user-level credentials without an existing app.

  2. Click User Credentials, configure the user name and password, and then click Save Credentials.

Once you have set your deployment credentials, you can find the Git deployment username in your app's Overview,

and FTP deployment username in your app's Properties.

Note

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.

Get and reset app-level credentials

To get the app-level credentials:

  1. In the Azure portal, from the left menu, click App Services > <any_app> > Deployment center > Deployment credentials.

  2. Click App Credentials, and click the Copy link to copy the username or password.

To reset the app-level credentials, click Reset Credentials in the same dialog.

Next steps

Find out how to use these credentials to deploy your app from local Git or using FTP/S.