Skip to content

[AOE] Fixes long-time deallocated VMs remediation runbook skipping eligible VMs#1510

Merged
helderpinto merged 10 commits into
microsoft:devfrom
helderpinto:helderpinto/dev/aoe-fix1456
Apr 12, 2025
Merged

[AOE] Fixes long-time deallocated VMs remediation runbook skipping eligible VMs#1510
helderpinto merged 10 commits into
microsoft:devfrom
helderpinto:helderpinto/dev/aoe-fix1456

Conversation

@helderpinto

Copy link
Copy Markdown
Member

🛠️ Description

Fixed issue with Remediate-LongDeallocatedVMsFiltered runbook that was skipping the remediation of eligible VMs due to Az.Compute module breaking changes.

Along the way, improved disk SKU management in Remediate-UnattachedDisksFiltered runbook with logic similar to Remediate-LongDeallocatedVMsFiltered.

Fixes #1456

📋 Checklist

🔬 How did you test this change?

  • 🤏 Lint tests
  • 🤞 PS -WhatIf / az validate
  • 👍 Manually deployed + verified
  • 💪 Unit tests
  • 🙌 Integration tests

🙋‍♀️ Do any of the following that apply?

  • 🚨 This is a breaking change.
  • 🤏 The change is less than 20 lines of code.

📑 Did you update docs/changelog.md?

  • ✅ Updated changelog (required for dev PRs)
  • ➡️ Will add log in a future PR (feature branch PRs only)
  • ❎ Log not needed (small/internal change)

📖 Did you update documentation?

  • ✅ Public docs in docs (required for dev)
  • ✅ Internal dev docs in src (required for dev)
  • ➡️ Will add docs in a future PR (feature branch PRs only)
  • ❎ Docs not needed (small/internal change)

@microsoft-github-policy-service microsoft-github-policy-service Bot added the Needs: Review 👀 PR that is ready to be reviewed label Apr 11, 2025
@helderpinto helderpinto added Tool: Optimization Engine Azure Optimization Engine Micro PR 🔬 Very small PR that should be especially easy for newcomers labels Apr 11, 2025
@microsoft-github-policy-service microsoft-github-policy-service Bot removed the Micro PR 🔬 Very small PR that should be especially easy for newcomers label Apr 11, 2025

@flanakin flanakin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I'm not concerned about these suggestions. Feel free to take them or leave them.

helderpinto and others added 2 commits April 12, 2025 08:54
Co-authored-by: Michael Flanakin <flanakin@users.noreply.github.com>
Co-authored-by: Michael Flanakin <flanakin@users.noreply.github.com>
helderpinto and others added 4 commits April 12, 2025 08:55
Co-authored-by: Michael Flanakin <flanakin@users.noreply.github.com>
Co-authored-by: Michael Flanakin <flanakin@users.noreply.github.com>
Co-authored-by: Michael Flanakin <flanakin@users.noreply.github.com>
Co-authored-by: Michael Flanakin <flanakin@users.noreply.github.com>
@helderpinto helderpinto merged commit d15dc3c into microsoft:dev Apr 12, 2025
@helderpinto helderpinto deleted the helderpinto/dev/aoe-fix1456 branch April 12, 2025 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs: Review 👀 PR that is ready to be reviewed Tool: Optimization Engine Azure Optimization Engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AOE] Long-time deallocated VMs remediation runbook is skipping deallocated VMs

3 participants