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?
Use the Custom Script Extension to run a PowerShell script on VM1
Connect to VM1 via Remote Desktop Protocol (RDP) and install the software manually
Create a snapshot of VM1, install the software on the snapshot, and replace VM1 with the snapshot
Using the Custom Script Extension is the best method to automate software installation and configuration on an Azure virtual machine without direct connection. This extension runs scripts on the VM remotely, allowing administrators to perform tasks efficiently. Connecting via Remote Desktop Protocol (RDP) is not feasible when direct connection is not possible. While Azure Automation runbooks can automate tasks, they are typically used for orchestrating processes across multiple resources and may be more complex for this specific need. Creating a snapshot and replacing the VM is impractical and time-consuming for simply installing software.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the Custom Script Extension?
Open an interactive chat with Bash
How does the Custom Script Extension execute PowerShell scripts?
Open an interactive chat with Bash
What are some use cases for the Custom Script Extension?
Open an interactive chat with Bash
Microsoft Azure Administrator Associate AZ-104
Deploy and manage Azure compute resources
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access