Logo Ajo Mathew
  • Home
  • About
  • Skills
  • Experiences
  • Education
  • Posts
  • Notes
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo
  • Tags
  • ACI
  • Alert-Processing-Rules
  • ARM
  • Automation
  • Azure
  • Azure Container Groups
  • Azure Container Instances
  • Azure DevOps
  • Azure Network Service Tags
  • Azure-Monitor
  • Azurerm
  • Blob
  • CI
  • Copy Function
  • Customization
  • DevOps
  • DSC
  • Dual Boot
  • English
  • Function
  • Git
  • Linux
  • Logrotate
  • Monitoring
  • Multiple Resource Properties
  • Notion
  • NSG
  • Pipeline
  • Planned-Maintenance
  • POP
  • Powershell
  • PTE
  • Send-Mailmessage
  • Sendgrid
  • Smtp
  • SQL
  • Tar
  • Terraform
  • Timedatectl
  • Tips
  • UIEF
  • Variables
  • Vivaldi
  • Vscode
  • Windows
  • YAML
Hero Image
A Practical Guide to Handling Azure Alerts During Planned Maintenance

Problem description Availability alerts for VMs in a resource group were configured. During planned maintenance (for example, a VM reboot), the team receives VM availability notifications that are false positives. How can we avoid or resolve these false alarms? Approaches The alert in question uses VM availability metrics evaluated every 1 minute with a 5‑minute lookback window. Option 1 — Disable the alert during the maintenance window When you stop the VM, disable the alert. When you start the VM, re-enable the alert. This is a simple approach but requires coordinating the start/stop process with alert management.

  • azure
  • azure-monitor
  • alert-processing-rules
  • planned-maintenance
  • monitoring
  • devops
Tuesday, November 25, 2025 | 6 minutes Read
Hero Image
Azure Container Groups for hosting

Few days ago I was in need of a quick and easy option to host few containers with Azure for one of my Demos. I didn’t want to go with the headache of having an AKS or VM with docker installed. So I picked ACI ( Azure Container Instance ) with an nginx vm for reverse proxy – Since this was to be presented quick we we went the dirty way.

  • Azure
  • ACI
  • Azure Container Groups
Monday, May 22, 2023 | 3 minutes Read
Hero Image
Use Azure NSG and Azure Service Tags to block internet and allow to Azure Portal

My Client got a requirement to block internet access inside a Subnet \ Vnet only using NSG and allow connection only to Azure Portal. Client is using Azure Private Endpoints to enable private access to Azure Storage , Databricks and other services hence other resource access from within the VMs inside VM is working as expected. The requirement from security team is to lock Azure Vnet & Subnet from internet and enable only direct Portal access.

  • Azure
  • NSG
  • Azure Network Service Tags
Monday, February 27, 2023 | 2 minutes Read
Hero Image
Azure DevOpos pipeline Yaml variables not substituting azureResourceManagerConnection

While setting up an Azure ARM deployment pipeline using yaml. Below is my template.yaml file parameters: - name: azRMConnection type: string - name: subscriptionID type: string - name: resourceGroupName type: string - name: deploymentLocation type: string default: "[resourceGroup().location]" - name: armTemplateFilePath type: string - name: armTemplateParameterFilePath type: string - name: overrideParameters type: string steps: - task: AzureResourceManagerTemplateDeployment@3 displayName: "ARM Template Deployment" inputs: deploymentScope: 'Resource Group' azureResourceManagerConnection: '${{parameters.azRMConnection}}' deploymentMode: Incremental subscriptionId: ${{parameters.subscriptionID}} action: 'Create Or Update Resource Group' resourceGroupName: ${{parameters.resourceGroupName}} location: ${{parameters.deploymentLocation}} templateLocation: Linked artifact csmFile: ${{parameters.armTemplateFilePath}} csmParametersFile: ${{parameters.armTemplateParameterFilePath}} overrideParameters: "${{parameters.overrideParameters}}" And this is my actual main.yaml looks like

  • Azure
  • DevOps
  • Pipeline
  • YAML
  • Variables
Thursday, March 3, 2022 | 2 minutes Read
Hero Image
Azure ARM template copy function - Using Objects as parameters with multiple resource properties

I was following this Azure Document to try out Azure ARM copy operation to loop through properties of an azure resource. Looks like the page was not updated correctly so I raised an issue with the MS Docs github page. This was just minor change - where NSG properties were not correctly reprsented in that example document. You can follow below correct ARM templates. ARM template {% gist 659a893a3a941d72f824e0f703c13fda %} Parameter {% gist c4bcdc862196719e79c010d1d61dc4d9 %}

  • Azure
  • ARM
  • Function
  • Copy Function
  • multiple resource properties
Saturday, October 30, 2021 | 3 minutes Read
Hero Image
Azure Container Groups for hosting ?

Few days ago I was in need of a quick and easy option to host few containers with Azure for one of my Demos. I didn’t want to go with the headache of having an AKS or VM with docker installed. So I picked ACI ( Azure Container Instance ) with an nginx vm for reverse proxy - Since this was to be presented quick we we went the dirty way.

  • ACI
  • Azure
  • Azure container instances
Saturday, July 25, 2020 | 3 minutes Read
Hero Image
Uninstall Az Powershell Module forcefully and completely

I’m primarily using PowerShell to address Azure automation activities from running from local to Azure itself. The most painful task encountered is about upgrading PowerShell Az modules and making it work with VsCode. After many trial and error, this is the best method I could recommend to uninstall the PowerShell Az module. Get-installedmodule Az.*| foreach-object{Uninstall-Module -Name $_.Name -Verbose -AllVersions -force} If you encounter running the above code snippet from the no-Admin account, switch to the Admin account. Incase Az.Accounts module is adamant in getting uninstalled, open a cmd - As Administrator and run below command. This will rid your system of Az modules.

  • Azure
  • Powershell
Monday, June 8, 2020 | 2 minutes Read
Hero Image
After (lot of ) Hacks - A working way to deploying Azure SQL on Virtual Machine using terraform

I am very new with terraform. I was trying out terraform to deploy an SQL VM to Azure. SQL VM in Azure has undergone many changes recently from using SqlVmIaasExtension to manage SQL VM instance to a new resource type Microsoft.SqlVirtualMachine/SqlVirtualMachines To implement the best practice of SQL, we had to fall to PowerShell DSC. Now Azure natively support disk management(new Storage Type) via SqlVirtualMachine resource type. I wanted to get new Storage type implemented via terraform azurerm_mssql_virtual_machine. This resource in terraform under module azurerm supports everything except new storage types.

  • Azure
  • azurerm
  • SQL
  • terraform
Monday, May 25, 2020 | 3 minutes Read
Hero Image
Linux Log Rotate and archive rotated file.

I was checking an article on how to upload archived logs to azure blob. As initial set up I’ve updated logrotate.conf(/etc/logrotate.conf) with below settings. file to edit: /etc/logrotate.conf {% gist 5d2a8a1bf8cb0f619b45a39785dee395 %} Then updated syslog rotate config to test on how messages files can be archived. Make sure the destination path is created. In this case I’ve got /opt/logs/ referenced. file edited /opt/logrotate.d/syslog {% gist bacb68f7f66e346d1d80f2a934c00856 %} This will ensure the last rotated log file would be copied to /opt/logs/. You can have any other scripts configured to upload to blob from here. Once these settings are in place test run(force run) logrotate -f /etc/logrotate.conf. Result of the operation can be found below

  • logrotate
  • tar
  • Azure
  • Blob
Tuesday, May 8, 2018 | 2 minutes Read
Navigation
  • About
  • Skills
  • Experiences
  • Education
Contact me:
  • ajomathiu@gmail.com
  • ajomathew
  • Ajo Mathew

Toha Theme Logo Toha
© 2026 Ajo Mathew.
Powered by Hugo Logo