AZ-800 · Question #181
You have an Azure subscription. The subscription contains a virtual machine named VM1 that runs Windows Server. You plan to manage VM1 by using a PowerShell runbook. You need to create the runbook…
The correct answer is A. an Azure Automation account. To manage an Azure virtual machine using a PowerShell runbook, you must first create an Azure Automation account.
Question
You have an Azure subscription. The subscription contains a virtual machine named VM1 that runs Windows Server. You plan to manage VM1 by using a PowerShell runbook. You need to create the runbook. What should you create first?
Options
- Aan Azure Automation account
- Ban Azure workbook
- Ca Log Analytics workspace
- Da Microsoft Power Automate flow
How the community answered
(16 responses)- A94% (15)
- B6% (1)
Why each option
To manage an Azure virtual machine using a PowerShell runbook, you must first create an Azure Automation account.
An Azure Automation account provides the necessary environment for authoring, testing, and running PowerShell runbooks in Azure. It is a prerequisite for deploying and executing automation scripts that interact with Azure resources like virtual machines, serving as the container for all automation assets.
An Azure workbook is used for data visualization and reporting in Azure Monitor, not for hosting and executing PowerShell runbooks.
A Log Analytics workspace is used for collecting and analyzing log data, not for creating or running PowerShell runbooks.
A Microsoft Power Automate flow is a workflow automation service, but Azure Automation is specifically designed for script-based automation tasks, including PowerShell runbooks for managing Azure infrastructure.
Concept tested: Prerequisites for Azure Automation PowerShell runbooks
Source: https://learn.microsoft.com/en-us/azure/automation/overview
Topics
Community Discussion
No community discussion yet for this question.