Getting my VM's IP address doesn't work

Strzelczyk, Waldemar 20 Reputation points
2023-05-16T16:52:55.2133333+00:00

The Bash variable is empty.

Output of az vm list-ip-addresses:

[]

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,309 questions
{count} votes

Accepted answer
  1. kobulloc-MSFT 26,131 Reputation points Microsoft Employee
    2023-05-16T17:03:45.7433333+00:00

    Hello, @Strzelczyk, Waldemar !

    Where am I seeing this?

    Why am I getting empty [ ] when running the command az vm list-ip-addresses on Task 1: Access your web server, step 1?
    You'll get empty brackets [ ] when running the command az vm list-ip-addresses if there are no VMs to return. Complete the prerequisite to create a virtual machine, Unit 3 - Exercise - Create an Azure Virtual Machine, and then complete this unit (9 - Exercise - Configure network access) before an hour is up and the VM is automatically deleted.

    Empty brackets [ ] mean that no VMs were found. Complete the prerequisite to create a VM and then run this command within an hour before the VM is automatically deleted.

    267355-image.png

    If you are still running into issues, let us know in the comments and we will be happy to help you troubleshoot this.

    If this has been helpful, please take a moment to accept answers as this helps increase visibility of this question for other members of the Microsoft Q&A community. Thank you for helping to improve Microsoft Q&A!

    User's image

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful