AzureStack-QuickStart-Templ.../101-vm-linux-create-with-ex...
GTMer d0afc7ddb1 Add template 101-vm-linux-create-with-extension-diagnostic (#453) 2019-11-11 11:50:55 -08:00
..
images Add template 101-vm-linux-create-with-extension-diagnostic (#453) 2019-11-11 11:50:55 -08:00
README.md Add template 101-vm-linux-create-with-extension-diagnostic (#453) 2019-11-11 11:50:55 -08:00
azuredeploy.json Add template 101-vm-linux-create-with-extension-diagnostic (#453) 2019-11-11 11:50:55 -08:00
azuredeploy.parameters.json Add template 101-vm-linux-create-with-extension-diagnostic (#453) 2019-11-11 11:50:55 -08:00
metadata.json Add template 101-vm-linux-create-with-extension-diagnostic (#453) 2019-11-11 11:50:55 -08:00

README.md

Simple Linux VM with Diagnostic Settings

Description

Deploys a simple Linux VM with Linux Diagnostic Extension (LAD). This template also deploys a Virtual Network (with DNS), Network Security Group, and a Network Interface.

Tags: [Linux]

Prerequisites

  • Create an Azure/AzureStack storage account for recorded metrics and logs.
  • Acquire SAS token of above storage account.
  • Prepare Linux VM image.
  • For AzureStack 1908 or eariler, download LAD image from marketplace. AddLADFromMarketplace

Deploy

  1. Login to AzureStack portal
  2. Click 'Create a resource' -> 'Get started' -> 'Template Deployment'
  3. Copy content in azuredeploy.json, click 'Edit Template', paste all the content and click 'Save'
  4. Fill in the parameters
  5. Click 'Create'

Parameters

DeployParameters

  • existingdiagnosticsStorageAccountName: The storage account you prepared.
  • diagnosticsStorageAccountSasToken: The SAS token with write permission you created.
  • diagnosticsStorageAccountEndPoint: The storage account endpoint. You can get it from Properties blade of storage account, generally equals to substring of Primary Blob Service Endpoint after "blob.".

Output

GuestMetrics After a while, you can view the VM metrics on Azure Monitor blade by selecting the VM and the Guest namespace. Log You can get logs from table “LinuxSyslogVer2v0” in the storage account you specified.