Azure / Azure/ResourceModules

[Feature Request]: Allow skipping the 'Agent Install' tasks when self-hosted agents are in use and have limited Internet connectivity

Open
#3,578 1 comment 1 reaction 1 assignee Claimed by @ahmadabdalla View on GitHub
[cat] azure devops [cat] github [cat] pipelines enhancement
Dominant language
PowerShell
Stars
737
Forks
436
Avg merge
10d 7h
Merged PRs (30d)
1

Description

### Description

## Problem space

Currently the CARML CI has a task in the pipeline templates that performs agent's configuration for pre-requisites (i.e. PowerShell Azure Modules), which requires the agent to have access to PS Gallery.

![image](https://github.com/Azure/ResourceModules/assets/28486158/c2ddce20-6d08-421f-988a-e7daed509f8d)

In isolated environments, it can be difficult to allow agents to have access to the PSGallery, and the pre-requisites can be fetched from a different source.

## Feature request

Allow skipping the tasks related to the agent setup as a switch in the `settings.yml`

Example:

![image](https://github.com/Azure/ResourceModules/assets/28486158/5a05b957-edad-471c-8981-9aa6d524a1e1)

- Create a switch called `installAgentPreRequisites` and set it to `true` as default.
- Create a condition on the tasks for agent install in all pipeline job templates to skip this stage `condition: eq(variables['installAgentPreRequisites'], true)`

![image](https://github.com/Azure/ResourceModules/assets/28486158/3a94ed79-fd39-4440-8781-253925b18980)

## Another option

We could also use this switch to have a value like `validateOnly`, `installOnly`, `none` to support a scenario where we'd want to validate that the pre-requisites are installed opposed to installing them

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.