Local git Authentication fail

Truc Nguyen 1 Reputation point
2022-05-31T03:29:22.053+00:00

I tried to clone Local git from Azure portal to my machine, then it asks for username and password. I fill-in the information that Azure provides: "Application scope credentials are auto-generated and provide access only to this specific app or deployment slot. These credentials can be used with FTPS, Local Git and WebDeploy."
206836-authen.jpg

but it returns error:

206883-clone1.jpg

Is there any missing in the setting that I don't know? How can I solve this problem?

Thank you!
Truc

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,876 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. hquad 6 Reputation points
    2022-10-08T11:21:16.32+00:00

    The answer is not really an answer. I have the same issue: Copy/pasting the provided credentials results in "Authentication failed" as the original poster described above. Why does that happen and how can it be fixed?

    1 person found this answer helpful.
    0 comments No comments

  2. SnehaAgrawal-MSFT 18,286 Reputation points
    2022-06-01T11:46:58.737+00:00

    Thanks for reaching here! You can use either user-scope credentials or application-scope credentials.

    As its mentioned below please ensure you are using correct format of credentials and you have required access, if using App-level credentials must be contributor or higher.

    Since user-scope credentials are linked to the user and not a specific resource, the username must be in this format: <app-name>\<user-name> to direct the sign-in action to the right app endpoint.

    207514-configure-deployment-credentials-azure-app-service.png

    Check: https://learn.microsoft.com/en-us/azure/app-service/deploy-configure-credentials?tabs=cli

    For RBAC suggest you to refer below doc links:
    https://learn.microsoft.com/en-us/azure/role-based-access-control/overview
    https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal?tabs=current
    https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#website-contributor

    let us know if further query or issue remains.

    0 comments No comments

  3. Ray Luo 75 Reputation points Microsoft Employee
    2023-03-23T05:55:11.9333333+00:00

    The Application Scope's username is generated in this format: <app-name>\$<user-name>. But, as it turns out, you must use the second half starting from $ i.e. $<user-name> as your local git's username.

    0 comments No comments