Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-Win32App fails on VersionComparisonValue not matching REGEX string #26

Open
Eagle-Admin opened this issue Oct 31, 2024 · 1 comment

Comments

@Eagle-Admin
Copy link

Using the supplied 7-zip example App.json, running the pipeline fails at New-Win32App in publish_apps.

Creating .intunewin package file from source folder
Creating default requirement rule
Creating additional custom requirement rules
Creating detection rules
C:\IntuneAgent\_work\1\s\Scripts\New-Win32App.ps1 : Cannot validate argument on parameter 'VersionComparisonValue'. 
The argument "<replaced_by_pipeline>" does not match the "^(\d+(\.\d+){0,3})$" pattern. Supply an argument that 
matches "^(\d+(\.\d+){0,3})$" and try the command again.
At C:\IntuneAgent\_work\_temp\<random_guid>.ps1:4 char:1
+ . 'C:\IntuneAgent\_work\1\s\Scripts\New-Win32App.ps1' -TenantID <tenant ID> ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [New-Win32App.ps1], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,New-Win32App.ps1
 
##[error]PowerShell exited with code '1'.
Finishing: New-Win32App

I'm unsure if the error is on my part, or the supplied app.json.

@obuolinis
Copy link

Seems like the original App.json recipe wasn't properly processed in a previous stage by the script Prepare-AppPackageFolder.ps1. How exactly did you execute the Intune App Factory on your end?

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

No branches or pull requests

2 participants