You have an Azure subscription that contains 100 virtual machines.
You have a set of PowerShell scripts that validate the virtual machine environment.
You need to run the scripts 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 scripts? 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.ACE
E: Step 1: Create alert -
In your Automation account, select Alerts under Monitoring, and then select New alert rule.
A: Step 2: Configure action groups for your alerts
Once you have your alerts configured, you can set up an action group, which is a group of actions to use across multiple alerts. The actions can include email notifications, runbooks, webhooks, and much more.
C: Use an Azure Automation runbook to run the powershell scripts.
Note: The Azure Automation Process Automation feature supports several types of runbooks, such as the PowerShell runbook, which is a text runbook based on
Windows PowerShell.scripting.
https://docs.microsoft.com/en-us/azure/automation/update-management/configure-alerts https://docs.microsoft.com/en-us/azure/automation/automation-runbook-typesTo run PowerShell scripts whenever there is an operating system update on the virtual machines, we need to use Azure Automation to schedule the PowerShell scripts to run on the virtual machines. Azure Automation is a cloud-based automation and configuration service that provides PowerShell script execution, runbook scheduling, and configuration management. It allows us to automate tasks across Azure and non-Azure environments.
To implement the solution with minimal implementation time and recurring costs, we need to use the following resources:
Azure Automation Runbook: We can create a PowerShell runbook in Azure Automation to validate the virtual machine environment whenever there is an operating system update on the virtual machines. The runbook can be scheduled to run at regular intervals or can be triggered by an event such as an operating system update. Once the runbook is created, we can publish it to make it available to run.
Virtual Machine with network access: We need to create a virtual machine that has network access to the 100 virtual machines. This virtual machine will be used to execute the PowerShell scripts on the remote virtual machines. We can create the virtual machine in Azure and install the necessary PowerShell modules required for the PowerShell scripts to execute.
Azure Monitor Alert: We can create an alert rule in Azure Monitor to trigger the Azure Automation runbook whenever there is an operating system update on the virtual machines. The alert rule can be configured to monitor the virtual machines for any operating system updates and trigger the runbook whenever an update is detected. We can configure the alert rule to send a notification to an alert action group.
Alert Action Group: We can create an alert action group to receive notifications from the alert rule. The action group can be configured to send email notifications to the designated recipients.
In summary, we can use Azure Automation Runbook, Virtual Machine with network access, and Azure Monitor Alert to implement the solution. The runbook will validate the virtual machine environment, the virtual machine with network access will execute the PowerShell scripts, and the Azure Monitor Alert will trigger the runbook whenever there is an operating system update on the virtual machines. The solution minimizes implementation time and recurring costs by leveraging the cloud-based automation and configuration service provided by Azure Automation.