Skip to content

[Az.ServiceFabric] Set-AzServiceFabricManagedNodeType: Add parameter -VmSize #28230

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

iliu816
Copy link
Member

@iliu816 iliu816 commented Jul 18, 2025

Description

Set-AzServiceFabricManagedNodeType: Add parameter -VmSize to allow for in-place sku swap

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

@Copilot Copilot AI review requested due to automatic review settings July 18, 2025 17:07
Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new -VmSize parameter to the Set-AzServiceFabricManagedNodeType cmdlet to enable in-place SKU changes for Service Fabric managed node types.

Key changes:

  • Added -VmSize parameter to allow updating the virtual machine size of existing node types
  • Implemented proper parameter validation and documentation
  • Added comprehensive test coverage for the new functionality

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
SetAzServiceFabricManagedNodeType.cs Added VmSize parameter and implementation logic to update node type VM size
Set-AzServiceFabricManagedNodeType.md Updated cmdlet documentation to include the new VmSize parameter
ChangeLog.md Added changelog entry documenting the new VmSize parameter
ServiceFabricManagedClustersTests.ps1 Added new test function to verify VmSize change functionality
ServiceFabricManagedClustersTests.cs Added test method to run the VmSize change test

@YanaXu
Copy link
Contributor

YanaXu commented Jul 21, 2025

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@@ -374,6 +392,22 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -VmSize
Copy link
Contributor

Choose a reason for hiding this comment

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

Please only keep this help md file and revert all other help files' change.

Copy link
Member Author

@iliu816 iliu816 Jul 21, 2025

Choose a reason for hiding this comment

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

Will do. Should I make a seperate PR to update the other help files?

Copy link
Contributor

Choose a reason for hiding this comment

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

Why to update other help files? I think you only update one cmdlet, right?

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.

2 participants