Skip to content

Feature: ZeroTrustAssessment Bash Wrapper Script#1168

Open
billmcilhargey wants to merge 1 commit into
microsoft:devfrom
billmcilhargey:dev-feat-cross-plat-wrapper
Open

Feature: ZeroTrustAssessment Bash Wrapper Script#1168
billmcilhargey wants to merge 1 commit into
microsoft:devfrom
billmcilhargey:dev-feat-cross-plat-wrapper

Conversation

@billmcilhargey
Copy link
Copy Markdown

Add ZeroTrustAssessment Bash wrapper for cross-platform execution

Cross-platform entry point for running ZeroTrustAssessment commands from source on Linux and macOS. Ensures PowerShell 7+ is installed and functional, resolves module dependencies, and executes the specified command.

Features:

Detects whether PowerShell (pwsh) is installed on the system.
Installs or upgrades PowerShell via apt-get, yum, Homebrew, or GitHub release tarball. Validates the configured version exists before attempting.
Verifies pwsh is on PATH and functional before handing off.
Dynamically queries the module for available commands and help text, so the wrapper stays in sync when exported functions change.
Validates the user's command against the module's exported functions.
Supports unattended install/upgrade via the AUTO_INSTALL_PWSH flag.
Delegates all module logic (dependency resolution, container detection, authentication, assessment) to the PowerShell module itself.

(new PR from old one pointing to dev rather than main branch)

Add ZeroTrustAssessment Bash wrapper for cross-platform execution

Cross-platform entry point for running ZeroTrustAssessment commands from source on Linux and macOS. Ensures PowerShell 7+ is installed and functional, resolves module dependencies, and executes the specified command.

Features:

Detects whether PowerShell (pwsh) is installed on the system.
Installs or upgrades PowerShell via apt-get, yum, Homebrew, or GitHub release tarball. Validates the configured version exists before attempting.
Verifies pwsh is on PATH and functional before handing off.
Dynamically queries the module for available commands and help text, so the wrapper stays in sync when exported functions change.
Validates the user's command against the module's exported functions.
Supports unattended install/upgrade via the AUTO_INSTALL_PWSH flag.
Delegates all module logic (dependency resolution, container detection, authentication, assessment) to the PowerShell module itself.
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.

1 participant