d0afc7ddb1 | ||
---|---|---|
.. | ||
images | ||
README.md | ||
azuredeploy.json | ||
azuredeploy.parameters.json | ||
metadata.json |
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.
Deploy
- Login to AzureStack portal
- Click 'Create a resource' -> 'Get started' -> 'Template Deployment'
- Copy content in azuredeploy.json, click 'Edit Template', paste all the content and click 'Save'
- Fill in the parameters
- Click 'Create'
Parameters
- 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 ofPrimary Blob Service Endpoint
after "blob.".
Output
After a while, you can view the VM metrics on Azure Monitor blade by selecting the VM and the Guest namespace. You can get logs from table “LinuxSyslogVer2v0” in the storage account you specified.