Skip to content

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

@Eagle-Admin

Description

@Eagle-Admin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions