Microsoft Azure Administrator Associate AZ-104 Practice Question
You are an Azure administrator responsible for managing a virtual machine named VM1 that runs Windows Server 2019. You need to automate the installation of software and apply configuration settings on VM1, but you cannot connect directly to the VM. What is the best method to accomplish this?
Create a snapshot of VM1, install the software on the snapshot, and replace VM1 with the snapshot
Use Azure Automation to run a runbook against VM1
Connect to VM1 via Remote Desktop Protocol (RDP) and install the software manually
Use the Custom Script Extension to run a PowerShell script on VM1