Skip to content

Expose download uri in Find-Module output as additional property #73

Open
@bgelens

Description

@bgelens

When I need to publish a Module to Azure Automation for example, I need to give Azure Automation the url of the download. In the portal this is abstracted away but when you want to handle that via the api directly or via AZ PowerShell, you need to do additional steps next to Find-Module to get the url that you can use.

$moduleInfo = Invoke-RestMethod -Uri "https://www.powershellgallery.com/api/v2/Packages?`$filter=Id eq 'ComputerManagementDsc' and Version eq '6.1.0.0'"
$moduleInfo.content.src

It would be very useful if the download uri was part of the PSRepositoryItemInfo object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions