Exam AZ-800 All QuestionsBrowse all questions from this exam
Question 80

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?

    Correct Answer: A

    To create a PowerShell runbook, the first step is to create an Azure Automation account. This account is necessary as it provides the environment where you can create, manage, and execute your runbooks. Other options, such as an Azure workbook, Log Analytics workspace, and Microsoft Power Automate flow, have different purposes and are not prerequisites for creating a PowerShell runbook.

Discussion
windowsmodulesinstallerworkerOption: A

correct A

KrayzrOption: A

A. an Azure Automation account. Before you can create a PowerShell runbook, you need to create an Azure Automation account12. This account is where you will create and manage your runbooks. After creating the Automation account, you can then proceed to create the PowerShell runbook. Please note that the other options (B. an Azure workbook, C. a Log Analytics workspace, D. a Microsoft Power Automate flow) are not the first steps in creating a PowerShell runbook in Azure Automation. They serve different purposes within the Azure ecosystem. For instance, an Azure workbook is used for data visualization and collaboration, a Log Analytics workspace is used for data collection and analysis, and a Microsoft Power Automate flow is used for automating workflows across applications and services. None of these are prerequisites for creating a PowerShell runbook in Azure Automation. Therefore, the first step in creating a PowerShell runbook is to create an Azure Automation account.