Setup Azure Monitor Diagnostics for Linux Virtual Machine using Terraform

Setup Azure Monitor Diagnostics for Linux Virtual Machine using Terraform

Azure Terraformer

1 год назад

782 Просмотров

EPISODE 38
In this episode, we'll continue our journey in crushing Newbie Wizards in the Azure Portal. This time, we'll be taking on our Linux Virtual Machine's Diagnostic Settings. We'll learn how to use the Portal to gain valuable insights into how it provisions resources using ARM Templates and we'll take that learning to the task of setting up a Virtual Machine Extension for Azure Monitor Diagnostics for Linux.

We'll also create a module that setups up the Virtual Machine Extension. We'll see how we can convert JSON payloads into HCL object structures to make them more readable and maintainable and we'll use JSON Encode to convert HCL objects into JSON strings for use with our Azure Resources.

Follow me on Twitter for quick code snippets and thoughts on Cloud, Automation and other things!
https://twitter.com/MarkTinderholt

Keep the knowledge flowing!
https://www.buymeacoffee.com/azterraformer

Source Code:
https://github.com/markti/azure-terraformer/tree/main/episodes/038

Azure ARM Resources Provider
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs

v3.41.0
https://registry.terraform.io/providers/hashicorp/azurerm/3.41.0/docs

Terraform Resource List:

- azurerm_linux_virtual_machine
- azurerm_virtual_machine_extension

Azure Resource Naming Conventions
https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-best-practices/resource-abbreviations

Тэги:

#microsoft_azure #azure_monitor_application_insights #azure_monitor #cloud_computing #azure_cloud #log_analytics #azure_monitor_tutorial #monitor_agent #analytics_workspace #linux_vm_setup #azure_linux_virutal_machine #azure_monitor_agent_install #azure_monitor_agent_data_collection_rules #azure_monitor_agent_migration #azure_monitor_agent_install_linux #azure_monitor_agent_install_windows #deploy_azure_monitor_agent #how_to_use_the_azure_monitor_agent_to_send_logs
Ссылки и html тэги не поддерживаются


Комментарии: