You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, when the cloud deployment is done, the nodes would be ARC enabled prior. But, when repair registration is triggered, The ARc enablement is being triggered again which should not be happening. This was happening because the env variable that was used to determine the cloud deployment flow would be expired after the first scenario.
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️Target release is a different concept from API readiness. Please click below links for details.)
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request improves the detection mechanism for cloud deployment scenarios in Azure Stack HCI registration. Previously, the detection relied solely on an environment variable that expired after initial deployment, causing ARC enablement to be incorrectly triggered again during repair registration. The fix adds a persistent registry key check as a fallback detection method.
Changes:
Added registry-based detection for cloud deployment scenarios to supplement the existing environment variable check
Updated the ChangeLog to document the enhancement
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
Documents the new cloud deployment detection mechanism using registry key
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Previously, when the cloud deployment is done, the nodes would be ARC enabled prior. But, when repair registration is triggered, The ARc enablement is being triggered again which should not be happening. This was happening because the env variable that was used to determine the cloud deployment flow would be expired after the first scenario.
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.mdand reviewed the following information:ChangeLog.mdfile(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.## Upcoming Releaseheader in the past tense.ChangeLog.mdif no new release is required, such as fixing test case only.