Invalid image type error when creating webVM1 and webVM2 on public load balancer exercise using bash

Bernard Steenbergen 20 Reputation points
2024-02-16T10:03:06.9533333+00:00

I'm trying to follow the instructions on the exercise "Configure a public load balancer" using the provided bash commands. However, I am encountering an error message when creating webVM1 and webVM2:

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'].

The error message suggests that the image type is invalid and lists the options for the available image types. The link to the exercise is here.

Azure | Azure Training
0 comments No comments
{count} votes

Accepted answer
  1. anand 235 Reputation points
    2024-02-16T10:26:15.1766667+00:00

    Hi Bernard Steenbergen,

    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. Additionally, Reference thread link: https://learn.microsoft.com/en-us/answers/questions/1517066/issue-getting-error-while-creating-the-web-app Please click Accept Answer and upvote if the above was helpful. Thanks. anand


0 additional answers

Sort by: Most helpful

Your answer

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