-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Description of Issue
Cx is experiencing an issue in PowerShell Universal where an environment named "PowerShell 7 with SSO" is being flagged as missing, despite it being correctly defined and functional. The PSU admin console displays an error stating:
"The executable for the environment PowerShell 7 with SSO does not exist on the path."
However, Cx confirmed that:
The environment is properly configured and present in Environments.ps1.
The secret variable assigned to the environment works within his app.
The default "PowerShell 7" environment does not exhibit the same issue.
The issue appears to be UI-related rather than affecting actual execution.
Create a new environment in PowerShell Universal with the following parameters:
$Parameters = @{
Name = "PowerShell 7 with SSO"
Path = "PowerShell 7"
DisableImplicitWinCompat = $true
Variables = @('PSUEntraIDSSOValue')
}
New-PSUEnvironment @parameters
Navigate to the Environments page in the PSU admin console.
Observe the "Missing Environment" error for PowerShell 7 with SSO.
Validate that the secret variable associated with the environment is accessible within an app.
Compare with the default "PowerShell 7" environment, which does not generate the same error.
Expected Behavior:
The "PowerShell 7 with SSO" environment should not be flagged as missing if it is properly configured and operational.
The PSU admin console should correctly reflect available environments without false errors.
Actual Behavior:
PSU incorrectly marks "PowerShell 7 with SSO" as missing despite it being defined and functional.
Secret variables defined in Environments.ps1 do not appear in the UI but are accessible in apps.
Version
5.x
Severity
Medium
Hosting Method
MSI (Windows Service)
Operating System
Windows
Database
SQLite
Licensed
Yes
Features
Git Sync
VS Code Extension
Additional Environment data
No response
Screenshots/Animations
No response