Azure Monitor - Apply Azure monitoring metrics using PowerShell  #Creating an action group as an object $action = [Microsoft.Azure.Management.Monitor.Management.Models.ActivityLogAlertActionGroup]::New("/subscriptions/SubscriptionIDUpdatehere/resourceGroups/alert/providers/Microsoft.Insights/actiongroups/alertaction") #Setting up condition as an object $condition1 = New-AzMetricAlertRuleV2Criteria `  -MetricName "Percentage CPU" `  -MetricNameSpace "Microsoft.Compute/virtualMachines" `  -TimeAggregation Average `  -Operator GreaterThan `  -Threshold 96 $condition2 = New-AzMetricAlertRuleV2Criteria `  -MetricName "Available Memory Bytes" `  -MetricNameSpace "Microsoft.Compute/virtualMachines" `  -TimeAggregation Average `  -Operator LessThan `  -Threshold 1000000000 $condition3 = New-AzMetricAlertRuleV2Criteria `  -MetricName "Data Disk IOPS Consumed Percentage" `  -MetricNameSpace "Microsoft.Compute/virtualMachines" ...
 Using PowerShell:    Open a PowerShell prompt with Admin permissions.  Type Get-Hotfix  and press Enter or wmic qfe | findstr ""   Using a command line:     Open a command prompt with Admin permissions.  Type systeminfo.exe  and press Enter.  Scroll down to check installed host fixes.      Using the Windows Update Settings User Interface:    Open the Windows Settings UI.  Click on Update & security.  Click on the " Update history " link located under the Windows Update tab.