Azure Monitoring ARM Template – Ready-to-Deploy Reusable Solution

Overview
This deployment package provides a modern Azure Monitoring setup using Azure Resource Manager (ARM) templates.
The solution deploys a Log Analytics Workspace and a workspace-based Application Insights resource, enabling centralized logging, monitoring, and application telemetry.
What This Template Deploys
- Azure Log Analytics Workspace
- Azure Application Insights (workspace-based)
- Configurable data retention policy
Files Included
template.json
ARM template defining the Log Analytics Workspace and Application Insights
parameters.json
Parameter file used to customize deployment values
deploy.ps1
PowerShell script for validation, What-If, and deployment
Prerequisites
To use this template, you will need:
An active Azure subscription
Access to Azure Portal or Azure Cloud Shell
Azure PowerShell (optional if using Cloud Shell)
Architecture Overview
This template uses the modern Azure monitoring model:
- Application Insights is linked to a Log Analytics Workspace
- All telemetry and logs are stored centrally in the workspace
- Enables unified querying, alerting, and diagnostics
How to Deploy
Step 1: Update Parameters
Open **parameters.json** and update:
- workspaceName
Name of the Log Analytics Workspace
- appInsightsName
Name of the Application Insights resource
- location
Example: eastus
- retentionInDays
Default: 30 (minimum), configurable up to 730
Step 2: Upload Files (Cloud Shell)
Upload:
- template.json
- parameters.json
- deploy.ps1
Step 3: Run Deployment Script
The script supports three modes:
Validate (recommended first)
```powershell
.\deploy.ps1 -resourceGroupName RG-ARM-TEMPLATES -mode Validate
Deployment Behavior
The script performs:
Resource group validation or creation
Template validation or preview (Based on Mode)
Optional deployment
After deployment: Expected Result
Log Analytics Workspace is created
Application Insights is provisioned
Application Insights is linked to the workspace
Retention policy is applied
Important Notes
Modern Monitoring Model
This template uses the current Azure standard:
Workspace-based Application Insights
Centralized logging and analytics
Improved scalability and query capabilities
Data Retention
Minimum retention is 30 days
Maximum retention is 730 days
Longer retention may increase cost
Naming Requirements
Workspace and Application Insights names must be unique within the resource group
Cost Consideration
Log Analytics uses a pay-per-ingested-data model
Application Insights shares the same ingestion model
Costs depend on the volume of collected telemetry
Summary
This package provides a reusable Azure Monitoring deployment solution based on modern architecture, enabling centralized logging, application monitoring, and scalable observability for cloud environments.
Support
For questions or custom template requests, please contact:
ITCloudAcademy Support Team
Email: support@ITCloudAcademy.net
Email: info@ITCloudAcademy.net
Website: http://www.itcloudacademy.net
Support Hours:
Monday to Friday
9:00 AM to 6:00 PM MST
