azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Unable to get the list of patches while running Invoke-AzVMPatchAssessment

Open subhendu-de opened this issue 1 year ago • 4 comments

Description

I'm using Invoke-AzVMPatchAssessment to retrieve the list of pending patches in an Azure VM. As per the documentation, it returns PSVirtualMachinePatchAssessmentResult containing a Patches property.

However running the Invoke-AzVMPatchAssessment returns empty/null Patches property while CriticalAndSecurityPatchCount is more than 1.

image

Shouldn't it return a list of pending patches in the Patches property?

Script or Debug output

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.4.2
PSEdition                      Core
GitCommitId                    7.4.2
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

Version              Name                                Repository           Description
-------              ----                                ----------           -----------
12.0.0               Az                                  PSGallery            Microsoft Azure PowerShell - Cmdlets to manage resources in Azure. This module is c…

Error output

No response

subhendu-de avatar Jun 08 '24 13:06 subhendu-de

@hilaryw29, could you please work with Maulik to debug this issue?

Drewm3 avatar Jun 20 '24 15:06 Drewm3

This seems to be an issue with PowerShell, as the API is returning the Patch information. I'll escalate this to the PS team.

maulikshah23 avatar Jul 24 '24 02:07 maulikshah23

Hi @haagha, just checking on the pull request linked #25714 . Do you know if there's any updates? Or if this issue is already resolved? Thanks!

hilaryw29 avatar Oct 24 '24 20:10 hilaryw29

Hello Team, the issues still exists in my side. Is there any progress for this bug?

Image

MohSayed1 avatar Apr 19 '25 15:04 MohSayed1