Skip to content

Conversation

@Samhitha-Microsoft
Copy link
Contributor

Description

In the current registration flow, if the nodes are disconnected from Arc, during repair registration, the nodes will be arc enabled again. But, in case of cloud deployment Arc enablement should not be done even if the machine is disconnected form Arc.

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 AI review requested due to automatic review settings January 19, 2026 11:25
@azure-client-tools-bot-prd
Copy link

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

Copy link
Contributor

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 modifies the Azure Stack HCI registration flow to prevent automatic Arc enablement of cluster nodes during repair registration when the cluster was deployed through cloud deployment. The change ensures that for cloud-deployed clusters, Arc enablement is handled by the cloud deployment process rather than being triggered manually during repair operations.

Changes:

  • Updated MSI flow logic to detect cloud deployments and skip manual Arc enablement in such cases
  • Added appropriate logging for the new cloud deployment skip path
  • Updated ChangeLog to document the behavior change

Reviewed changes

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

File Description
src/StackHCI/StackHCI/ChangeLog.md Documents the new behavior where Arc enablement is skipped for cloud-deployed clusters during repair registration
src/StackHCI/StackHCI.Autorest/custom/stackhci.ps1 Adds cloud deployment detection in Invoke-MSIFlow to conditionally skip Arc enablement, wrapping the existing enablement logic in an else block for non-cloud deployments

@isra-fel
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

-->
## Upcoming Release
* Improved cloud deployment detection during Azure Arc repair operations to prevent duplicate enablement attempts and ensure smoother deployment experiences.
* If cluster is registered through cloud deployment, arc enablement of nodes will no longer be triggered during repair registration.
Copy link
Contributor

Choose a reason for hiding this comment

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

This change log message is not user friendly. It describes the implementation details instead of a note or update shared with the user.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @vidai-msft
"Cloud deployment" is infact a customer facing nomenclature : https://learn.microsoft.com/en-us/azure/azure-local/deploy/deployment-introduction?view=azloc-2512

Please help clarify which aspects of this line is not customer friendly

Copy link
Contributor

Choose a reason for hiding this comment

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

@bniranjanbhat this message is more like an implementation detail instead of what will bring to the user. I am not saying you should not use the term "cloud deployment". A typical release note should be like improved performance of cloud deployment or fixed bug of cloud deployment or etc. You can refer to the notes in this module or other modules in the ChangeLog.md files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vidai-msft Fixed issue where Arc enablement was incorrectly triggered during repair registration for cloud deployments
Is this fine?

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