Error in Microsoft Azure Fundamentals: Describe Azure architecture and services exercise

Marlon Abreo 20 Reputation points
2024-12-15T17:47:42.9666667+00:00

Hello everyone, I'am studying the module "Describe Azure compute and networking services" of the "Microsoft Azure Fundamentals: Describe Azure architecture and services" course, I tried to execute this code from the unit 9, task 1:

IPADDRESS="$(az vm list-ip-addresses --resource-group "learn-dbc12461-8cb8-430d-af17-0e94e221e124" --name my-vm --query "[].virtualMachine.network.publicIpAddresses[*].ipAddress" --output tsv)"

but I got this error:
"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."

any idea what to do? or any video where shows that process, thank you.

This question is related to the following Learning Module

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

Accepted answer
  1. Gabriel Santana 175 Reputation points
    2024-12-15T21:10:54.03+00:00

    Hello Marlon! Welcome to the Microsoft Q&A Community!

    Here somethings that can help you:

    1. Switch to Bash
      User's image

    Note: Once you’re in Bash it’s important to run the commands in Bash to complete the exercise properly.

    1. Complete the exercises in the Unit 3 (If didn't already) https://learn.microsoft.com/en-us/training/modules/describe-azure-compute-networking-services/3-exercise-create-azure-virtual-machine
    2. After finishing Task 3, make sure to restart the Cloud Shell before starting Task 9. This helps avoid potential errors.

    If this answer was helpful, please click "Accept Answer" or "Upvote" to help others in the Microsoft Q&A community!

    1 person found this answer helpful.

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.