Skip to content

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

@subhendu-de

Description

@subhendu-de

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions