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 | Azure Training
{count} votes

Answer accepted by question author
  1. kobulloc-MSFT 26,846 Reputation points Microsoft Employee Moderator
    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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.