Skip to content

Install-Module -Name Az is really slow #623

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

Closed
3 tasks done
luisnaranjo733 opened this issue Mar 31, 2022 · 4 comments
Closed
3 tasks done

Install-Module -Name Az is really slow #623

luisnaranjo733 opened this issue Mar 31, 2022 · 4 comments
Labels
Area-Install Resolution-Duplicate This issue or pull request already exists

Comments

@luisnaranjo733
Copy link

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

Install the latest version of Powershell 7

 $PSVersionTable.PSVersion

Major  Minor  Patch  PreReleaseLabel BuildLabel
-----  -----  -----  --------------- ----------
7      2      2

Attempt to install the Az Powershell module per the recommended method according to the documentation

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force

Expected behavior

Install-Module completes or at least posts progress updates

Actual behavior

Operation hangs indefinitely - never completes

See https://github.com/Azure/azure-powershell/issues/17210
for more details on the same exact issue

Error details

N/A

Environment data

PS C:\code> Get-Module PowerShellGet; $PSVersionTable

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.2.5                 PowerShellGet                       {Find-Command, Find-DscResource, Find-Module, Fin…

Key   : PSVersion
Value : 7.2.2
Name  : PSVersion


Key   : PSEdition
Value : Core
Name  : PSEdition


Key   : GitCommitId
Value : 7.2.2
Name  : GitCommitId


Key   : OS
Value : Microsoft Windows 10.0.22000
Name  : OS


Key   : Platform
Value : Win32NT
Name  : Platform


Key   : PSCompatibleVersions
Value : {1.0, 2.0, 3.0, 4.0…}
Name  : PSCompatibleVersions


Key   : PSRemotingProtocolVersion
Value : 2.3
Name  : PSRemotingProtocolVersion


Key   : SerializationVersion
Value : 1.1.0.1
Name  : SerializationVersion


Key   : WSManStackVersion
Value : 3.0
Name  : WSManStackVersion

Visuals

No response

@luisnaranjo733 luisnaranjo733 changed the title Install-Module -Name Az hangs indefinitely Install-Module -Name Az~~ hangs indefinitely~~ is really slow Mar 31, 2022
@luisnaranjo733 luisnaranjo733 changed the title Install-Module -Name Az~~ hangs indefinitely~~ is really slow Install-Module -Name Az is really slow Mar 31, 2022
@luisnaranjo733
Copy link
Author

Update: I renamed the title of this issue because the operation did finally complete. It took ~8-10 minutes and the powershell command didn't report any indication of progress starting until ~5 min after the process was started.

From the user's POV, it feels like the script is just hanging.

@SydneyhSmith
Copy link
Collaborator

@luisnaranjo733 appreciate the feedback and totally understand the frustration--- we are doing work in both this module and in PowerShell Gallery to improve this performance over time...right now we are tracking this work with a few issues including #69 #599 and #31 .., with Install-PSResource we have also implemented a progress bar to show the progress

@SydneyhSmith SydneyhSmith added Resolution-Duplicate This issue or pull request already exists Area-Install and removed Needs-Triage labels Mar 31, 2022
@ghost
Copy link

ghost commented Apr 1, 2022

This issue has been marked as duplicate and has not had any activity for 1 day. It will be closed for housekeeping purposes.

@HenryGelderbloem
Copy link

I am experiencing this issue today, it has been in a hung state for roughly 10 minutes so far.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Install Resolution-Duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants