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

Jesus Toxtle 20 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 | Azure Training
0 comments No comments
{count} votes

Accepted answer
  1. Marcin Policht 49,790 Reputation points MVP Volunteer Moderator
    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 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.