From 29ec82aef7325d7fca4ddfabcae57e6fa45d8401 Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Tue, 24 Feb 2026 00:41:09 -0800 Subject: [PATCH 1/5] condense pipeline into a single job --- .azure-pipelines/command-metadata-refresh.yml | 24 +++++-------------- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.azure-pipelines/command-metadata-refresh.yml b/.azure-pipelines/command-metadata-refresh.yml index 205439a46a..273f5b68f4 100644 --- a/.azure-pipelines/command-metadata-refresh.yml +++ b/.azure-pipelines/command-metadata-refresh.yml @@ -62,8 +62,8 @@ extends: stages: - stage: stage jobs: - - job: CreateMetadataRefreshBranch - displayName: Create Metadata Refresh Branch + - job: MsGraphPsSdkModuleCommandMetadataGeneration + displayName: Microsoft Graph PowerShell SDK Generation timeoutInMinutes: 1200 steps: - template: .azure-pipelines/common-templates/checkout.yml@self @@ -76,28 +76,16 @@ extends: targetType: inline script: | $branch = "{0}/{1}" -f "$(Branch)", (Get-Date -Format yyyyMMddHHmm) - Write-Host "##vso[task.setvariable variable=RefreshBranch;isOutput=true]$branch" + Write-Host "##vso[task.setvariable variable=RefreshBranch]$branch" - task: Bash@3 displayName: "Create Module Command Metadata Refresh Branch" inputs: targetType: inline script: | git status - git branch $(ComputeBranch.RefreshBranch) - git checkout $(ComputeBranch.RefreshBranch) - git status - - - job: MsGraphPsSdkModuleCommandMetadataGeneration - dependsOn: CreateMetadataRefreshBranch - displayName: Microsoft Graph PowerShell SDK Generation - condition: succeeded() - timeoutInMinutes: 840 - variables: - RefreshBranch: $[ dependencies.CreateMetadataRefreshBranch.outputs['ComputeBranch.RefreshBranch'] ] - steps: - - template: .azure-pipelines/common-templates/checkout.yml@self - parameters: - TargetBranch: $(RefreshBranch) + git branch $(RefreshBranch) + git checkout $(RefreshBranch) + git status - template: .azure-pipelines/common-templates/install-tools.yml@self - template: .azure-pipelines/common-templates/security-pre-checks.yml@self - template: .azure-pipelines/generation-templates/authentication-module.yml@self From c1e6f671ccbca756557134e598fcf39d68f4f14b Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Wed, 25 Feb 2026 16:41:51 -0800 Subject: [PATCH 2/5] mark as production job --- .azure-pipelines/command-metadata-refresh.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/command-metadata-refresh.yml b/.azure-pipelines/command-metadata-refresh.yml index 273f5b68f4..c20e755ff4 100644 --- a/.azure-pipelines/command-metadata-refresh.yml +++ b/.azure-pipelines/command-metadata-refresh.yml @@ -2,8 +2,6 @@ # Please make sure to check all the converted content, it is your team's responsibility to make sure that the pipeline is still valid and functions as expected. # This pipeline will be extended to the OneESPT template # If you are not using the E+D shared hosted pool with windows-2022, replace the pool section with your hosted pool, os, and image name. If you are using a Linux image, you must specify an additional windows image for SDL: https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/1es-pipeline-templates/features/sdlanalysis/overview#how-to-specify-a-windows-pool-for-the-sdl-source-analysis-stage -# The Task 'PublishBuildArtifacts@1' has been converted to an output named 'Publish Module Artifacts' in the templateContext section. -# The Task 'NuGetCommand@2' has been converted to an output named 'Publish NuGet to feed' in the templateContext section. name: $(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r) parameters: @@ -63,6 +61,9 @@ extends: - stage: stage jobs: - job: MsGraphPsSdkModuleCommandMetadataGeneration + templateContext: + type: pipeline + isProduction: true displayName: Microsoft Graph PowerShell SDK Generation timeoutInMinutes: 1200 steps: From 04287e4e091f6f06dd270c26d7b26b0b6f90e6a6 Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Wed, 25 Feb 2026 16:44:54 -0800 Subject: [PATCH 3/5] remove jobtype --- .azure-pipelines/command-metadata-refresh.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.azure-pipelines/command-metadata-refresh.yml b/.azure-pipelines/command-metadata-refresh.yml index c20e755ff4..6cd83fbe8c 100644 --- a/.azure-pipelines/command-metadata-refresh.yml +++ b/.azure-pipelines/command-metadata-refresh.yml @@ -62,7 +62,6 @@ extends: jobs: - job: MsGraphPsSdkModuleCommandMetadataGeneration templateContext: - type: pipeline isProduction: true displayName: Microsoft Graph PowerShell SDK Generation timeoutInMinutes: 1200 From 47da35f608ae5cc1567352d1b5e76b82c5d2e007 Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Thu, 26 Feb 2026 12:33:06 -0800 Subject: [PATCH 4/5] simplify refresh pipeline --- .azure-pipelines/command-metadata-refresh.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/command-metadata-refresh.yml b/.azure-pipelines/command-metadata-refresh.yml index 6cd83fbe8c..abd34f08a8 100644 --- a/.azure-pipelines/command-metadata-refresh.yml +++ b/.azure-pipelines/command-metadata-refresh.yml @@ -66,9 +66,17 @@ extends: displayName: Microsoft Graph PowerShell SDK Generation timeoutInMinutes: 1200 steps: - - template: .azure-pipelines/common-templates/checkout.yml@self - parameters: - TargetBranch: ${{ parameters.BaseBranch }} + - script: | + git submodule update --init --recursive + displayName: "Initialize submodules" + - task: PowerShell@2 + displayName: "Configure user" + inputs: + targetType: inline + pwsh: true + script: | + git config --global user.email "GraphTooling@service.microsoft.com" + git config --global user.name "Microsoft Graph DevX Tooling" - task: PowerShell@2 name: "ComputeBranch" displayName: "Compute Module Command Metadata Refresh Branch Name" From d606b3f316891fa838d641e8621f4605fcd0fb07 Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Thu, 26 Feb 2026 12:45:05 -0800 Subject: [PATCH 5/5] set networkIsolationPolicy to permissive --- .azure-pipelines/command-metadata-refresh.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.azure-pipelines/command-metadata-refresh.yml b/.azure-pipelines/command-metadata-refresh.yml index abd34f08a8..6a8f259773 100644 --- a/.azure-pipelines/command-metadata-refresh.yml +++ b/.azure-pipelines/command-metadata-refresh.yml @@ -47,6 +47,8 @@ extends: template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates parameters: pool: $(BuildAgent) + settings: + networkIsolationPolicy: Permissive sdl: binskim: enabled: false