Unable completing Unit 9 Exercises

Philippe Lefebvre 0 Reputation points
2024-11-08T18:27:18.9866667+00:00

I managed completing the Unit 3 tasks, however I am systematically getting an error when trying completing Task 1 in Unit 9. I am able confirming the VM is running, and I am able connecting to via SSH, however when I run the script to copy the VM's IP address and store it as a Bash variable, I am getting the following:

IPADDRESS="$(az vm list-ip-addresses --resource-group "learn-a1093bb9-9349-4fab-a8a3-5b4a2bd4f346" --name my-vm --query "[].virtualMachine.network.publicIpAddresses[*].ipAddress" --output tsv)"
IPADDRESS=$(az vm list-ip-addresses --resource-group "learn-a1093bb9-9349-4fab-a8a3-5b4a2bd4f346" --name my-vm --query "[].virtualMachine.network.publicIpAddresses[*].ipAddress" --output tsv): The term 'IPADDRESS=$(az vm list-ip-addresses --resource-group "learn-a1093bb9-9349-4fab-a8a3-5b4a2bd4f346" --name my-vm --query "[].virtualMachine.network.publicIpAddresses[*].ipAddress" --output tsv)' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

I am stuck here and cannot move forward. Assistance would be appreciated.

Thx

This question is related to the following Learning Module

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

1 answer

Sort by: Most helpful
  1. VarunTha 9,420 Reputation points Microsoft Vendor
    2024-11-08T19:45:02.8733333+00:00

    Hi Philippe Lefebvre,
    Thank you for reaching out to us on the Microsoft Q&A forum.

    I've provided the Unit 3 repro steps at this link:https://video2.skills-academy.com/en-us/answers/questions/2047306/error-when-create-a-linux-virtual-machine-and-inst

    After completing the Unit 3 exercise, proceed to the Unit 9 exercise and follow the steps outlined in the document. Be sure to restart the Cloud Shell before beginning to ensure it functions effectively.

    We also tested it on our end and obtained positive results, as shown in the screenshots:
    User's image
    User's image

    If you have any further questions or need additional assistance, please feel free to reach out. We're here to help!

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.


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.