Skip to content

Conversation

Samhitha-Microsoft
Copy link
Contributor

@Samhitha-Microsoft Samhitha-Microsoft commented Sep 24, 2025

Description

Modified the Cluster Registration to use Managed Service Identity instead of AAD App based registration. Modified the UnRegistration flow as well to retain the ARC machines even when the UnRegistration is triggered.

image image

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

Copy link

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

@isra-fel
Copy link
Member

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@isra-fel
Copy link
Member

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@isra-fel
Copy link
Member

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@isra-fel
Copy link
Member

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@isra-fel
Copy link
Member

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@Samhitha-Microsoft Samhitha-Microsoft marked this pull request as ready for review September 26, 2025 07:55
@Copilot Copilot AI review requested due to automatic review settings September 26, 2025 07:55
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 modifies the Azure Stack HCI cluster registration process to use Managed Service Identity (MSI) instead of Azure Active Directory (AAD) App based registration for new OS versions. The changes also modify the unregistration flow to preserve Arc machines when unregistration is triggered.

Key changes include:

  • Implementation of MSI-based authentication flow for Arc-enabled clusters
  • Detection logic to determine MSI support capability on cluster nodes
  • Preservation of Arc agents during unregistration in MSI flow
  • Updated API versions and added configuration for stable Arc agent versions

Reviewed Changes

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

File Description
src/StackHCI/StackHCI/ChangeLog.md Added changelog entry documenting the MSI registration change
src/StackHCI/StackHCI.Autorest/custom/stackhci.ps1 Major implementation of MSI flow including new functions, API version updates, and flow control logic

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@isra-fel
Copy link
Member

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@VeryEarly VeryEarly self-assigned this Sep 28, 2025
@VeryEarly VeryEarly merged commit 94589ab into Azure:main Sep 28, 2025
12 checks passed
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