Repository navigation
Fix flag handling bugs and load background jobs from the running module - #409
Merged
Claudio Merola (Claudio-Merola) merged 5 commits intoOct 7, 2026
Merged
Conversation
… -Help, drop AzureGermanCloud
…de batching Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claudio Merola (Claudio-Merola)
approved these changes
Oct 7, 2026
Claudio Merola (Claudio-Merola)
left a comment
Collaborator
There was a problem hiding this comment.
LGTM
Claudio Merola (Claudio-Merola)
merged commit Oct 7, 2026
b6e74d5
into
microsoft:main
1 check passed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Small bug fixes in flag handling and job setup. Each fix is its own commit.
Fixes
-IncludeTagsnever turned on small-batch mode.Invoke-ARIstores it as a plain[bool]($InTag), butStart-ARIProcessJobandStart-ARIAutProcessJobchecked$InTag.IsPresent, which is always$nullon a bool. They now useif ($Heavy -or $InTag).exitclosed the user's PowerShell session.Invoke-ARI,Invoke-AzureRAMPInventory,Get-ARIManagementGroupsandStart-ARIGraphExtractioncalledexiton bad input or a failed managed-identity login. They nowthrowwith the same message.-Debug.$Debugis not a variable, so$Debug.IsPresentwas always false. Replaced with$PSBoundParameters.ContainsKey('Debug').-Helpshowed outdated text (for example a-Onlineparameter that no longer exists). It now callsGet-Help Invoke-ARI -Full, which uses the existing comment-based help.AzureGermanCloudis retired (closed October 2021). Removed it from the-AzureEnvironmentoptions.Invoke-ARISecurityCenterJobdidn't declare$SecurityCenter. It read the caller's variable through dynamic scoping. It's now a declared parameter. No change in behaviour.Start-ARIExtraJobsimported the module by name in each job, so when ARI was loaded from a clone or a local path, the advisory, policy, security, subscription and diagram jobs still ran the gallery version. The jobs now import from the running module'sModuleBase.Testing
Invoke-ARI -Helpreturns without ending the session.-IncludeTags -Debug -SkipDiagram. Output showed "Heavy Mode or InTag Mode Detected", jobs ran in batches of 5, and the report built (247 resources, 180 advisories).🤖 Generated with Claude Code
Microsoft Reviewers: Open in CodeFlow