Skip to content
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

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

Open
ahmadabdalla opened this issue Aug 14, 2023 · 1 comment
Assignees
Labels
[cat] azure devops category: Azure DevOps [cat] github category: GitHub [cat] pipelines category: pipelines enhancement New feature or request

Comments

@ahmadabdalla
Copy link
Contributor

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

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

  • 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

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

@ahmadabdalla ahmadabdalla added enhancement New feature or request [cat] pipelines category: pipelines [cat] github category: GitHub [cat] azure devops category: Azure DevOps labels Aug 14, 2023
@AlexanderSehr
Copy link
Contributor

Hey @ahmadabdalla good idea. I'd suggest to follow your proposal with a switch as opposed to the set of strings as also a 'validate only' would fail in an isolated environment.
However - the ensure users know what they're getting into, we should add some documentation of what is expected on the agents. For example, xzy powershell modules, Bicep, PowerShell Core 7.3.0 or newer, etc.

@ahmadabdalla ahmadabdalla self-assigned this Aug 16, 2023
@AlexanderSehr AlexanderSehr added this to the Azure Verfified Modules (AVM) - CI Issues milestone May 19, 2024
@AlexanderSehr AlexanderSehr removed this from the Azure Verfified Modules (AVM) - CI Issues milestone Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[cat] azure devops category: Azure DevOps [cat] github category: GitHub [cat] pipelines category: pipelines enhancement New feature or request
Projects
Status: Needs triage
Development

No branches or pull requests

2 participants