RE: Exercise - Configure network access; Resolve bug on Task 1 (Access your web server)

Jesus Toxtle 0 Reputation points
2025-02-01T04:14:13.7266667+00:00

On Task 1: Access your web server, I followed the guide step by step but noticed that upon trying copy/paste onto the Azure cloud shell, I kept getting errors

IPADDRESS="$(az vm list-ip-addresses --resource-group "learn-b7daad84-0095-4d3b-b0ba-ffd4b4315783" --name my-vm --query "[].virtualMachine.network.publicIpAddresses[*].ipAddress" --output tsv)"

Error Message:

Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Resolution:

$IPADDRESS = az vm list-ip-addresses --resource-group "learn-b7daad84-0095-4d3b-b0ba-ffd4b4315783" --name my-vm --query "[].virtualMachine.network.publicIpAddresses[*].ipAddress" --output tsv

Note: It might be helpful to fellow learners to update this accordingly.

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

1 answer

Sort by: Most helpful
  1. Marcin Policht 33,375 Reputation points MVP
    2025-02-01T04:36:24.8+00:00

    This doesn't appear to be a bug.

    Make sure you run the original command from the Bash session in the Azure Cloud Shell - not from the PowerShell session.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

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.