AZ-104 Practice Question 95: VM Run Command Guest Firewall

Microsoft Azure Administrator Associate (AZ-104) · Test 10 · question 5 of 10

Computemedium

A Windows virtual machine is unreachable over RDP after a guest firewall rule that blocks port 3389 was added. The network security group is correct. The administrator wants to run a PowerShell script inside the machine that removes the rule, without opening any inbound port.

What should the administrator use?

Select one answer
Show answer and explanation

Answer:

  • A. Run Command on the virtual machine

Run Command runs a script inside the guest through the Azure VM agent and the platform control plane, so it does not depend on RDP or any inbound port. The script can delete the blocking firewall rule.

Option B changes Azure-level filtering, which is already correct.

Option C moves the machine to another host and leaves the guest operating system and its firewall as they are.

Option D still connects with RDP to port 3389 inside the guest, so the guest firewall blocks it too.

Reference: Run scripts in a Windows VM in Azure by using Run Command

Practice Test 10 ›

Study guides for AZ-104