The Wayback Machine - https://web.archive.org/web/20240930233744/https://www.geeksforgeeks.org/microsoft-azure-patch-management-update-summary-status/
Open In App

Microsoft Azure – Patch Management Update Summary Status

Last Updated : 31 Mar, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Here in this article, we will be implementing the Log Analytics Log Queries to find the count of resources by Update Management Run Name and also to get details of critical updates missing count and security updates missing count with resource name and update run name. Let’s dive in to start implementation using KQL Log Queries.

Implementation:

Step 1: Log in to Azure Portal.

Step 2: Refer to the Workbook Creation from this article.

Step 3: Paste the below KQL Log Queries to find the log details of the Azure Patch Management Update Summary.

KQL Query 1: Use this Log Analytics Log Query to get the count of Patch Deployments by Patch Deployment Schedule Name

  • For Time Generated update according to your requirement in the below query. Here we have given the Last 4 Days
UpdateSummary
| where TimeGenerated > ago(4d)
| join kind=inner(UpdateRunProgress| where TimeGenerated > ago(4d) | project Computer, UpdateRunName) on Computer
| join kind=innerunique (Heartbeat | distinct Computer) on Computer

| summarize count() by UpdateRunName

This query returns the total count of resources by Update Run Name (i.e. Patch Deployment Schedule Name)

Output:

KQL Query 2: Use this Log Analytics Log Query to get the Patch Deployment Status 

  • For Time Generated update according to your requirement in the below query. Here we have given the Last 4 Days
UpdateSummary
| where TimeGenerated > ago(4d)
| join kind=inner(UpdateRunProgress| where TimeGenerated > ago(4d) | project Computer, UpdateRunName) on Computer
| join kind=innerunique (Heartbeat | distinct Computer) on Computer
| project Resource, UpdateRunName, CriticalUpdatesMissing, SecurityUpdatesMissing

This query returns the patch resource name (i.e. VM Name), Update Run Name (i.e. Patch Deployment Schedule Name), count of critical updates which are missing for a resource, and count of security updates that are missing for a resource.

Output:

That’s it!


Previous Article
Next Article

Similar Reads

Microsoft Azure - VMs Patch Update Summary by Installation Status
Here we will be using the KQL Query to find the Status of Patch Updates by Installation Status. Use Azure Log Analytics Workspace or Azure Workbook to run the queries in this article. KQL Query 1: Use the below log analytics log query to get the details of resources where Installation Status is Succeeded. UpdateRunProgress | summarize arg_max(TimeG
2 min read
Microsoft Azure - Check Status of Azure VM using Azure PowerShell
The following Azure PowerShell command helps you to find the Azure VM Config and properties details of Os Name, Os Version, Hyper V Generation, Disks properties, Extensions properties of Type Handler Version, Status and Message, VM Agents properties of Type Handler Version, Status and Message and also VM Power Status Codes, Messages, Plugins, Time
3 min read
Microsoft Azure - Get Azure VM Properties using Azure PowerShell
The purpose of using the Azure PowerShell Commands is to quickly analyze the overall properties of VM/VMs at once the filtering the with select and where conditions. To find the properties of an Azure VM, you can perform the following commands in Azure Cloud Shell to get the details. Command: Get-AzVM Output: 1. Get all properties of an Azure Virtu
2 min read
Microsoft Azure - RDP to Azure Virtual Machines using Azure Bastion
In this article, we will learn how to do RDP(Remote Desktop Protocol) / SSH(Secure Shell) Connection to an Azure VM using Azure Bastion. First, let's discuss Azure Bastion. The Azure Bastion service is a fully platform-managed PaaS service that you provision inside your virtual network. It provides secure and seamless RDP/SSH connectivity to your v
3 min read
Microsoft Azure - Configure Azure SQL with Azure CLI
In this article, we're going to take a closer look at how you can configure something like connectivity using the Azure CLI. What we have here is we are in Azure Data Studio and similar to the SQL notebook we are actually using a PowerShell notebook. That just means all our code cells are going to run PowerShell and we are just connecting to localh
4 min read
Microsoft Azure - Get CPU Utilization Data of a Azure VM in Azure Portal
Azure Virtual Machines (VM) is one of several types of on-demand, scalable computing resources that Azure offers. In this article, we will look into the process of getting the CPU Utilization data of an Azure VM in Azure Portal. Implementation: Follow the steps to get the CPU Utilization of an Azure VM in Azure Portal: Step 1: Log in to your Azure
2 min read
Microsoft Azure - Archive Azure VM to Azure Storage Account
In this article, we will be implementing a solution to archive a select azure VM snapshot to a select storage account for archiving using azure cloud shell. For implementation, we will be using Azure CLI commands. Prerequisite:VM SnapshotA storage account is neededUser needs "Storage Blob Contributor Data" IAM Role Access on Archiving Storage Accou
2 min read
Microsoft Azure - Azure VM Disk Space in Percentage using Azure KQL
Here we'll be using the Azure Insights Metric Query to find the free disk space in percentage using KQL. The purpose of this query is to find disk drive free space of all the Azure VMs without logging into every server. You can Run the following KQL log Queries in Azure Monitor or Azure VM Logs or Log Analytics Workspace. Note: VM Insights Agent sh
1 min read
Microsoft Azure - Enable Azure Monitor VM Insights Agent For Azure VM
Azure Monitor VM Insights Agent enables you to get more visibility into the health and performance of your Azure VM. Here we'll see how we can enable Azure Monitor VM Insights to monitor the health, performance, and dependencies of azure virtual machines. Implementation: Follow the below steps to enable Azure Monitor VM insights agents for an Azure
2 min read
Microsoft Azure - Azure CLI Commands to Manage Azure VMs
Azure Command-line interface is used to manage or to create Azure resources. By using the simple AZ CLI command we can manage Azure VM quickly and at a Scale. Let's get started by using a few important Azure CLI commands to manage Azure Virtual Machines. 1. Start a Specific Stopped VM in a Select Resource Group Use the below command to start a spec
2 min read
Microsoft Azure - Manage Azure VMs using Azure PowerShell Commands
Here we are using Azure PS Commands to manage azure resources from Azure Cloud Shell or by using Windows PowerShell. By using the simple AZ PS command we can manage Azure VM Quicks without any efforts of navigating in Azure Portal and at Scale. Let's get started by using the major Azure PS commands to manage Azure Virtual Machine. 1. Start a Specif
2 min read
Microsoft Azure - Query Azure Storage Logs in Azure Monitor Log Analytics
Pre-requisite:- Azure Log Analytics is a tool offered by Azure, which is used to edit and run log queries against data in the Azure Monitor Logs store and helps interactively analyze their results. One can easily use Log Analytics queries to retrieve records that match particular criteria, identify trends, analyze patterns, and provide various insi
5 min read
Microsoft Azure - Install Azure Command Line Interface (Azure CLI)
Azure CLI is a very powerful tool that can be used to automate tasks, create, update, manage or delete azure resources or to troubleshoot problems with az module cmdlets. By installing az modules on your system or on your development system you and your development team can easily create, update or manage Azure AD and Azure resources such as manage
4 min read
Microsoft Azure - Automating Azure Blobs Lifecycle Management
In this article, we will learn how to automatically manage Azure Blobs lifecycles. Azure Blob Storage offers different access tiers to reduce storage costs. A Blob in the hot tier costs the most and can be accessed very fast, while a Blob in the archive tier is cheaper and is slower. Let's use Lifecycle Management to automatically move Blobs betwee
2 min read
Microsoft Azure - Management Interfaces for Azure SQL
In this article, we will look into the management interfaces for Azure SQL. There are different ways to interact with Azure SQL. One of those ways is the Azure portal, and the below image shows the Azure SQL unified experience where Azure tried to ease the process of decision-making for users(ie, what to use when) into the portal itself. Azure make
2 min read
Microsoft Azure - Identifying & Accessing Management for Azure SQL
In this article, we will look into the second aspect of secure the Azure SQL as identity and access management. In your data center where you've got a certain policy setup or access controls to operating system methods, there has to be a way to give people permission to do various things in the Azure ecosystem. It is called the Azure Role-Based Acc
5 min read
Microsoft Azure - Using Cost Management in Azure Portal
In this article we will learn how to use cost management to understand your spending in the cloud, so you can do more with less. Cost management is available from any subscription or resource group within the portal. Since starting on the Azure home, the first thing that you want to do is click on the scope pill so that you can verify that you are
2 min read
Microsoft Azure - Manage Azure AD Privileged Identity Management
Azure AD PIM stands for Azure Active Directory Privileged Identity Management (PIM). With Privileged Identity Management (PIM), the azure admin or user can manage, control, and monitor access to Azure Resources within the organization. Use Privileged Identity Management (PIM) to manage the lifecycle of role assignments of the users or groups and en
2 min read
Microsoft Azure- Backing Up, Restoring, and Cloning Microsoft Azure App Services
Microsoft is well known for developing relevant software which are using in today's time of technology to conquer the demand of users and developers to build up applications. In sequence of it Microsoft introduces Azure well known as Microsoft Azure to make quality applications. In this article, we will discuss Backing up, restoring and cloning Mic
8 min read
Microsoft Azure -Create a User in Microsoft Entra ID from Azure Portal
A user in Microsoft Entra ID is an individual who can get access to Azure identity. This Microsoft Entra ID identity can be used to access applications and resources that are protected within the organization or project. Users can be created manually or automatically, and they can be assigned to groups and roles to control their access permissions.
3 min read
Microsoft Azure- Disk Storage in Microsoft Azure
Azure Disk Storage is the only shared cloud block storage that supports both Windows and Linux-based clustered or high-availability applications via Azure shared disks. There are two types of Disks in Azure : Managed Disks Unmanaged Disks.Managed DisksSimplest optionLower management overhead as Azure manages the storage accounts.Only LRS replicatio
6 min read
Role of Vulnerability, Patch and Configuration Management in Cloud Security
Pre-requisite:- Cloud Computing and Cloud Based Services The ability of malware or cracker to remotely find and change the vulnerabilities of infrastructure components is a major threat to cloud services. In public platform as a service and public infrastructure as a delivery model the vulnerability and configuration management are at greater risk
3 min read
Microsoft Azure - Update Resource Group Tags using PowerShell Script
Pre-requisite: Azure, Microsoft Azure: Resource Tagging and Best Practices Here In this article, we will show you how to update tags on existing resource groups using Azure PowerShell script. For this operation will be using Azure Cloud Shell to perform this action. Most importantly to update azure resource group tags one should have an Owner or Co
2 min read
Microsoft Azure - Azure Managed Disk State Details using PowerShell
In this article, we will try to understand how we can fetch the VM Disk State by using the Azure PowerShell Commands. With the help of the Azure PowerShell Commands, we will be finding the Managed Disk State of Unattached, Attached, and Reserved of all the Azure VM Disks within Subscription. Implementation: Follow the below steps to get azure manag
1 min read
Microsoft Azure - Introduction to Azure Digital Twins
In this article, we will learn how to get started with Azure Digital Twins. With Azure Digital Twins, you can model your real-world environment, including buildings, IoT sensors, and people to keep track of it, monitor it, and design it. Let's see how that works. First, we need to create an Azure Digital Twins service in Azure. Let's search for Dig
3 min read
Microsoft Azure - Enable Linux System Logs in Azure for Monitoring
Log Analytics is an Azure service that collects and stores information/data from a set of different sources and we can use Log Analytics queries to retrieve records that match particular criteria, identify trends, analyze patterns, and provide a variety of insights into our data. Enable and Collect Linux Syslog from Log Analytics agents at custom i
1 min read
Microsoft Azure - Enable Linux Performance Counters in Azure for Monitoring
Log Analytics is an Azure service that collects and stores information/data from a set of different sources and we can use Log Analytics queries to retrieve records that match particular criteria, identify trends, analyze patterns, and provide a variety of insights into our data. Collect Linux performance counters from Log Analytics agents at custo
1 min read
Microsoft Azure - Introduction to Azure Sentinel
Azure Sentinel is a cloud-native security information and event management (SIEM) solution offered by Microsoft Azure. It provides intelligent security analytics and threat intelligence across the enterprise, helping organizations detect, investigate, and respond to security threats quickly and effectively. Here are some key features and benefits o
4 min read
Microsoft Azure - Deploy a new VM to Azure using ARM
Pre-requisites: Azure Azure Resource Manager is referred to as ARM. It is an Azure management platform that offers a centralized method for deploying, managing, and monitoring resources in Azure. ARM enables enterprises to improve resource organization and control, deliver applications consistently and predictably, and manage resources more quickly
6 min read
Microsoft Azure - Checking your Access on Azure Subscription
In this article, you will see the process of how to view your azure role assignment on azure subscriptions and also on selecting azure subscriptions at resource group level or on resource level. Implementation: Follow the steps below to view your access on Azure subscriptions: Step 1: Log in to Azure Portal. Step 2: After logging in to your Microso
2 min read