gitazureazure-web-app-service

Authentication failed for Azure Git


I'm trying to clone my webapp in Azure.

When I run git clone https://username@appname.scm.azurewebsites.net:443/appname.git the terminal asks me for my password.

But when I fill in my password, it keeps saying that the authentication has failed.

Even though I changed my password plenty of times in the Portal (Settings -> Set deployment credentials).

Any reason it keeps saying that my authentication has failed?


Solution

  • I had the same problem with my site and it turned out the issue is with the site url: the automatically generated remote url was: https://user@site.scm.azurewebsites.net/site.git

    On the other hand the portal showed: https://user@site.scm.azurewebsites.net:443/site.git

    After updating the remote url in git with the following command:

    git remote set-url azure
    https://<user>@<site>.scm.azurewebsites.net/<site>.git
    https://<user>@<site>.scm.azurewebsites.net:443/<site>.git
    

    things started working as expected.

    The morale of the story: check the deployment url as well as the password.