Share via

wrong value in lab script when creating vm's

Mike Bergshoeff 0 Reputation points
2024-01-10T19:39:54.35+00:00

I guess in the script for the lab there is a wrong/outdated image. LAB: https://learn.microsoft.com/en-us/training/modules/improve-app-scalability-resiliency-with-load-balancer/4-exercise-configure-public-load-balancer?pivots=portal I got the following error when executing: bash create-high-availability-vm-with-sets.sh [sandbox resource group name] Creating webVM1 Invalid image "UbuntuLTS". Use a valid image URN, custom image name, custom image id, VHD blob URI, or pick an image from ['CentOS85Gen2', 'Debian11', 'FlatcarLinuxFreeGen2', 'OpenSuseLeap154Gen2', 'RHELRaw8LVMGen2', 'SuseSles15SP3', 'Ubuntu2204', 'Win2022Datacenter', 'Win2022AzureEditionCore', 'Win2019Datacenter', 'Win2016Datacenter', 'Win2012R2Datacenter', 'Win2012Datacenter', 'Win2008R2SP1']. See vm create -h for more information on specifying an image.

Azure | Azure Training
0 comments No comments

1 answer

Sort by: Most helpful
  1. TP 157.5K Reputation points Volunteer Moderator
    2024-01-11T01:06:00.2233333+00:00

    Hi Mike,

    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

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.