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).
Run
az vm listto check if the VM is still running.Use
az network nsg rule createto allow SSH access on port 22.Run
az vm list-ip-addressesto find the public IP of the VM.Update the NSG to allow inbound access on port 80.
Correct answers
Run
az vm listto check if the VM is still running.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.