Azure / Azure/ResourceModules

[Feature Request]: Improve stability of PSGallery installations

Open
#4,239 0 comments 0 reactions 1 assignee Claimed by @AlexanderSehr View on GitHub
enhancement
Dominant language
PowerShell
Stars
737
Forks
436
Avg merge
10d 7h
Merged PRs (30d)
1

Description

### Description

Recently, more and more pipelines fail because of PSGallery installations ([ref](https://github.com/Azure/ResourceModules/actions/runs/6841965758/job/18602958170#step:3:118)). We should hence invest (likely via a try-catch-retry) how we can improve the stability here.

```PowerShell
VERBOSE: Try installing:
VERBOSE: - 1. [Az.Accounts]
VERBOSE: - 2. [Az.Resources]
VERBOSE: - 3. [powershell-yaml]
VERBOSE: Found pre-installed modules in path [/usr/share/az_9.3.0]. Adding it PSModulePath environment variable.
VERBOSE: Install-CustomModule start
VERBOSE: =====================
VERBOSE: HANDLING MODULE [1/3] [Az.Accounts]
VERBOSE: =====================
Get-PackageSource: Unable to find repository 'PSGallery'. Use Get-PSRepository to see all
available repositories.
```

This improvement should also be ported to the AVM CI.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.