-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Compute] Bug fix in Invoke-AzVMPatchAssessment #25714
base: main
Are you sure you want to change the base?
Conversation
️✔️Az.Accounts
❌Az.Compute
️✔️Az.KeyVault
️✔️Az.ManagedServiceIdentity
️✔️Az.Monitor
️✔️Az.Network
️✔️Az.OperationalInsights
️✔️Az.PrivateDns
️✔️Az.RecoveryServices
️✔️Az.Security
️✔️Az.Sql
️✔️Az.Ssh
️✔️Az.Storage
|
@@ -29,7 +29,7 @@ public class PSVirtualMachinePatchAssessmentResult | |||
public int? CriticalAndSecurityPatchCount { get; set; } | |||
public int? OtherPatchCount { get; set; } | |||
public DateTime? StartDateTime { get; set; } | |||
public IList<VirtualMachineSoftwarePatchProperties> Patches { get; set; } | |||
public IList<VirtualMachineSoftwarePatchProperties> AvailablePatches { get; private set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the issue was that the PS object made up a nonexistent Patches property instead of the AvailablePatches property which actually exists on the VirtualMachineAssessPatchesResult.cs object?
@@ -29,7 +29,7 @@ public class PSVirtualMachinePatchAssessmentResult | |||
public int? CriticalAndSecurityPatchCount { get; set; } | |||
public int? OtherPatchCount { get; set; } | |||
public DateTime? StartDateTime { get; set; } | |||
public IList<VirtualMachineSoftwarePatchProperties> Patches { get; set; } | |||
public IList<VirtualMachineSoftwarePatchProperties> AvailablePatches { get; private set; } | |||
public ApiError Error { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please write a test for this as the initial functionality seems to have never been tested as this issue would have been caught back then.
@@ -29,7 +29,7 @@ public class PSVirtualMachinePatchAssessmentResult | |||
public int? CriticalAndSecurityPatchCount { get; set; } | |||
public int? OtherPatchCount { get; set; } | |||
public DateTime? StartDateTime { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to add a breaking change suppression to this file:
tools/StaticAnalysis/Exceptions/Az.Compute/BreakingChangeIssues.csv
and add a description to this PR describing why you need to do this and it is not really a breaking change.
This PR was labeled "needs-revision" because it has unresolved review comments or CI failures. |
Description
resolves #25123
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.md
and reviewed the following information:ChangeLog.md
file(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
.## Upcoming Release
header in the past tense.ChangeLog.md
if no new release is required, such as fixing test case only.