Unable to get the list of patches while running Invoke-AzVMPatchAssessment
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.
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
@hilaryw29, could you please work with Maulik to debug this issue?
This seems to be an issue with PowerShell, as the API is returning the Patch information. I'll escalate this to the PS team.
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!
Hello Team, the issues still exists in my side. Is there any progress for this bug?