Add interactive hydration TUI#29
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Introduces a zero-argument interactive TUI as the new default entry point for Invoke-IntuneHydration, wiring its selections into the existing execution engine via a centralized settings factory, tenantless interactive auth with tenant ID discovery from the access token, and import-scoped Graph permissions.
Changes:
- Adds a TUI workflow (32 new
Private/Tui/helpers) and orchestrator routing forInteractiveTuiparameter set, including review/confirmation screens. - Implements tenantless interactive browser auth (
organizations+ JWTtidextraction), scope-by-import resolution, and per-workload platform filtering propagated into pre-flight probes and app protection / OpenIntuneBaseline routing. - Refreshes docs, generated PlatyPS help, changelog, module manifest (1.0.0), wrapper parameter parity, and VHS demo media.
Reviewed changes
Copilot reviewed 73 out of 76 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
Public/Orchestration/Invoke-IntuneHydration.ps1 |
Adds InteractiveTui default set, TUI host check, review prompt, scope/tenant wiring |
Public/Authentication/Connect-IntuneHydration.ps1 |
Optional TenantId, Scopes/ForceConsent params, tenantless interactive auth |
Public/Authentication/Test-IntunePrerequisites.ps1 |
Adds AppProtectionPlatforms, BaselinePlatforms, RequiredScopes |
Public/Baselines/Import-IntuneBaseline.ps1 |
Filters BYOD app protection templates and cache endpoints by platform |
Public/Imports/Import-IntuneAppProtectionPolicy.ps1 |
Uses centralized Get-AppProtectionEndpointInfo per platform |
Private/Configuration/New-HydrationExecutionSetting.ps1 |
New centralized execution settings factory |
Private/Configuration/Resolve-HydrationExecutionSettings.ps1 |
TUI branch + delegation to factory; .Contains for force |
Private/Configuration/Write-HydrationExecutionSettingsSummary.ps1 |
Uses Get-HydrationTenantDisplay |
Private/Auth/* (new + modified) |
OAuth authorize URI helper, JWT tenant extraction, scope/probe additions, browser flow returns tenant |
Private/Imports/Get-AppProtectionEndpointInfo.ps1 |
New centralized app protection endpoint metadata |
Private/Hydration/Get-HydrationTenantDisplay.ps1 |
New tenant display helper |
Private/Tui/* (30+ new files) |
TUI palette, gradient, header, panels, prompts, selection conversion, workflow |
Invoke-IntuneHydration.ps1 (wrapper) |
Default InteractiveTui + adds StaticGroups, MobileApps, CISBaselines, Platform |
IntuneHydrationKit.psd1, CHANGELOG.md, README.md, docs/platyps/*.md |
1.0.0 release notes, TUI docs |
vhs/intune-hydration-tui.tape, vhs/README.md |
New VHS demo source and rendering instructions |
.vscode/tasks.json |
macOS PATH override for pwsh tasks |
Tests/** |
New TUI/tmux tests + expanded coverage for scopes, prerequisites, browser auth, baseline filtering, app protection |
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.
Summary
Validation
IHK_RUN_TMUX_TESTS=1: 2 passedgit diff --check: passedvhs validate vhs/intune-hydration-tui.tape: passedvhs -q vhs/intune-hydration-tui.tape: passed and regeneratedmedia/demo.gif