A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/azure/app-service/deploy-configure-credentials below:

Manage Deployment Credentials - Azure App Service

You can deploy local apps to Azure App Service by using local Git deployment or FTP/S deployment. This article explains how to create and manage deployment credentials for local Git or FTP/S deployment.

Deployment credentials are different from your Azure subscription credentials. App Service supports two types of credentials for secure local app deployment: user-scope and app-scope credentials.

Prerequisites

To set, reset, access, or use deployment credentials, you must have Contributor-level permissions on the App Service app.

Basic authentication requirement

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.

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.

Set user-scope credentials

For FTP/S deployment, you need both a user name and a password. Local Git deployment requires only a user name. The user name must be unique within Azure.

For local Git deployment, the user name can't contain the @ character.

For FTP/S deployment:

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

To create user-scope credentials using Azure CLI, run the az webapp deployment user set command, replacing <username> and <password> with values you select.

az webapp deployment user set --user-name <username> --password <password>

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.

In the Azure portal, 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.

  1. Select Deployment Center under Deployment in the left navigation menu of an app.
  2. Select the FTPS credentials tab, or if Local Git is configured as the build source, the Local Git/FTPS credentials tab.
  3. In the User-scope section, add a Username.
  4. Add and confirm a Password.
  5. Select Save.

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.

Get application-scope credentials

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 app-scope user name uses the format $app-name.

Note

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.

You can get your app-scope credentials by using Azure CLI, Azure PowerShell, or the Azure portal.

In Azure CLI, get the application-scope credentials by using the az webapp deployment list-publishing-profiles command. For example:

az webapp deployment list-publishing-profiles --resource-group myResourceGroup --name myApp

For local Git deployment, you can also use the az webapp deployment list-publishing-credentials command. The following example returns a Git remote URI that has the application-scope credentials for the app already embedded.

az webapp deployment list-publishing-credentials --resource-group myResourceGroup --name myApp --query scmUri

The returned Git remote URI doesn't have /<app-name>.git at the end. If you use the URI to add a remote, append /<app-name>.git to the URI to avoid an error 22 with git-http-push.

In Azure PowerShell, get the application-scope credentials by using the Get-AzWebAppPublishingProfile command. For example:

Get-AzWebAppPublishingProfile -ResourceGroupName myResourceGroup -Name myApp

To get the application-scope credentials in the Azure portal:

  1. Select Deployment Center under Deployment in the left navigation menu of your app.
  2. On the Deployment Center page, select the FTPS credentials or Local Git/FTPS credentials tab.
  3. In the Application-scope section, view the FTPS username, Local Git username, and Password. Select the copy icons to copy the values.
Reset credentials

You can use Azure CLI, Azure PowerShell, or the Azure portal to reset your application-scope deployment credentials and get a new password. The app-scope user names retain their autogenerated values.

In Azure CLI and the Azure portal, you can also reset your user-scope credentials by creating new ones. This action affects all the apps in your account that use the user-scope credentials.

When you reset your deployment credentials, any external integrations and automation via the publishing profile stop working and must be reconfigured with the new values.

In Azure CLI, reset the application-scope password by using the az resource invoke-action command with the newpassword action.

az resource invoke-action --action newpassword --resource-group <group-name> --name <app-name> --resource-type Microsoft.Web/sites

Reset the user-scope credentials by rerunning the az webapp deployment user set command to create new user name and password values.

az webapp deployment user set --user-name <new-username> --password <new-password>

In Azure PowerShell, reset the application-scope password by using the Invoke-AzResourceAction command with the newpassword action:

Invoke-AzResourceAction -ResourceGroupName <group-name> -ResourceType Microsoft.Web/sites -ResourceName <app-name> -Action newpassword

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.

This action takes effect across all the apps in your account that use the user-scope credentials.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4