You have an Azure subscription that contains 100 virtual machines.
You have a set of Pester tests in PowerShell that validate the virtual machine environment.
You need to run the tests whenever there is an operating system update on the virtual machines. The solution must minimize implementation time and recurring costs.
Which three resources should you use to implement the tests? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Click on the arrows to vote for the correct answer
A. B. C. D. E.ABE
AE: You can call Azure Automation runbooks by using action groups or by using classic alerts to automate tasks based on alerts.
B: Alerts are one of the key features of Azure Monitor. They allow us to alert on actions within an Azure subscription
https://docs.microsoft.com/en-us/azure/automation/automation-create-alert-triggered-runbook https://techsnips.io/snips/how-to-create-and-test-azure-monitor-alerts/?page=13To run Pester tests in PowerShell whenever there is an operating system update on the virtual machines, you can use the following resources:
A. Azure Automation runbook: An Azure Automation runbook is a PowerShell script that you can use to automate repetitive and time-consuming tasks across Azure and on-premises environments. You can use an Azure Automation runbook to run Pester tests on the virtual machines whenever there is an operating system update. To do this, you can create a runbook that connects to the virtual machines, runs the Pester tests, and sends an email notification if the tests fail. You can schedule the runbook to run at a specific time or trigger it when there is an operating system update.
B. An alert rule: An alert rule in Azure can be used to monitor and respond to changes in resource metrics, activity logs, or other alerts. You can create an alert rule that triggers when there is an operating system update on the virtual machines. The alert rule can then trigger an action, such as sending an email notification or running an Azure Automation runbook.
C. An Azure Monitor query: An Azure Monitor query can be used to retrieve and analyze data from Azure resources. You can use an Azure Monitor query to retrieve information about the virtual machines that have been updated, and then trigger an action, such as running an Azure Automation runbook, based on the query results.
Therefore, the correct answers to this question are A, B, and C. By using an Azure Automation runbook, an alert rule, and an Azure Monitor query, you can automate the testing process and reduce the amount of time and cost required to maintain and validate the virtual machine environment.