Skip to main content
  1. Public practice questions
  2. AZ-900 Practice Exams | Azure Fundamentals
  3. Domain 2-Describe Azure architecture and services | AZ-900 Practice Exam | 399 Questions

Question 316 — Domain 2-Describe Azure architecture and services | AZ-900 Practice Exam | 399 Questions

You want to verify that your VM is still running and accessible over HTTP on port 80. Which two steps should you take? (Select 2 answers).

  1. Run az vm list to check if the VM is still running.

  2. Use az network nsg rule create to allow SSH access on port 22.

  3. Run az vm list-ip-addresses to find the public IP of the VM.

  4. Update the NSG to allow inbound access on port 80.

Correct answers

  1. Run az vm list to check if the VM is still running.

  2. Update the NSG to allow inbound access on port 80.

Explanations

Correct:

Run az vm list to check if the VM is still running: This lists VMs and confirms their status.

Update the NSG to allow inbound access on port 80: This action enables HTTP access.

Wrong:

Use az network nsg rule create to allow SSH access on port 22: SSH access is already allowed by default; this is unnecessary.

Run az vm list-ip-addresses to find the public IP of the VM: While helpful, this does not ensure HTTP accessibility directly.