Issue getting error while creating the Web app

John-91 40 Reputation points
2024-01-29T11:02:38+00:00

I was going the this exercise https://learn.microsoft.com/en-us/training/modules/improve-app-scalability-resiliency-with-load-balancer/4-exercise-configure-public-load-balancer?pivots=bash i am seeing the below error as its says issue while creating the webapp. I am sharing the screenshot below:User's image

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.
653 questions
0 comments No comments
{count} votes

Accepted answer
  1. aatheeque 625 Reputation points Microsoft Vendor
    2024-02-01T09:23:46.3166667+00:00

    Hi John-91, Thank you for reaching out to Microsoft Q & A forum.  Can you able to try the steps provided by the @TP and I can be able to successfully edit and create-high-availability-vm-with-sets.sh using nano editor as instructed by @TP.  Can you follow the steps as provided by TP:

    •  Please activate the sandbox, then follow the steps provided in the documentation.
    • Once after done with Step-1, Before running the command in step 2, please enter the command below so that you can edit the script:
      nano create-high-availability-vm-with-sets.sh
      
      
    
    • Use your arrow keys to navigate down to the --image UbuntuLTS line and change it to --image Ubuntu2204.
    •  After you have made the change, press Ctrl-X, Y, then Enter to save and exit the editor. 

    For your reference I am sharing the screenshot below:

    lb snip Please note that to ensure that the accurate "learn-xxxxxxxx-" resource group name is entered in the provided command. Although the command is designed to automatically update with the correct group name, you can navigate to the Azure portal and access the Resource groups section.

    If you are still running into issues, kindly attach the screenshots for reference and please let us know in the comments. We are happy to assist you.

     If the answer has been helpful in resolving the issue, please consider accepting the answer by clicking on the “Accept answer" button to help increase visibility of this question for other members of the Microsoft Q&A community.

      Thank you.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. TP 68,426 Reputation points
    2024-01-29T11:27:09.38+00:00

    Hi John,

    There is an error in the exercise. Below instructions will allow you to complete it successfully.

    Please navigate to Exercise - Configure a public load balancer , Activate sandbox, review permissions, sign-in, etc.

    Before running the command in step 2, please enter below command so that you can edit the script:

    nano create-high-availability-vm-with-sets.sh
    
    

    Use your arrow keys to navigate down to the --image UbuntuLTS line and change it to --image Ubuntu2204

    After you have made the change, press Ctrl-X, Y, then Enter to save and exit the editor. At this point you have "fixed" the file and can continue completing the exercise by running:

    bash create-high-availability-vm-with-sets.sh <your learn-xxxx resource group name>
    
    

    Please note it is critical to enter the correct "learn-xxxxxxxx-" resource group name in the above command. It should update the command to have the correct group name automatically, however, lately there has been a new bug whereby it doesn't get updated. You can find the resource group name by opening the Azure portal and clicking on Resource groups.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    1 person found this answer helpful.