Skip to content

management: Remove legacy DRS options - #419

Closed
gungazoo wants to merge 2 commits into
mainfrom
panderson/remove-old-drs-options
Closed

gungazoo wants to merge 2 commits into
mainfrom
panderson/remove-old-drs-options

Conversation

@gungazoo

@gungazoo gungazoo commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • stop setting TryBalanceVmsPerHost in Set-CustomDRS
  • stop setting IsClusterManaged in Set-CustomDRS
  • preserve the existing DRS automation level and vMotion rate behavior

Why

These legacy DRS options should no longer be applied when updating cluster DRS configuration.

Validation

  • tests/prevalidateModules.ps1 Microsoft.AVS.Management
    • PSScriptAnalyzer: 0 errors
    • Pester: 48 passed, 8 existing mock-related failures, 1 skipped
  • git diff --check origin/main...HEAD

Peter Anderson and others added 2 commits September 14, 2026 13:21
No functional changes. Triggering a fresh validation run after rerun request did not start a new build.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The remaining Option allocation may cause invalid DRS configuration requests.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Removes legacy DRS option assignments while preserving existing DRS and vMotion behavior.

Changes:

  • Stops setting TryBalanceVmsPerHost and IsClusterManaged.
  • Retains existing DRS automation and vMotion rate configuration.
File summaries
File Summary
Microsoft.AVS.Management/Microsoft.AVS.Management.psm1 Updates Set-CustomDRS; unresolved moderate issue: Option remains an array of null values and should be omitted or set to $null.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@@ -718,12 +718,6 @@ function Set-CustomDRS {
$spec.DrsConfig.VmotionRate = $drsChange
$spec.DrsConfig.Enabled = $true
$spec.DrsConfig.Option = New-Object VMware.Vim.OptionValue[] (2)
@Kavyareddyguntaka11

Copy link
Copy Markdown
Contributor

Closing this PR because the legacy DRS cleanup, including removal of the unused Option array allocation, has been incorporated into #422.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants