Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecurityMazda CX-5 im Test: Familien-SUV mit guten Fahreigenschaften(21.09.2026 um 15:30 Uhr)
Unix & Linux ServerSecurity: Mehrere Probleme in pcre2 (SUSE)(21.09.2026 um 16:22 Uhr)
Unix & Linux ServerSecurity: Überschreiben von Dateien in abrt (Red Hat)(21.09.2026 um 16:22 Uhr)
Unix & Linux ServerSecurity: Zwei Probleme in libvirt (Red Hat)(21.09.2026 um 16:22 Uhr)
Windows Tipps & SecurityMazda CX-5 im Test: Familien-SUV mit guten Fahreigenschaften(21.09.2026 um 15:30 Uhr)
Unix & Linux ServerSecurity: Mehrere Probleme in pcre2 (SUSE)(21.09.2026 um 16:22 Uhr)
Unix & Linux ServerSecurity: Überschreiben von Dateien in abrt (Red Hat)(21.09.2026 um 16:22 Uhr)
Unix & Linux ServerSecurity: Zwei Probleme in libvirt (Red Hat)(21.09.2026 um 16:22 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

The Art of Iteration: Starting the Cycle

Greetings my fellow Technology Advocates and Specialists. This is the Chapter #1 of my Mastering Loops in Azure DevOps Series. In this Session, I will walk you through The Art of Iteration: Starting the Cycle. This is a quick start…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Greetings my fellow Technology Advocates and Specialists.



This is the Chapter #1 of my Mastering Loops in Azure DevOps Series.



In this Session, I will walk you through The Art of Iteration: Starting the Cycle.



This is a quick start guide to introduce the topic and how it is relevant to the real world.











CODE REPOSITORY:-















HOW DOES MY CODE PLACEHOLDER LOOKS LIKE:-:-
Image description
















MILLION DOLLAR QUESTION:-
Question: Can we use "Loop" in Azure Devops YAML Pipeline ?
Answer: YES






















HOW ?
Concise summary follows below:-

1.) We can use "Loop" in Azure Devops YAML Pipeline by using the "each" keyword.

2.) We can use the "each" keyword to loop through a) Parameters with the type as b) Object.

3.) Additionally, you can iterate through Nested elements within an Object.










EXAMPLE:-










PIPELINE CODE SNIPPET:-










AZURE DEVOPS YAML PIPELINE (azure-pipelines-Leverage-Loops-For-Automation-Initial-Test.yml):-





trigger:
none

######################
#DECLARE PARAMETERS:-
######################
parameters:
- name: RGNAME
displayName: Please Provide the Resource Group Name:-
type: object
default: [AMRG001,AMRG002,AMRG003]

######################
#DECLARE VARIABLES:-
######################
variables:
BuildAgent: windows-latest

#########################
# Declare Build Agents:-
#########################
pool:
vmImage: $(BuildAgent)

###################
# Declare Stages:-
###################
stages:
- ${{ each rg in parameters.RGNAME }}:
- stage: CREATE_${{ rg }}
jobs:
- job: CreateResourceGroup
steps:
- script: echo "Creating "${{ rg }}""















EXPLANATION:-


I.) Declare "Parameter" of type "Object". In this example, I have declared 3 values (Resource Group Names) as an array.




######################
#DECLARE PARAMETERS:-
######################
parameters:
- name: RGNAME
displayName: Please Provide the Resource Group Name:-
type: object
default: [AMRG001,AMRG002,AMRG003]






II.) Declare "Each" at beginning of the Pipeline stage. The "rg" variable stores all the values that the "each" keyword iterates over in the parameter of type object.




stages:
- ${{ each rg in parameters.RGNAME }}:






III.) As there are 3 values declared in "Parameter" of type "Object", there will be 3 STAGES CREATED.



IV.) Name of each stage will be one of iterated value from the array declared in "Parameter" of type "Object".




- stage: CREATE_${{ rg }}






V.) Finally, each stage displays the Value in the console.




steps:
- script: echo "Creating "${{ rg }}""















































OUTPUT OF EXAMPLE:-
1. As in the example, there were 3 values declared in "Parameter" of type "Object", hence 3 STAGES got created.
Image description
2. Name of each stage is the iterated value from the array declared in "Parameter" of type "Object".
Image description
3. Each stage displays the Value in the console.

STAGE #1: CREATE_AMRG001
Image description

STAGE #2: CREATE_AMRG002
Image description

STAGE #3: CREATE_AMRG003
Image description


Hope You Enjoyed the Session!!!



Stay Safe | Keep Learning | Spread Knowledge

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten The Art of Iteration: Starting the Cycle

Thematisch verwandte Begriffe: Iteration, Starting, Cycle · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94216 | A vulnerability was determined in ST Engineering iDirect Evolution and V…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick