Skip to content

-AllowPrerelease should be allowed with wildcards in the name #45

@maddieclayton

Description

@maddieclayton

I'm trying to find all modules in AzureRM that have preview modules, and what those versions are. I get this response:

Find-Module : The RequiredVersion, MinimumVersion, MaximumVersion, AllVersions or AllowPrerelease parameters are
allowed only when you specify a single name as the value of the Name parameter, without any wildcard characters.
At line:1 char:1
+ Find-Module -Name AzureRM.* -Repository PSGallery -AllowPrerelease |  ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Find-Module], ArgumentException
    + FullyQualifiedErrorId : VersionParametersAreAllowedOnlyWithSingleName,Find-Module

Not sure why this isn't supported... It doesn't seem like a scenario that should be excluded.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions