Skip to content

Conversation

iliu816
Copy link
Member

@iliu816 iliu816 commented Sep 5, 2025

Description

Because we are introducing a new Invoke-AzServiceFabricReimageManagedNodeType cmdlet, we want to deprecate the Reimage parameters from the Set-AzServiceFabricManagedNodeType cmdlet.

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

…rs from `Set-AzServiceFabricManagedNodeType`
@Copilot Copilot AI review requested due to automatic review settings September 5, 2025 19:04
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 deprecation warnings for Reimage-related parameters in the Set-AzServiceFabricManagedNodeType cmdlet in preparation for their removal. The parameters will be deprecated in favor of a new dedicated cmdlet Invoke-AzServiceFabricReimageManagedNodeType.

Key Changes

  • Added deprecation attributes to four Reimage-related parameters (NodeName, Reimage, ForceReimage, PassThru)
  • Reorganized using statements and moved AsJob parameter to a different section
  • Updated changelog to document the deprecation announcement

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
SetAzServiceFabricManagedNodeType.cs Added deprecation attributes for Reimage parameters and reorganized code structure
ChangeLog.md Added entry documenting the deprecation preannouncement
Comments suppressed due to low confidence (1)

src/ServiceFabric/ServiceFabric/Commands/ManagedClusters/NodeTypes/SetAzServiceFabricManagedNodeType.cs:1

  • There's a spelling error: 'preannoucement' should be 'preannouncement' (missing 'n').
// ----------------------------------------------------------------------------------

@isra-fel
Copy link
Member

isra-fel commented Sep 5, 2025

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@VeryEarly VeryEarly self-assigned this Sep 9, 2025
@isra-fel
Copy link
Member

isra-fel commented Sep 9, 2025

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@VeryEarly
Copy link
Collaborator

/azp run azure-powershell - security-tools

Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Collaborator

@VeryEarly VeryEarly left a comment

Choose a reason for hiding this comment

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

next Az version: 15.0.0
next Az.ServiceFabric version: 5.0.0

@iliu816
Copy link
Member Author

iliu816 commented Sep 10, 2025

next Az version: 15.0.0 next Az.ServiceFabric version: 5.0.0

Hi, should be changed now. Thanks

@isra-fel
Copy link
Member

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

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.

4 participants