Module 26 : Stage a web app deployment for testing and rollback by using App Service deployment slots

Deepika 20 Reputation points
2024-04-26T17:20:54.64+00:00

Dear Microsoft Team,

I created a webapp connected it to the local git.

In the following step: Git/FTPS credentials tab. The User scope section with username and passw was disabled. Therefore, I could not set the credentials.

Select the Local Git/FTPS credentials tab. Under User scope, enter a unique username and password of your choice, and then in the command bar, select Save. Make a note of the username and password for later.

I have not set any usernames and passwords. What password is it expecting from me?

Consequently, in the BASH prompt I got a fatal error. 

deepika [ ~/demoapp/app-service-web-dotnet-get-started ]$ git remote add production https://null@webappmslearndslots1.scm.azurewebsites.net/webappmslearnDslots1.git

deepika [ ~/demoapp/app-service-web-dotnet-get-started ]$ git push production

Password for 'https://null@webappmslearndslots1.scm.azurewebsites.net': 

fatal: Authentication failed for 'https://webappmslearndslots1.scm.azurewebsites.net/webappmslearnDslots1.git/'

However: On The Local Git/FTP credentials pane,

Git Clone Uri: https://webappmslearndslots1-staging.scm.azurewebsites.net:443/webappmslearndslots1.git

  • Application scope

Local Git Username: ababbaba

Password: xxxxxxxxxxxx

So alternatively I tried this out for git push credentials, As a result, webapp was up. But Git push and did not succeed.

This learn module is very confusing. Azure webapp part is clear, but connecting to Git and moving code to Git is not clear.

It would be great if some one can join on Teams and explain this concept.

Please help.

Thank you

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,010 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mahesh Goud Juvvadi 680 Reputation points Microsoft Vendor
    2024-04-27T08:00:21.8133333+00:00

    Hi Deepika,

    Greetings for the day!

    Thank you for reaching out to us on the Microsoft Q&A forum.
    We assume that you're practicing the following Learning Path exercise.

    Learning Path: Deploy a website to Azure with Azure App Service.

    Module: Stage a web app deployment for testing and rollback by using App Service deployment slots

    Unit: Exercise - Create deployment slots

    Please follow the below troubleshoot steps to get resolve the issue.

    we have tried from our end and able to complete the exercise successfully.

    1. create web app.
    2. To enable the authentication pls find the below link:
      https://learn.microsoft.com/en-us/azure/app-service/configure-basic-auth-disable?tabs=portal
    3. under the web app select (deployment center) from left side blade. you will see settings and Local Git/ FTPS credentials. Please find the below screenshot for your reference.
      User's image

    Now, select the Local Git/ FTPS credentials, Under User scope, enter a unique username and password of your choice. and save it as shown in the below screenshot.
    Note: save the username and password in a notepad to use in further steps of the exercise.
    User's image

    Kindly follow the remaining steps to compete the exercise as steps guided in the learn path.

    If the information is helpful, please accept the answer by clicking the "Upvote" and "Accept Answer" on the post. If you are still facing any issue, please let us know in the comments and provide screenshot. We are happy to assist you.

    Thank you.