Search This Blog

2020-09-08

Lab 11 : Azure Implement Monitor

 1.    Create resource group using the files from the below location

https://github.com/MicrosoftLearning/AZ-104-MicrosoftAzureAdministrator/tree/master/Allfiles/Labs/11

Powershell commands :

$location = 'eastus'

$rgName = 'az104-11-rg0'

New-AzResourceGroup -Name $rgName -Location $location


New-AzResourceGroupDeployment `

   -ResourceGroupName $rgName `

   -TemplateFile $HOME/az104-11-vm-template.json `

   -TemplateParameterFile $HOME/az104-11-vm-parameters.json `

   -AsJob


2.    Register the Microsoft.Insights and Microsoft.AlertsManagement resource providers.

Register-AzResourceProvider -ProviderNamespace Microsoft.Insights

Register-AzResourceProvider -ProviderNamespace Microsoft.AlertsManagement


3.    Create and configure an Azure Log Analytics workspace and Azure Automation-based solutions


4.    Create Automation Account. The location would be as https://docs.microsoft.com/en-us/azure/automation/how-to/region-mappings


5.    Map log analytics workspace with automation account and click Enable



6.    Review default monitoring


7.    Configure Azure virtual machine diagnostic settings for more detailed monitoring

8. Review the performance counter


9.    Enable Logs


10.    Review the Metrics and this time the "Guest" would be appeared in the Metric list


11. Create monitor and alert





12. Cleanup resources

Get-AzResourceGroup -Name 'az104-11*' | Remove-AzResourceGroup -Force -AsJob

No comments: