Skip to content

Install-PSResource failing for Az Module #1943

@SQLCanuck

Description

@SQLCanuck

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

In both an Alpine and Debian-Slim container with PowerShell 7.4.13, I am getting the following error. In all tests it fails on the Az.ContainerRegistry component. Note if I instead switch to using Install-Module -Name Az it works.

Command used for install:

Install-PSResource -Name Az -Repository PSGallery -Scope AllUsers

Expected behavior

Az module should install successfully.

Actual behavior

Fails to install.  Failure occurs on the Az.ContainerRegistry item.

Error details

Install-PSResource: 'Response status code does not indicate success: 500 (Internal Server Error).' Request sent: 'https://www.powershellgallery.com/api/v2/FindPackagesById()?$filter=NormalizedVersion+ge+%275.0.1%27+and+NormalizedVersion+le+%275.0.19%27+and+Id+eq+%27Az.ContainerRegistry%27&$inlinecount=allpages&$skip=0&$orderby=NormalizedVersion+desc&id=%27Az.ContainerRegistry%27'

Environment data

ModuleType Version    PreRelease Name                                PSEdition ExportedCo
                                                                               mmands
---------- -------    ---------- ----                                --------- ----------
Binary     1.1.1                 Microsoft.PowerShell.PSResourceGet  Core,Desk {Compress…


PowerShell 7.4.13

Visuals

No response

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