From ba3cd1a8b8264a8856029a273f1427da8b1efd20 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 4 Feb 2024 14:42:53 +0100 Subject: [PATCH 01/41] Ported several changes --- .../templates/getModuleTestFiles/action.yml | 55 ++++++++++++++++--- .github/workflows/ms.aad.domainservices.yml | 4 +- .../workflows/ms.analysisservices.servers.yml | 4 +- .../workflows/ms.apimanagement.service.yml | 4 +- .github/workflows/ms.app.containerapps.yml | 4 +- .github/workflows/ms.app.jobs.yml | 4 +- .../workflows/ms.app.managedenvironments.yml | 4 +- ...s.appconfiguration.configurationstores.yml | 4 +- .github/workflows/ms.authorization.locks.yml | 4 +- .../ms.authorization.policyassignments.yml | 4 +- .../ms.authorization.policydefinitions.yml | 4 +- .../ms.authorization.policyexemptions.yml | 4 +- .../ms.authorization.policysetdefinitions.yml | 4 +- .../ms.authorization.roleassignments.yml | 4 +- .../ms.authorization.roledefinitions.yml | 4 +- .../ms.automation.automationaccounts.yml | 4 +- .github/workflows/ms.batch.batchaccounts.yml | 4 +- .github/workflows/ms.cache.redis.yml | 4 +- .../workflows/ms.cache.redisenterprise.yml | 4 +- .github/workflows/ms.cdn.profiles.yml | 4 +- .../ms.cognitiveservices.accounts.yml | 4 +- .../workflows/ms.compute.availabilitysets.yml | 4 +- .../ms.compute.diskencryptionsets.yml | 4 +- .github/workflows/ms.compute.disks.yml | 4 +- .github/workflows/ms.compute.galleries.yml | 4 +- .github/workflows/ms.compute.images.yml | 4 +- .../ms.compute.proximityplacementgroups.yml | 4 +- .../workflows/ms.compute.sshpublickeys.yml | 4 +- .../workflows/ms.compute.virtualmachines.yml | 4 +- .../ms.compute.virtualmachinescalesets.yml | 4 +- .github/workflows/ms.consumption.budgets.yml | 4 +- .../ms.containerinstance.containergroups.yml | 4 +- .../ms.containerregistry.registries.yml | 4 +- .../ms.containerservice.managedclusters.yml | 4 +- .../ms.databricks.accessconnectors.yml | 4 +- .../workflows/ms.databricks.workspaces.yml | 4 +- .../workflows/ms.datafactory.factories.yml | 4 +- .../ms.dataprotection.backupvaults.yml | 4 +- .../ms.dbformysql.flexibleservers.yml | 4 +- .../ms.dbforpostgresql.flexibleservers.yml | 4 +- ...esktopvirtualization.applicationgroups.yml | 4 +- .../ms.desktopvirtualization.hostpools.yml | 4 +- .../ms.desktopvirtualization.scalingplans.yml | 4 +- .../ms.desktopvirtualization.workspaces.yml | 4 +- .github/workflows/ms.devtestlab.labs.yml | 4 +- .../ms.digitaltwins.digitaltwinsinstances.yml | 4 +- .../ms.documentdb.databaseaccounts.yml | 4 +- .github/workflows/ms.eventgrid.domains.yml | 4 +- .../workflows/ms.eventgrid.systemtopics.yml | 4 +- .github/workflows/ms.eventgrid.topics.yml | 4 +- .github/workflows/ms.eventhub.namespaces.yml | 4 +- .github/workflows/ms.healthbot.healthbots.yml | 4 +- .../ms.healthcareapis.workspaces.yml | 4 +- .../workflows/ms.insights.actiongroups.yml | 4 +- .../ms.insights.activitylogalerts.yml | 4 +- .github/workflows/ms.insights.components.yml | 4 +- .../ms.insights.datacollectionendpoints.yml | 4 +- .../ms.insights.datacollectionrules.yml | 4 +- .../ms.insights.diagnosticsettings.yml | 4 +- .../workflows/ms.insights.metricalerts.yml | 4 +- .../ms.insights.privatelinkscopes.yml | 4 +- .../ms.insights.scheduledqueryrules.yml | 4 +- .github/workflows/ms.insights.webtests.yml | 4 +- .github/workflows/ms.keyvault.vaults.yml | 4 +- .../ms.kubernetesconfiguration.extensions.yml | 4 +- ...rnetesconfiguration.fluxconfigurations.yml | 4 +- .github/workflows/ms.logic.workflows.yml | 4 +- .../ms.machinelearningservices.workspaces.yml | 4 +- ....maintenance.maintenanceconfigurations.yml | 4 +- ...managedidentity.userassignedidentities.yml | 4 +- ...anagedservices.registrationdefinitions.yml | 4 +- .../ms.management.managementgroups.yml | 4 +- .../workflows/ms.netapp.netappaccounts.yml | 4 +- .../ms.network.applicationgateways.yml | 4 +- ...ngatewaywebapplicationfirewallpolicies.yml | 4 +- .../ms.network.applicationsecuritygroups.yml | 4 +- .../workflows/ms.network.azurefirewalls.yml | 4 +- .github/workflows/ms.network.bastionhosts.yml | 4 +- .github/workflows/ms.network.connections.yml | 4 +- .../ms.network.ddosprotectionplans.yml | 4 +- .../ms.network.dnsforwardingrulesets.yml | 4 +- .github/workflows/ms.network.dnsresolvers.yml | 4 +- .github/workflows/ms.network.dnszones.yml | 4 +- .../ms.network.expressroutecircuits.yml | 4 +- .../ms.network.expressroutegateways.yml | 4 +- .../workflows/ms.network.firewallpolicies.yml | 4 +- .github/workflows/ms.network.frontdoors.yml | 4 +- ...rontdoorwebapplicationfirewallpolicies.yml | 4 +- .github/workflows/ms.network.ipgroups.yml | 4 +- .../workflows/ms.network.loadbalancers.yml | 4 +- .../ms.network.localnetworkgateways.yml | 4 +- .github/workflows/ms.network.natgateways.yml | 4 +- .../ms.network.networkinterfaces.yml | 4 +- .../workflows/ms.network.networkmanagers.yml | 4 +- .../ms.network.networksecuritygroups.yml | 4 +- .../workflows/ms.network.networkwatchers.yml | 4 +- .../workflows/ms.network.privatednszones.yml | 4 +- .../workflows/ms.network.privateendpoints.yml | 4 +- .../ms.network.privatelinkservices.yml | 4 +- .../ms.network.publicipaddresses.yml | 4 +- .../workflows/ms.network.publicipprefixes.yml | 4 +- .github/workflows/ms.network.routetables.yml | 4 +- .../ms.network.serviceendpointpolicies.yml | 4 +- .../ms.network.trafficmanagerprofiles.yml | 4 +- .github/workflows/ms.network.virtualhubs.yml | 4 +- .../ms.network.virtualnetworkgateways.yml | 4 +- .../workflows/ms.network.virtualnetworks.yml | 4 +- .github/workflows/ms.network.virtualwans.yml | 4 +- .github/workflows/ms.network.vpngateways.yml | 4 +- .github/workflows/ms.network.vpnsites.yml | 4 +- .../ms.operationalinsights.workspaces.yml | 4 +- .../ms.operationsmanagement.solutions.yml | 4 +- .../ms.policyinsights.remediations.yml | 4 +- .../ms.powerbidedicated.capacities.yml | 4 +- .github/workflows/ms.purview.accounts.yml | 4 +- .../workflows/ms.recoveryservices.vaults.yml | 4 +- .github/workflows/ms.relay.namespaces.yml | 4 +- .../workflows/ms.resourcegraph.queries.yml | 4 +- .../ms.resources.deploymentscripts.yml | 4 +- .../workflows/ms.resources.resourcegroups.yml | 4 +- .github/workflows/ms.resources.tags.yml | 4 +- .../workflows/ms.search.searchservices.yml | 4 +- .../ms.security.azuresecuritycenter.yml | 4 +- .../workflows/ms.servicebus.namespaces.yml | 4 +- .../workflows/ms.servicefabric.clusters.yml | 4 +- .../workflows/ms.signalrservice.signalr.yml | 4 +- .../workflows/ms.signalrservice.webpubsub.yml | 4 +- .github/workflows/ms.sql.managedinstances.yml | 4 +- .github/workflows/ms.sql.servers.yml | 4 +- .../workflows/ms.storage.storageaccounts.yml | 4 +- .../workflows/ms.synapse.privatelinkhubs.yml | 4 +- .github/workflows/ms.synapse.workspaces.yml | 4 +- ...ms.virtualmachineimages.imagetemplates.yml | 4 +- .github/workflows/ms.web.connections.yml | 4 +- .../workflows/ms.web.hostingenvironments.yml | 4 +- .github/workflows/ms.web.serverfarms.yml | 4 +- .github/workflows/ms.web.sites.yml | 4 +- .github/workflows/ms.web.staticsites.yml | 4 +- .github/workflows/template.module.yml | 16 +++--- 139 files changed, 466 insertions(+), 153 deletions(-) diff --git a/.github/actions/templates/getModuleTestFiles/action.yml b/.github/actions/templates/getModuleTestFiles/action.yml index 704f13bad5..5cbaabc615 100644 --- a/.github/actions/templates/getModuleTestFiles/action.yml +++ b/.github/actions/templates/getModuleTestFiles/action.yml @@ -5,38 +5,75 @@ inputs: modulePath: description: "The path to the module's folder" required: true + psRuleFilterRegex: + description: 'The regex used to filter PSRule compliant files' + required: true + default: '(defaults|waf-aligned)' outputs: moduleTestFilePaths: description: 'The module test files to use for template evaluation' value: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: + description: 'The module test files to use for PSRule evaluation' + value: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} runs: using: 'composite' steps: - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths shell: pwsh run: | # Grouping task logs - Write-Output '::group::Get parameter files' + Write-Output '::group::Get all test files' # Get the list of parameter file paths $moduleFolderPath = Join-Path $env:GITHUB_WORKSPACE '${{ inputs.modulePath }}' - $testFilePaths = (Get-ChildItem -Path $moduleFolderPath -Recurse -Filter 'main.test.bicep').FullName | Sort-Object + $testFilePaths = (Get-ChildItem -Path $moduleFolderPath -Recurse -Filter 'main.test.bicep').FullName | Sort-Object $testFilePaths = $testFilePaths | ForEach-Object { $_.Replace($moduleFolderPath, '').Trim('\').Trim('/') } - Write-Verbose 'Found module test files' -Verbose + Write-Verbose 'Found all module test files' -Verbose $testFilePaths | ForEach-Object { Write-Verbose "- [$_]" -Verbose } # Output values to be accessed by next jobs - $compressedOutput = $testFilePaths | ConvertTo-Json -Compress - if($compressedOutput -notmatch "\[.*\]") { - $compressedOutput = "[$compressedOutput]" + $deployCompressedOutput = $testFilePaths | ForEach-Object { + @{ + path = $_ + name = Split-Path (Split-Path $_) -Leaf + } + } | ConvertTo-Json -Compress + + # Output values to be accessed by next jobs + if($deployCompressedOutput -notmatch "\[.*\]") { + $deployCompressedOutput = "[$deployCompressedOutput]" + } + Write-Verbose "Publishing output: $deployCompressedOutput" -Verbose + Write-Output ('{0}={1}' -f 'moduleTestFilePaths', $deployCompressedOutput) >> $env:GITHUB_OUTPUT + + Write-Output '::endgroup::' + + Write-Output '::group::Get PSRule test files' + $psRuleTestFilePaths = $testFilePaths | Where-Object { $_ -match '${{ inputs.psRuleFilterRegex }}' } + + Write-Verbose 'Found PSRule module test files' -Verbose + $psRuleTestFilePaths | ForEach-Object { Write-Verbose "- [$_]" -Verbose } + + # Output values to be accessed by next jobs + $psRuleCompressedOutput = $psRuleTestFilePaths | ForEach-Object { + @{ + path = $_ + name = Split-Path (Split-Path $_) -Leaf + } + } | ConvertTo-Json -Compress + + if($psRuleCompressedOutput -notmatch "\[.*\]") { + $psRuleCompressedOutput = "[$psRuleCompressedOutput]" } - Write-Verbose "Publishing output: $compressedOutput" -Verbose - Write-Output ('{0}={1}' -f 'moduleTestFilePaths', $compressedOutput) >> $env:GITHUB_OUTPUT + Write-Verbose "Publishing output: $psRuleCompressedOutput" -Verbose + Write-Output ('{0}={1}' -f 'psRuleModuleTestFilePaths', $psRuleCompressedOutput) >> $env:GITHUB_OUTPUT + Write-Output '::endgroup::' diff --git a/.github/workflows/ms.aad.domainservices.yml b/.github/workflows/ms.aad.domainservices.yml index bd4d45b92e..91a6f6b274 100644 --- a/.github/workflows/ms.aad.domainservices.yml +++ b/.github/workflows/ms.aad.domainservices.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.analysisservices.servers.yml b/.github/workflows/ms.analysisservices.servers.yml index 9ae908653d..0c460dc554 100644 --- a/.github/workflows/ms.analysisservices.servers.yml +++ b/.github/workflows/ms.analysisservices.servers.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.apimanagement.service.yml b/.github/workflows/ms.apimanagement.service.yml index 5e9a4fb392..17d30f499e 100644 --- a/.github/workflows/ms.apimanagement.service.yml +++ b/.github/workflows/ms.apimanagement.service.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.app.containerapps.yml b/.github/workflows/ms.app.containerapps.yml index ea6366874e..ef8dd103ba 100644 --- a/.github/workflows/ms.app.containerapps.yml +++ b/.github/workflows/ms.app.containerapps.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.app.jobs.yml b/.github/workflows/ms.app.jobs.yml index fd08008d87..086eef41a7 100644 --- a/.github/workflows/ms.app.jobs.yml +++ b/.github/workflows/ms.app.jobs.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.app.managedenvironments.yml b/.github/workflows/ms.app.managedenvironments.yml index 3a0eb0ae4c..1464efa5bd 100644 --- a/.github/workflows/ms.app.managedenvironments.yml +++ b/.github/workflows/ms.app.managedenvironments.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.appconfiguration.configurationstores.yml b/.github/workflows/ms.appconfiguration.configurationstores.yml index caa07e54ef..d21a34bef5 100644 --- a/.github/workflows/ms.appconfiguration.configurationstores.yml +++ b/.github/workflows/ms.appconfiguration.configurationstores.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.authorization.locks.yml b/.github/workflows/ms.authorization.locks.yml index 75dff0c9ef..e12da6cd9b 100644 --- a/.github/workflows/ms.authorization.locks.yml +++ b/.github/workflows/ms.authorization.locks.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.authorization.policyassignments.yml b/.github/workflows/ms.authorization.policyassignments.yml index 1dc4a1e38f..47dc16563d 100644 --- a/.github/workflows/ms.authorization.policyassignments.yml +++ b/.github/workflows/ms.authorization.policyassignments.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.authorization.policydefinitions.yml b/.github/workflows/ms.authorization.policydefinitions.yml index 7ee0b7be54..1c6675beb1 100644 --- a/.github/workflows/ms.authorization.policydefinitions.yml +++ b/.github/workflows/ms.authorization.policydefinitions.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.authorization.policyexemptions.yml b/.github/workflows/ms.authorization.policyexemptions.yml index 075ab4fe90..fdd9a8f0f8 100644 --- a/.github/workflows/ms.authorization.policyexemptions.yml +++ b/.github/workflows/ms.authorization.policyexemptions.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.authorization.policysetdefinitions.yml b/.github/workflows/ms.authorization.policysetdefinitions.yml index ccdb663b8b..83aac5a38d 100644 --- a/.github/workflows/ms.authorization.policysetdefinitions.yml +++ b/.github/workflows/ms.authorization.policysetdefinitions.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.authorization.roleassignments.yml b/.github/workflows/ms.authorization.roleassignments.yml index ba85f6368f..db2a53e471 100644 --- a/.github/workflows/ms.authorization.roleassignments.yml +++ b/.github/workflows/ms.authorization.roleassignments.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.authorization.roledefinitions.yml b/.github/workflows/ms.authorization.roledefinitions.yml index ffd351ca61..a9ef4ab79d 100644 --- a/.github/workflows/ms.authorization.roledefinitions.yml +++ b/.github/workflows/ms.authorization.roledefinitions.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.automation.automationaccounts.yml b/.github/workflows/ms.automation.automationaccounts.yml index 6f22922e0d..82091f9180 100644 --- a/.github/workflows/ms.automation.automationaccounts.yml +++ b/.github/workflows/ms.automation.automationaccounts.yml @@ -63,7 +63,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -71,6 +71,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -84,5 +85,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.batch.batchaccounts.yml b/.github/workflows/ms.batch.batchaccounts.yml index 3b43c6ebff..b4a40985ad 100644 --- a/.github/workflows/ms.batch.batchaccounts.yml +++ b/.github/workflows/ms.batch.batchaccounts.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.cache.redis.yml b/.github/workflows/ms.cache.redis.yml index 9d61e89657..990f2085db 100644 --- a/.github/workflows/ms.cache.redis.yml +++ b/.github/workflows/ms.cache.redis.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.cache.redisenterprise.yml b/.github/workflows/ms.cache.redisenterprise.yml index c574fbe41e..e3b554fc14 100644 --- a/.github/workflows/ms.cache.redisenterprise.yml +++ b/.github/workflows/ms.cache.redisenterprise.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.cdn.profiles.yml b/.github/workflows/ms.cdn.profiles.yml index d9e589cf98..1b692e6bf9 100644 --- a/.github/workflows/ms.cdn.profiles.yml +++ b/.github/workflows/ms.cdn.profiles.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.cognitiveservices.accounts.yml b/.github/workflows/ms.cognitiveservices.accounts.yml index 28b4e4c4cf..3151e60bb3 100644 --- a/.github/workflows/ms.cognitiveservices.accounts.yml +++ b/.github/workflows/ms.cognitiveservices.accounts.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.compute.availabilitysets.yml b/.github/workflows/ms.compute.availabilitysets.yml index 5820406b90..0b9698025f 100644 --- a/.github/workflows/ms.compute.availabilitysets.yml +++ b/.github/workflows/ms.compute.availabilitysets.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.compute.diskencryptionsets.yml b/.github/workflows/ms.compute.diskencryptionsets.yml index d15f629829..31eead08d7 100644 --- a/.github/workflows/ms.compute.diskencryptionsets.yml +++ b/.github/workflows/ms.compute.diskencryptionsets.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.compute.disks.yml b/.github/workflows/ms.compute.disks.yml index dc28fc87a5..8886882325 100644 --- a/.github/workflows/ms.compute.disks.yml +++ b/.github/workflows/ms.compute.disks.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.compute.galleries.yml b/.github/workflows/ms.compute.galleries.yml index b20f05ebf1..f034f5cf05 100644 --- a/.github/workflows/ms.compute.galleries.yml +++ b/.github/workflows/ms.compute.galleries.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.compute.images.yml b/.github/workflows/ms.compute.images.yml index a846fcdb2b..a35ee2849b 100644 --- a/.github/workflows/ms.compute.images.yml +++ b/.github/workflows/ms.compute.images.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.compute.proximityplacementgroups.yml b/.github/workflows/ms.compute.proximityplacementgroups.yml index 90732fd348..e01a70466f 100644 --- a/.github/workflows/ms.compute.proximityplacementgroups.yml +++ b/.github/workflows/ms.compute.proximityplacementgroups.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.compute.sshpublickeys.yml b/.github/workflows/ms.compute.sshpublickeys.yml index da7ae084e4..1770092d59 100644 --- a/.github/workflows/ms.compute.sshpublickeys.yml +++ b/.github/workflows/ms.compute.sshpublickeys.yml @@ -58,7 +58,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -66,6 +66,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -79,5 +80,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.compute.virtualmachines.yml b/.github/workflows/ms.compute.virtualmachines.yml index 149bc8e025..d16eba725f 100644 --- a/.github/workflows/ms.compute.virtualmachines.yml +++ b/.github/workflows/ms.compute.virtualmachines.yml @@ -62,7 +62,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -70,6 +70,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -83,5 +84,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.compute.virtualmachinescalesets.yml b/.github/workflows/ms.compute.virtualmachinescalesets.yml index 35978d541e..23fa3f9fa4 100644 --- a/.github/workflows/ms.compute.virtualmachinescalesets.yml +++ b/.github/workflows/ms.compute.virtualmachinescalesets.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.consumption.budgets.yml b/.github/workflows/ms.consumption.budgets.yml index 56d97b2f2f..ee6b921c30 100644 --- a/.github/workflows/ms.consumption.budgets.yml +++ b/.github/workflows/ms.consumption.budgets.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.containerinstance.containergroups.yml b/.github/workflows/ms.containerinstance.containergroups.yml index 1678d17088..208a44159b 100644 --- a/.github/workflows/ms.containerinstance.containergroups.yml +++ b/.github/workflows/ms.containerinstance.containergroups.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.containerregistry.registries.yml b/.github/workflows/ms.containerregistry.registries.yml index 7da11fe32b..cbc1332eb4 100644 --- a/.github/workflows/ms.containerregistry.registries.yml +++ b/.github/workflows/ms.containerregistry.registries.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.containerservice.managedclusters.yml b/.github/workflows/ms.containerservice.managedclusters.yml index 47ada548e5..a0e055ae55 100644 --- a/.github/workflows/ms.containerservice.managedclusters.yml +++ b/.github/workflows/ms.containerservice.managedclusters.yml @@ -61,7 +61,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -69,6 +69,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -82,5 +83,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.databricks.accessconnectors.yml b/.github/workflows/ms.databricks.accessconnectors.yml index d162270eb3..ad780e5652 100644 --- a/.github/workflows/ms.databricks.accessconnectors.yml +++ b/.github/workflows/ms.databricks.accessconnectors.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.databricks.workspaces.yml b/.github/workflows/ms.databricks.workspaces.yml index 8a4267615f..d360980e3c 100644 --- a/.github/workflows/ms.databricks.workspaces.yml +++ b/.github/workflows/ms.databricks.workspaces.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.datafactory.factories.yml b/.github/workflows/ms.datafactory.factories.yml index 8529089198..94c0cac73d 100644 --- a/.github/workflows/ms.datafactory.factories.yml +++ b/.github/workflows/ms.datafactory.factories.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.dataprotection.backupvaults.yml b/.github/workflows/ms.dataprotection.backupvaults.yml index 2e3b8aa66a..ce13d310b6 100644 --- a/.github/workflows/ms.dataprotection.backupvaults.yml +++ b/.github/workflows/ms.dataprotection.backupvaults.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.dbformysql.flexibleservers.yml b/.github/workflows/ms.dbformysql.flexibleservers.yml index da1c483d32..0cb62bff02 100644 --- a/.github/workflows/ms.dbformysql.flexibleservers.yml +++ b/.github/workflows/ms.dbformysql.flexibleservers.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.dbforpostgresql.flexibleservers.yml b/.github/workflows/ms.dbforpostgresql.flexibleservers.yml index 7d7da52212..b59084a316 100644 --- a/.github/workflows/ms.dbforpostgresql.flexibleservers.yml +++ b/.github/workflows/ms.dbforpostgresql.flexibleservers.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.desktopvirtualization.applicationgroups.yml b/.github/workflows/ms.desktopvirtualization.applicationgroups.yml index 6d91829dc6..2c9cc1a70e 100644 --- a/.github/workflows/ms.desktopvirtualization.applicationgroups.yml +++ b/.github/workflows/ms.desktopvirtualization.applicationgroups.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.desktopvirtualization.hostpools.yml b/.github/workflows/ms.desktopvirtualization.hostpools.yml index 54a8497dc5..3cf6f11e18 100644 --- a/.github/workflows/ms.desktopvirtualization.hostpools.yml +++ b/.github/workflows/ms.desktopvirtualization.hostpools.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.desktopvirtualization.scalingplans.yml b/.github/workflows/ms.desktopvirtualization.scalingplans.yml index fef746cd4d..7ba0757aad 100644 --- a/.github/workflows/ms.desktopvirtualization.scalingplans.yml +++ b/.github/workflows/ms.desktopvirtualization.scalingplans.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.desktopvirtualization.workspaces.yml b/.github/workflows/ms.desktopvirtualization.workspaces.yml index 9ba8618f12..5012fea61c 100644 --- a/.github/workflows/ms.desktopvirtualization.workspaces.yml +++ b/.github/workflows/ms.desktopvirtualization.workspaces.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.devtestlab.labs.yml b/.github/workflows/ms.devtestlab.labs.yml index ae0964c7bc..f48acb8a24 100644 --- a/.github/workflows/ms.devtestlab.labs.yml +++ b/.github/workflows/ms.devtestlab.labs.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.digitaltwins.digitaltwinsinstances.yml b/.github/workflows/ms.digitaltwins.digitaltwinsinstances.yml index e5f9765d53..72ad9a28da 100644 --- a/.github/workflows/ms.digitaltwins.digitaltwinsinstances.yml +++ b/.github/workflows/ms.digitaltwins.digitaltwinsinstances.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.documentdb.databaseaccounts.yml b/.github/workflows/ms.documentdb.databaseaccounts.yml index 364dd0d04d..3f6415e23d 100644 --- a/.github/workflows/ms.documentdb.databaseaccounts.yml +++ b/.github/workflows/ms.documentdb.databaseaccounts.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.eventgrid.domains.yml b/.github/workflows/ms.eventgrid.domains.yml index b979a04aff..6b012ac4c7 100644 --- a/.github/workflows/ms.eventgrid.domains.yml +++ b/.github/workflows/ms.eventgrid.domains.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.eventgrid.systemtopics.yml b/.github/workflows/ms.eventgrid.systemtopics.yml index e3bbb137a0..d8452a01a2 100644 --- a/.github/workflows/ms.eventgrid.systemtopics.yml +++ b/.github/workflows/ms.eventgrid.systemtopics.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.eventgrid.topics.yml b/.github/workflows/ms.eventgrid.topics.yml index 95d475a260..be47e23e9b 100644 --- a/.github/workflows/ms.eventgrid.topics.yml +++ b/.github/workflows/ms.eventgrid.topics.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.eventhub.namespaces.yml b/.github/workflows/ms.eventhub.namespaces.yml index 477ff4f1fd..500acee1d7 100644 --- a/.github/workflows/ms.eventhub.namespaces.yml +++ b/.github/workflows/ms.eventhub.namespaces.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.healthbot.healthbots.yml b/.github/workflows/ms.healthbot.healthbots.yml index 5963c295e5..fa6c54c678 100644 --- a/.github/workflows/ms.healthbot.healthbots.yml +++ b/.github/workflows/ms.healthbot.healthbots.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.healthcareapis.workspaces.yml b/.github/workflows/ms.healthcareapis.workspaces.yml index f5b0a612bf..0b3969764a 100644 --- a/.github/workflows/ms.healthcareapis.workspaces.yml +++ b/.github/workflows/ms.healthcareapis.workspaces.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.insights.actiongroups.yml b/.github/workflows/ms.insights.actiongroups.yml index 21c8a4990c..f2814c2e56 100644 --- a/.github/workflows/ms.insights.actiongroups.yml +++ b/.github/workflows/ms.insights.actiongroups.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.insights.activitylogalerts.yml b/.github/workflows/ms.insights.activitylogalerts.yml index 66e7e92892..c8aa492500 100644 --- a/.github/workflows/ms.insights.activitylogalerts.yml +++ b/.github/workflows/ms.insights.activitylogalerts.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.insights.components.yml b/.github/workflows/ms.insights.components.yml index 138d69ba56..cc3c0f85a9 100644 --- a/.github/workflows/ms.insights.components.yml +++ b/.github/workflows/ms.insights.components.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.insights.datacollectionendpoints.yml b/.github/workflows/ms.insights.datacollectionendpoints.yml index d81626ead5..2de10e3a23 100644 --- a/.github/workflows/ms.insights.datacollectionendpoints.yml +++ b/.github/workflows/ms.insights.datacollectionendpoints.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.insights.datacollectionrules.yml b/.github/workflows/ms.insights.datacollectionrules.yml index 7d14e70536..09ea5bbbf7 100644 --- a/.github/workflows/ms.insights.datacollectionrules.yml +++ b/.github/workflows/ms.insights.datacollectionrules.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.insights.diagnosticsettings.yml b/.github/workflows/ms.insights.diagnosticsettings.yml index 7e29353089..1d71eb3bd9 100644 --- a/.github/workflows/ms.insights.diagnosticsettings.yml +++ b/.github/workflows/ms.insights.diagnosticsettings.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.insights.metricalerts.yml b/.github/workflows/ms.insights.metricalerts.yml index e319b49d8f..c332546fc1 100644 --- a/.github/workflows/ms.insights.metricalerts.yml +++ b/.github/workflows/ms.insights.metricalerts.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.insights.privatelinkscopes.yml b/.github/workflows/ms.insights.privatelinkscopes.yml index e878324aa8..8c0e9359b9 100644 --- a/.github/workflows/ms.insights.privatelinkscopes.yml +++ b/.github/workflows/ms.insights.privatelinkscopes.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.insights.scheduledqueryrules.yml b/.github/workflows/ms.insights.scheduledqueryrules.yml index b0fbb811b2..cfa8dc4674 100644 --- a/.github/workflows/ms.insights.scheduledqueryrules.yml +++ b/.github/workflows/ms.insights.scheduledqueryrules.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.insights.webtests.yml b/.github/workflows/ms.insights.webtests.yml index 40d3afc21c..ed2e3169e5 100644 --- a/.github/workflows/ms.insights.webtests.yml +++ b/.github/workflows/ms.insights.webtests.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.keyvault.vaults.yml b/.github/workflows/ms.keyvault.vaults.yml index 9355923fde..6a96bc55d4 100644 --- a/.github/workflows/ms.keyvault.vaults.yml +++ b/.github/workflows/ms.keyvault.vaults.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.kubernetesconfiguration.extensions.yml b/.github/workflows/ms.kubernetesconfiguration.extensions.yml index 4d57060cdb..cf485391bf 100644 --- a/.github/workflows/ms.kubernetesconfiguration.extensions.yml +++ b/.github/workflows/ms.kubernetesconfiguration.extensions.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.kubernetesconfiguration.fluxconfigurations.yml b/.github/workflows/ms.kubernetesconfiguration.fluxconfigurations.yml index 9c389c58c7..3160eaf645 100644 --- a/.github/workflows/ms.kubernetesconfiguration.fluxconfigurations.yml +++ b/.github/workflows/ms.kubernetesconfiguration.fluxconfigurations.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.logic.workflows.yml b/.github/workflows/ms.logic.workflows.yml index 070773d9d3..1e3dc14f10 100644 --- a/.github/workflows/ms.logic.workflows.yml +++ b/.github/workflows/ms.logic.workflows.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.machinelearningservices.workspaces.yml b/.github/workflows/ms.machinelearningservices.workspaces.yml index 5de45511e9..08d42df4cc 100644 --- a/.github/workflows/ms.machinelearningservices.workspaces.yml +++ b/.github/workflows/ms.machinelearningservices.workspaces.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.maintenance.maintenanceconfigurations.yml b/.github/workflows/ms.maintenance.maintenanceconfigurations.yml index db907debd6..d5f79b9c24 100644 --- a/.github/workflows/ms.maintenance.maintenanceconfigurations.yml +++ b/.github/workflows/ms.maintenance.maintenanceconfigurations.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.managedidentity.userassignedidentities.yml b/.github/workflows/ms.managedidentity.userassignedidentities.yml index a539ecee3a..864c1a0482 100644 --- a/.github/workflows/ms.managedidentity.userassignedidentities.yml +++ b/.github/workflows/ms.managedidentity.userassignedidentities.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.managedservices.registrationdefinitions.yml b/.github/workflows/ms.managedservices.registrationdefinitions.yml index cf52956c55..715b464d77 100644 --- a/.github/workflows/ms.managedservices.registrationdefinitions.yml +++ b/.github/workflows/ms.managedservices.registrationdefinitions.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.management.managementgroups.yml b/.github/workflows/ms.management.managementgroups.yml index 4156eedef4..f184dac1c2 100644 --- a/.github/workflows/ms.management.managementgroups.yml +++ b/.github/workflows/ms.management.managementgroups.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.netapp.netappaccounts.yml b/.github/workflows/ms.netapp.netappaccounts.yml index 9d17b522ec..aa8b6895dd 100644 --- a/.github/workflows/ms.netapp.netappaccounts.yml +++ b/.github/workflows/ms.netapp.netappaccounts.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.applicationgateways.yml b/.github/workflows/ms.network.applicationgateways.yml index 8df7b2ca06..2105a439be 100644 --- a/.github/workflows/ms.network.applicationgateways.yml +++ b/.github/workflows/ms.network.applicationgateways.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.applicationgatewaywebapplicationfirewallpolicies.yml b/.github/workflows/ms.network.applicationgatewaywebapplicationfirewallpolicies.yml index 78c20be486..0dd86b627e 100644 --- a/.github/workflows/ms.network.applicationgatewaywebapplicationfirewallpolicies.yml +++ b/.github/workflows/ms.network.applicationgatewaywebapplicationfirewallpolicies.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.applicationsecuritygroups.yml b/.github/workflows/ms.network.applicationsecuritygroups.yml index 59fe44a0ce..08235a8afa 100644 --- a/.github/workflows/ms.network.applicationsecuritygroups.yml +++ b/.github/workflows/ms.network.applicationsecuritygroups.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.azurefirewalls.yml b/.github/workflows/ms.network.azurefirewalls.yml index e6e498b962..9d4deaa724 100644 --- a/.github/workflows/ms.network.azurefirewalls.yml +++ b/.github/workflows/ms.network.azurefirewalls.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.bastionhosts.yml b/.github/workflows/ms.network.bastionhosts.yml index 1b3b212c13..e644f9c1fa 100644 --- a/.github/workflows/ms.network.bastionhosts.yml +++ b/.github/workflows/ms.network.bastionhosts.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.connections.yml b/.github/workflows/ms.network.connections.yml index 483f1032ca..5e366a9096 100644 --- a/.github/workflows/ms.network.connections.yml +++ b/.github/workflows/ms.network.connections.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.ddosprotectionplans.yml b/.github/workflows/ms.network.ddosprotectionplans.yml index e8755288c0..a7868e8f40 100644 --- a/.github/workflows/ms.network.ddosprotectionplans.yml +++ b/.github/workflows/ms.network.ddosprotectionplans.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.dnsforwardingrulesets.yml b/.github/workflows/ms.network.dnsforwardingrulesets.yml index 4726bfaba8..40395e7631 100644 --- a/.github/workflows/ms.network.dnsforwardingrulesets.yml +++ b/.github/workflows/ms.network.dnsforwardingrulesets.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.dnsresolvers.yml b/.github/workflows/ms.network.dnsresolvers.yml index 7e9ff35637..711c4c76d4 100644 --- a/.github/workflows/ms.network.dnsresolvers.yml +++ b/.github/workflows/ms.network.dnsresolvers.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.dnszones.yml b/.github/workflows/ms.network.dnszones.yml index 86eeb8a03e..ea2fc02423 100644 --- a/.github/workflows/ms.network.dnszones.yml +++ b/.github/workflows/ms.network.dnszones.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.expressroutecircuits.yml b/.github/workflows/ms.network.expressroutecircuits.yml index c12b75e878..258515f4b9 100644 --- a/.github/workflows/ms.network.expressroutecircuits.yml +++ b/.github/workflows/ms.network.expressroutecircuits.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.expressroutegateways.yml b/.github/workflows/ms.network.expressroutegateways.yml index 8c6e40ded2..e72b4420a9 100644 --- a/.github/workflows/ms.network.expressroutegateways.yml +++ b/.github/workflows/ms.network.expressroutegateways.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.firewallpolicies.yml b/.github/workflows/ms.network.firewallpolicies.yml index 08a61f0afa..2cc70153c1 100644 --- a/.github/workflows/ms.network.firewallpolicies.yml +++ b/.github/workflows/ms.network.firewallpolicies.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.frontdoors.yml b/.github/workflows/ms.network.frontdoors.yml index 2538bed6ba..5e54c107d3 100644 --- a/.github/workflows/ms.network.frontdoors.yml +++ b/.github/workflows/ms.network.frontdoors.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.frontdoorwebapplicationfirewallpolicies.yml b/.github/workflows/ms.network.frontdoorwebapplicationfirewallpolicies.yml index 70a22fbaea..8876482578 100644 --- a/.github/workflows/ms.network.frontdoorwebapplicationfirewallpolicies.yml +++ b/.github/workflows/ms.network.frontdoorwebapplicationfirewallpolicies.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.ipgroups.yml b/.github/workflows/ms.network.ipgroups.yml index d4f65e9956..0788d5f6a2 100644 --- a/.github/workflows/ms.network.ipgroups.yml +++ b/.github/workflows/ms.network.ipgroups.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.loadbalancers.yml b/.github/workflows/ms.network.loadbalancers.yml index e7528cf994..5f67a58f96 100644 --- a/.github/workflows/ms.network.loadbalancers.yml +++ b/.github/workflows/ms.network.loadbalancers.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.localnetworkgateways.yml b/.github/workflows/ms.network.localnetworkgateways.yml index a6df39c66c..4f0709b720 100644 --- a/.github/workflows/ms.network.localnetworkgateways.yml +++ b/.github/workflows/ms.network.localnetworkgateways.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.natgateways.yml b/.github/workflows/ms.network.natgateways.yml index b7be305f2c..0382215aba 100644 --- a/.github/workflows/ms.network.natgateways.yml +++ b/.github/workflows/ms.network.natgateways.yml @@ -61,7 +61,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -69,6 +69,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -82,5 +83,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.networkinterfaces.yml b/.github/workflows/ms.network.networkinterfaces.yml index be9d8b8aa6..fea6858bf0 100644 --- a/.github/workflows/ms.network.networkinterfaces.yml +++ b/.github/workflows/ms.network.networkinterfaces.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.networkmanagers.yml b/.github/workflows/ms.network.networkmanagers.yml index e44a020bba..d8fe0f7a08 100644 --- a/.github/workflows/ms.network.networkmanagers.yml +++ b/.github/workflows/ms.network.networkmanagers.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.networksecuritygroups.yml b/.github/workflows/ms.network.networksecuritygroups.yml index 90cd846a3e..9f390a6a54 100644 --- a/.github/workflows/ms.network.networksecuritygroups.yml +++ b/.github/workflows/ms.network.networksecuritygroups.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.networkwatchers.yml b/.github/workflows/ms.network.networkwatchers.yml index f732b73667..e1091457a7 100644 --- a/.github/workflows/ms.network.networkwatchers.yml +++ b/.github/workflows/ms.network.networkwatchers.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.privatednszones.yml b/.github/workflows/ms.network.privatednszones.yml index de0a32fda7..c8b3e1a097 100644 --- a/.github/workflows/ms.network.privatednszones.yml +++ b/.github/workflows/ms.network.privatednszones.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.privateendpoints.yml b/.github/workflows/ms.network.privateendpoints.yml index 884fbba6d1..54a6840377 100644 --- a/.github/workflows/ms.network.privateendpoints.yml +++ b/.github/workflows/ms.network.privateendpoints.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.privatelinkservices.yml b/.github/workflows/ms.network.privatelinkservices.yml index 66c8b93125..cb2c0f4dec 100644 --- a/.github/workflows/ms.network.privatelinkservices.yml +++ b/.github/workflows/ms.network.privatelinkservices.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.publicipaddresses.yml b/.github/workflows/ms.network.publicipaddresses.yml index 223e208d49..1c555c4f15 100644 --- a/.github/workflows/ms.network.publicipaddresses.yml +++ b/.github/workflows/ms.network.publicipaddresses.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.publicipprefixes.yml b/.github/workflows/ms.network.publicipprefixes.yml index d416b317d6..91efcfb38c 100644 --- a/.github/workflows/ms.network.publicipprefixes.yml +++ b/.github/workflows/ms.network.publicipprefixes.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.routetables.yml b/.github/workflows/ms.network.routetables.yml index 176dc2b4bd..cab84ca07a 100644 --- a/.github/workflows/ms.network.routetables.yml +++ b/.github/workflows/ms.network.routetables.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.serviceendpointpolicies.yml b/.github/workflows/ms.network.serviceendpointpolicies.yml index 1a4b46d53e..dc8a9ddb6a 100644 --- a/.github/workflows/ms.network.serviceendpointpolicies.yml +++ b/.github/workflows/ms.network.serviceendpointpolicies.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.trafficmanagerprofiles.yml b/.github/workflows/ms.network.trafficmanagerprofiles.yml index adaa8bd042..e83b90cca5 100644 --- a/.github/workflows/ms.network.trafficmanagerprofiles.yml +++ b/.github/workflows/ms.network.trafficmanagerprofiles.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.virtualhubs.yml b/.github/workflows/ms.network.virtualhubs.yml index 147e3e356b..9cffd9fe67 100644 --- a/.github/workflows/ms.network.virtualhubs.yml +++ b/.github/workflows/ms.network.virtualhubs.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.virtualnetworkgateways.yml b/.github/workflows/ms.network.virtualnetworkgateways.yml index 5cc51f28a6..87dc099ae6 100644 --- a/.github/workflows/ms.network.virtualnetworkgateways.yml +++ b/.github/workflows/ms.network.virtualnetworkgateways.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.virtualnetworks.yml b/.github/workflows/ms.network.virtualnetworks.yml index 30ff971fd2..04722f8d3e 100644 --- a/.github/workflows/ms.network.virtualnetworks.yml +++ b/.github/workflows/ms.network.virtualnetworks.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.virtualwans.yml b/.github/workflows/ms.network.virtualwans.yml index 501463fd21..11e4dfa12d 100644 --- a/.github/workflows/ms.network.virtualwans.yml +++ b/.github/workflows/ms.network.virtualwans.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.vpngateways.yml b/.github/workflows/ms.network.vpngateways.yml index c31f992100..d343b869a9 100644 --- a/.github/workflows/ms.network.vpngateways.yml +++ b/.github/workflows/ms.network.vpngateways.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.network.vpnsites.yml b/.github/workflows/ms.network.vpnsites.yml index 4dd09491a0..c35e081df3 100644 --- a/.github/workflows/ms.network.vpnsites.yml +++ b/.github/workflows/ms.network.vpnsites.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.operationalinsights.workspaces.yml b/.github/workflows/ms.operationalinsights.workspaces.yml index 54d369e9ca..6e40e26112 100644 --- a/.github/workflows/ms.operationalinsights.workspaces.yml +++ b/.github/workflows/ms.operationalinsights.workspaces.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.operationsmanagement.solutions.yml b/.github/workflows/ms.operationsmanagement.solutions.yml index c2db85b9b6..9b5b3353fa 100644 --- a/.github/workflows/ms.operationsmanagement.solutions.yml +++ b/.github/workflows/ms.operationsmanagement.solutions.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.policyinsights.remediations.yml b/.github/workflows/ms.policyinsights.remediations.yml index bda9ed753b..5ddcbfbffe 100644 --- a/.github/workflows/ms.policyinsights.remediations.yml +++ b/.github/workflows/ms.policyinsights.remediations.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.powerbidedicated.capacities.yml b/.github/workflows/ms.powerbidedicated.capacities.yml index e4ee8df6ce..f42c8e359d 100644 --- a/.github/workflows/ms.powerbidedicated.capacities.yml +++ b/.github/workflows/ms.powerbidedicated.capacities.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.purview.accounts.yml b/.github/workflows/ms.purview.accounts.yml index 65fbe62b4a..b89b770bd9 100644 --- a/.github/workflows/ms.purview.accounts.yml +++ b/.github/workflows/ms.purview.accounts.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.recoveryservices.vaults.yml b/.github/workflows/ms.recoveryservices.vaults.yml index 475cba7c21..7e7df79b3c 100644 --- a/.github/workflows/ms.recoveryservices.vaults.yml +++ b/.github/workflows/ms.recoveryservices.vaults.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.relay.namespaces.yml b/.github/workflows/ms.relay.namespaces.yml index 0a4ba11917..8dad944808 100644 --- a/.github/workflows/ms.relay.namespaces.yml +++ b/.github/workflows/ms.relay.namespaces.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.resourcegraph.queries.yml b/.github/workflows/ms.resourcegraph.queries.yml index bf066f3964..f7780c6261 100644 --- a/.github/workflows/ms.resourcegraph.queries.yml +++ b/.github/workflows/ms.resourcegraph.queries.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.resources.deploymentscripts.yml b/.github/workflows/ms.resources.deploymentscripts.yml index 6843b69946..6a4b57092f 100644 --- a/.github/workflows/ms.resources.deploymentscripts.yml +++ b/.github/workflows/ms.resources.deploymentscripts.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.resources.resourcegroups.yml b/.github/workflows/ms.resources.resourcegroups.yml index 70c83c06b9..9b0ce16696 100644 --- a/.github/workflows/ms.resources.resourcegroups.yml +++ b/.github/workflows/ms.resources.resourcegroups.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.resources.tags.yml b/.github/workflows/ms.resources.tags.yml index 43dd0811ad..2b615b1863 100644 --- a/.github/workflows/ms.resources.tags.yml +++ b/.github/workflows/ms.resources.tags.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.search.searchservices.yml b/.github/workflows/ms.search.searchservices.yml index f0fc782c0e..f33164a882 100644 --- a/.github/workflows/ms.search.searchservices.yml +++ b/.github/workflows/ms.search.searchservices.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.security.azuresecuritycenter.yml b/.github/workflows/ms.security.azuresecuritycenter.yml index 44514a93b1..9d8c963773 100644 --- a/.github/workflows/ms.security.azuresecuritycenter.yml +++ b/.github/workflows/ms.security.azuresecuritycenter.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.servicebus.namespaces.yml b/.github/workflows/ms.servicebus.namespaces.yml index fccfe41d0c..4df737988a 100644 --- a/.github/workflows/ms.servicebus.namespaces.yml +++ b/.github/workflows/ms.servicebus.namespaces.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.servicefabric.clusters.yml b/.github/workflows/ms.servicefabric.clusters.yml index 9a2659af47..1ca5dbc62e 100644 --- a/.github/workflows/ms.servicefabric.clusters.yml +++ b/.github/workflows/ms.servicefabric.clusters.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.signalrservice.signalr.yml b/.github/workflows/ms.signalrservice.signalr.yml index de64aaf921..76eb7d12f5 100644 --- a/.github/workflows/ms.signalrservice.signalr.yml +++ b/.github/workflows/ms.signalrservice.signalr.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.signalrservice.webpubsub.yml b/.github/workflows/ms.signalrservice.webpubsub.yml index 4ba88d808b..dda3c56894 100644 --- a/.github/workflows/ms.signalrservice.webpubsub.yml +++ b/.github/workflows/ms.signalrservice.webpubsub.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.sql.managedinstances.yml b/.github/workflows/ms.sql.managedinstances.yml index 871baf30c8..e30c3ec830 100644 --- a/.github/workflows/ms.sql.managedinstances.yml +++ b/.github/workflows/ms.sql.managedinstances.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.sql.servers.yml b/.github/workflows/ms.sql.servers.yml index 3c85198e0a..e26ec8a93f 100644 --- a/.github/workflows/ms.sql.servers.yml +++ b/.github/workflows/ms.sql.servers.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.storage.storageaccounts.yml b/.github/workflows/ms.storage.storageaccounts.yml index ef998a5985..ea9df8e193 100644 --- a/.github/workflows/ms.storage.storageaccounts.yml +++ b/.github/workflows/ms.storage.storageaccounts.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.synapse.privatelinkhubs.yml b/.github/workflows/ms.synapse.privatelinkhubs.yml index 9c5768321d..840dea1d07 100644 --- a/.github/workflows/ms.synapse.privatelinkhubs.yml +++ b/.github/workflows/ms.synapse.privatelinkhubs.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.synapse.workspaces.yml b/.github/workflows/ms.synapse.workspaces.yml index 0fc6c8fb8d..7ff6b90515 100644 --- a/.github/workflows/ms.synapse.workspaces.yml +++ b/.github/workflows/ms.synapse.workspaces.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.virtualmachineimages.imagetemplates.yml b/.github/workflows/ms.virtualmachineimages.imagetemplates.yml index cd741e5231..c2f274aef5 100644 --- a/.github/workflows/ms.virtualmachineimages.imagetemplates.yml +++ b/.github/workflows/ms.virtualmachineimages.imagetemplates.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.web.connections.yml b/.github/workflows/ms.web.connections.yml index 5de8a78be5..29b4c78fa1 100644 --- a/.github/workflows/ms.web.connections.yml +++ b/.github/workflows/ms.web.connections.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.web.hostingenvironments.yml b/.github/workflows/ms.web.hostingenvironments.yml index 75fe7b0180..3e3530af6b 100644 --- a/.github/workflows/ms.web.hostingenvironments.yml +++ b/.github/workflows/ms.web.hostingenvironments.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.web.serverfarms.yml b/.github/workflows/ms.web.serverfarms.yml index 63b3a041d2..5649b14dd3 100644 --- a/.github/workflows/ms.web.serverfarms.yml +++ b/.github/workflows/ms.web.serverfarms.yml @@ -59,7 +59,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -67,6 +67,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -80,5 +81,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.web.sites.yml b/.github/workflows/ms.web.sites.yml index 6baa282c73..837dc44448 100644 --- a/.github/workflows/ms.web.sites.yml +++ b/.github/workflows/ms.web.sites.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/ms.web.staticsites.yml b/.github/workflows/ms.web.staticsites.yml index 5fb0e2ad02..39c41bbbc0 100644 --- a/.github/workflows/ms.web.staticsites.yml +++ b/.github/workflows/ms.web.staticsites.yml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/templates/getWorkflowInput with: workflowPath: '${{ env.workflowPath}}' - - name: 'Get parameter file paths' + - name: 'Get module test file paths' id: get-module-test-file-paths uses: ./.github/actions/templates/getModuleTestFiles with: @@ -68,6 +68,7 @@ jobs: outputs: workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }} moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }} + psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }} modulePath: '${{ env.modulePath }}' ############################## @@ -81,5 +82,6 @@ jobs: with: workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}' moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}' + psRuleModuleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}' modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}' secrets: inherit diff --git a/.github/workflows/template.module.yml b/.github/workflows/template.module.yml index 98e6d58081..70d7b80d98 100644 --- a/.github/workflows/template.module.yml +++ b/.github/workflows/template.module.yml @@ -57,10 +57,12 @@ jobs: strategy: fail-fast: false matrix: - moduleTestFilePaths: ${{ fromJson(inputs.moduleTestFilePaths) }} + testCases: ${{ fromJson(inputs.testCases) }} steps: - - name: Checkout + - name: 'Checkout' uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set environment uses: ./.github/actions/templates/setEnvironment with: @@ -68,7 +70,7 @@ jobs: - name: Set PSRule validation uses: ./.github/actions/templates/validateModulePSRule with: - templateFilePath: '${{ inputs.modulePath }}/${{ matrix.moduleTestFilePaths }}' + templateFilePath: '${{ inputs.modulePath }}/${{ matrix.testCases }}' subscriptionId: '${{ secrets.ARM_SUBSCRIPTION_ID }}' managementGroupId: '${{ secrets.ARM_MGMTGROUP_ID }}' @@ -76,7 +78,7 @@ jobs: # Deployment validation # ############################# job_module_deploy_validation: # Note: Please don't change this job name. It is used by the setEnvironment action to define which PS modules to install on runners. - name: 'Deployment validation' + name: 'Deploy [${{ matrix.testCases.name}}]' runs-on: ubuntu-latest if: | !cancelled() && @@ -88,7 +90,7 @@ jobs: strategy: fail-fast: false matrix: - moduleTestFilePaths: ${{ fromJson(inputs.moduleTestFilePaths) }} + testCases: ${{ fromJson(inputs.moduleTestFilePaths) }} steps: - name: 'Checkout' uses: actions/checkout@v4 @@ -99,10 +101,10 @@ jobs: with: variablesPath: ${{ env.variablesPath }} removeDeployment: '${{ fromJson(inputs.workflowInput).removeDeployment }}' - - name: 'Using test file [${{ matrix.moduleTestFilePaths }}]' + - name: 'Run deployment validation with test file [${{ matrix.testCases.path }}]' uses: ./.github/actions/templates/validateModuleDeployment with: - templateFilePath: '${{ inputs.modulePath }}/${{ matrix.moduleTestFilePaths }}' + templateFilePath: '${{ inputs.modulePath }}/${{ matrix.testCases }}' location: '${{ env.location }}' subscriptionId: '${{ secrets.ARM_SUBSCRIPTION_ID }}' managementGroupId: '${{ secrets.ARM_MGMTGROUP_ID }}' From 5e395a99d5055ae0ae55222fa9dcf229ead9880c Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 4 Feb 2024 14:53:57 +0100 Subject: [PATCH 02/41] Update to latest --- .../jobs.getModuleTestFiles.yml | 51 ++++++++++++++----- 1 file changed, 38 insertions(+), 13 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml index 6c8dc4e3b0..0a0722245f 100644 --- a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml +++ b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml @@ -5,6 +5,7 @@ parameters: # Logic-related parameters modulePath: '$(modulePath)' + psRuleFilterRegex: '(defaults|waf-aligned)' ##---------------------------------------------## ## TEMPLATE LOGIC ## @@ -27,24 +28,48 @@ jobs: script: | # Get the list of parameter file paths $moduleFolderPath = Join-Path '$(System.DefaultWorkingDirectory)' '${{ parameters.modulePath }}' - $testFilePaths = (Get-ChildItem -Path $moduleFolderPath -Recurse -Filter 'main.test.bicep').FullName | Sort-Object - $deploymentTestPaths = $testFilePaths | ForEach-Object { + $testFilePaths = (Get-ChildItem -Path $moduleFolderPath -Recurse -Filter 'main.test.bicep').FullName | Sort-Object + $testFilePaths = $testFilePaths | ForEach-Object { $_.Replace($moduleFolderPath, '').Trim('\').Trim('/') } - Write-Verbose 'Found module test files' -Verbose - $deploymentTestPaths | ForEach-Object { Write-Verbose "- [$_]" -Verbose } + Write-Verbose 'Found all module test files' -Verbose + $testFilePaths | ForEach-Object { Write-Verbose "- [$_]" -Verbose } - $testTable = @{} - foreach ($deploymentTestPath in $deploymentTestPaths) { - $deploymentTestFileName = Split-Path (Split-Path $deploymentTestPath -Parent) -Leaf - $testTable[$deploymentTestFileName] += @{ - moduleTestFilePath = $deploymentTestPath - } + # Output values to be accessed by next jobs + $deployCompressedOutput = $testFilePaths | ForEach-Object { + @{ + path = $_ + name = Split-Path (Split-Path $_) -Leaf + } + } | ConvertTo-Json -Compress + + # Output values to be accessed by next jobs + if($deployCompressedOutput -notmatch "\[.*\]") { + $deployCompressedOutput = "[$deployCompressedOutput]" } + Write-Verbose "Publishing output: $deployCompressedOutput" -Verbose + Write-Host ('##vso[task.setVariable variable=moduleTestFilePaths;isOutput=true]{0}' -f $deployCompressedOutput) + + Write-Output '::endgroup::' - $deploymentTestPathsOutput = $testTable | ConvertTo-Json -Compress + Write-Output '::group::Get PSRule test files' + $psRuleTestFilePaths = $testFilePaths | Where-Object { $_ -match '${{ parameters.psRuleFilterRegex }}' } - Write-Host ('##vso[task.setVariable variable=moduleTests;isOutput=true]{0}' -f ($testTable | ConvertTo-Json -Compress)) - Write-Verbose "Module test files: $deploymentTestPathsOutput" -Verbose + Write-Verbose 'Found PSRule module test files' -Verbose + $psRuleTestFilePaths | ForEach-Object { Write-Verbose "- [$_]" -Verbose } + + # Output values to be accessed by next jobs + $psRuleCompressedOutput = $psRuleTestFilePaths | ForEach-Object { + @{ + path = $_ + name = Split-Path (Split-Path $_) -Leaf + } + } | ConvertTo-Json -Compress + + if($psRuleCompressedOutput -notmatch "\[.*\]") { + $psRuleCompressedOutput = "[$psRuleCompressedOutput]" + } + Write-Verbose "Publishing output: $psRuleCompressedOutput" -Verbose + Write-Host ('##vso[task.setVariable variable=psRuleModuleTestFilePaths;isOutput=true]{0}' -f $psRuleCompressedOutput) From 1053fcaeebbf36b38544e1ca7b4ef3108619eea2 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 4 Feb 2024 15:13:10 +0100 Subject: [PATCH 03/41] Update to latest --- .github/actions/templates/getModuleTestFiles/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/templates/getModuleTestFiles/action.yml b/.github/actions/templates/getModuleTestFiles/action.yml index 5cbaabc615..43b26fc06e 100644 --- a/.github/actions/templates/getModuleTestFiles/action.yml +++ b/.github/actions/templates/getModuleTestFiles/action.yml @@ -1,5 +1,5 @@ -name: 'Get parameter files' -description: 'Retrieve the parameter file paths of a given module' +name: 'Get test files' +description: 'Retrieve the test file paths of a given module' inputs: modulePath: From 557a20063dc4f5bb0f65772d02ff4fb8918bb6ca Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 10:47:50 +0100 Subject: [PATCH 04/41] Fixed PSRule setup --- .github/workflows/template.module.yml | 11 +- .ps-rule/min-suppress.Rule.yaml | 20 --- .../psrule/.ps-rule}/dep-suppress.Rule.yaml | 10 +- .../psrule/.ps-rule/min-suppress.Rule.yaml | 34 ++++ .../psrule/.ps-rule}/na-suppress.Rule.yaml | 7 +- .../psrule/Set-PSRuleGitHubOutput.ps1 | 159 ++++++++++++++++++ .../staticValidation/psrule/ps-rule.yaml | 45 +++-- 7 files changed, 242 insertions(+), 44 deletions(-) delete mode 100644 .ps-rule/min-suppress.Rule.yaml rename {.ps-rule => utilities/pipelines/staticValidation/psrule/.ps-rule}/dep-suppress.Rule.yaml (61%) create mode 100644 utilities/pipelines/staticValidation/psrule/.ps-rule/min-suppress.Rule.yaml rename {.ps-rule => utilities/pipelines/staticValidation/psrule/.ps-rule}/na-suppress.Rule.yaml (91%) create mode 100644 utilities/pipelines/staticValidation/psrule/Set-PSRuleGitHubOutput.ps1 rename ps-rule.yaml => utilities/pipelines/staticValidation/psrule/ps-rule.yaml (52%) diff --git a/.github/workflows/template.module.yml b/.github/workflows/template.module.yml index 70d7b80d98..d3f32b1417 100644 --- a/.github/workflows/template.module.yml +++ b/.github/workflows/template.module.yml @@ -11,6 +11,10 @@ on: type: string description: 'List of relative path to the module test files in JSON format' required: true + psRuleModuleTestFilePaths: + type: string + description: "List of relative path to the PSRule module test files in JSON format" + required: true modulePath: type: string description: 'Relative path to the module folder' @@ -57,7 +61,7 @@ jobs: strategy: fail-fast: false matrix: - testCases: ${{ fromJson(inputs.testCases) }} + testCases: ${{ fromJson(inputs.psRuleModuleTestFilePaths) }} steps: - name: 'Checkout' uses: actions/checkout@v4 @@ -67,12 +71,13 @@ jobs: uses: ./.github/actions/templates/setEnvironment with: variablesPath: ${{ env.variablesPath }} - - name: Set PSRule validation + - name: "Run PSRule validation with [${{ matrix.testCases.path }}]" uses: ./.github/actions/templates/validateModulePSRule with: - templateFilePath: '${{ inputs.modulePath }}/${{ matrix.testCases }}' + templateFilePath: "${{ inputs.modulePath }}/${{ matrix.testCases.path }}" subscriptionId: '${{ secrets.ARM_SUBSCRIPTION_ID }}' managementGroupId: '${{ secrets.ARM_MGMTGROUP_ID }}' + psrulePath: "utilities/pipelines/staticValidation/psrule" ############################# # Deployment validation # diff --git a/.ps-rule/min-suppress.Rule.yaml b/.ps-rule/min-suppress.Rule.yaml deleted file mode 100644 index 611c5ab863..0000000000 --- a/.ps-rule/min-suppress.Rule.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -# Synopsis: Suppress Rules for min tests -apiVersion: github.com/microsoft/PSRule/v1 -kind: SuppressionGroup -metadata: - name: 'SuppressMin' -spec: - rule: - - Azure.Resource.UseTags - - Azure.KeyVault.Logs - - Azure.KeyVault.Firewall - - Azure.VMSS.AMA - - Azure.Policy.ExemptionDescriptors - - Azure.Policy.Descriptors - - Azure.Policy.AssignmentDescriptors - - Azure.PublicIP.AvailabilityZone - if: - name: '.' - contains: - - 'min' diff --git a/.ps-rule/dep-suppress.Rule.yaml b/utilities/pipelines/staticValidation/psrule/.ps-rule/dep-suppress.Rule.yaml similarity index 61% rename from .ps-rule/dep-suppress.Rule.yaml rename to utilities/pipelines/staticValidation/psrule/.ps-rule/dep-suppress.Rule.yaml index 9384dbda4c..49e972b8b7 100644 --- a/.ps-rule/dep-suppress.Rule.yaml +++ b/utilities/pipelines/staticValidation/psrule/.ps-rule/dep-suppress.Rule.yaml @@ -3,11 +3,11 @@ apiVersion: github.com/microsoft/PSRule/v1 kind: SuppressionGroup metadata: - name: 'SuppressDependency' + name: "SuppressDependency" spec: if: - name: '.' + name: "." startsWith: - - 'dep' - - 'ms.' - - 'privatelink.' + - "dep" + - "ms." + - "privatelink." diff --git a/utilities/pipelines/staticValidation/psrule/.ps-rule/min-suppress.Rule.yaml b/utilities/pipelines/staticValidation/psrule/.ps-rule/min-suppress.Rule.yaml new file mode 100644 index 0000000000..f8bd41fc01 --- /dev/null +++ b/utilities/pipelines/staticValidation/psrule/.ps-rule/min-suppress.Rule.yaml @@ -0,0 +1,34 @@ +--- +# Synopsis: Suppress Rules for min tests +apiVersion: github.com/microsoft/PSRule/v1 +kind: SuppressionGroup +metadata: + name: "SuppressMin" +spec: + rule: + - Azure.Resource.UseTags + # Policy specific + - Azure.Policy.ExemptionDescriptors + - Azure.Policy.Descriptors + - Azure.Policy.AssignmentDescriptors + # Cognitive Services specific + - Azure.Cognitive.ManagedIdentity + # Automation specific + - Azure.Automation.ManagedIdentity + # Key Vault specific + - Azure.KeyVault.Logs + - Azure.KeyVault.Firewall + # Traffic Manager specific + - Azure.TrafficManager.Endpoints + - Azure.TrafficManager.Protocol + # Azure Load Balancer specific + - Azure.LB.Probe + # App Managed Environment specific + - Azure.ContainerApp.PublicAccess + # Azure Virtual Machine + - Azure.VM.AMA + - Azure.VM.Standalone + if: + name: "." + contains: + - "min" diff --git a/.ps-rule/na-suppress.Rule.yaml b/utilities/pipelines/staticValidation/psrule/.ps-rule/na-suppress.Rule.yaml similarity index 91% rename from .ps-rule/na-suppress.Rule.yaml rename to utilities/pipelines/staticValidation/psrule/.ps-rule/na-suppress.Rule.yaml index fdb40890f7..ec8758fce3 100644 --- a/.ps-rule/na-suppress.Rule.yaml +++ b/utilities/pipelines/staticValidation/psrule/.ps-rule/na-suppress.Rule.yaml @@ -3,18 +3,17 @@ apiVersion: github.com/microsoft/PSRule/v1 kind: SuppressionGroup metadata: - name: 'SuppressNA' + name: "SuppressNA" spec: rule: - - Azure.Resource.UseTags + - Azure.Resource.UseTags if: - type: '.' + type: "." in: - Microsoft.OperationsManagement/solutions - Microsoft.ManagedServices/registrationDefinitions - Microsoft.ManagedServices/registrationAssignments - Microsoft.Management/managementGroups - - Microsoft.Resources/resourceGroups - Microsoft.Network/networkWatchers - Microsoft.PolicyInsights/remediations - Microsoft.KubernetesConfiguration/fluxConfigurations diff --git a/utilities/pipelines/staticValidation/psrule/Set-PSRuleGitHubOutput.ps1 b/utilities/pipelines/staticValidation/psrule/Set-PSRuleGitHubOutput.ps1 new file mode 100644 index 0000000000..72e8b796e1 --- /dev/null +++ b/utilities/pipelines/staticValidation/psrule/Set-PSRuleGitHubOutput.ps1 @@ -0,0 +1,159 @@ +<# +.SYNOPSIS +Parse an input csv file containing the output of the PSRule pre-flight checks and generate formatted markdown file out of it. + +.DESCRIPTION +Parse input csv file containing the output of the PSRule pre-flight checks and generate formatted markdown file out of it. + +.PARAMETER inputFilePath +Mandatory. The path to the output file created by PSRule in csv format. + +.PARAMETER outputFilePath +Optional. The path to the formatted .md file to be created. + +.PARAMETER skipPassedRulesReport +Optional. Whether to add the detail of passed PSRule to the output markdown file or to limit the list to the failed ones. + +.EXAMPLE +Set-PSRuleGitHubOutput -inputFilePath 'C:/PSRule-output.csv' + +Generate a markdown file 'output.md' in the current folder, out of the 'C:/PSRule-output.csv' input, listing all passed and failed rules. + +.EXAMPLE +Set-PSRuleGitHubOutput -inputFilePath 'C:/PSRule-output.csv' -outputFilePath 'C:/PSRule-output.md' -skipPassedRulesReport + +Generate a markdown file 'C:/PSRule-output.md', out of the 'C:/PSRule-output.csv' input, listing only the failed rules. +#> +function Set-PSRuleGitHubOutput { + [CmdletBinding(SupportsShouldProcess)] + param ( + [Parameter(Mandatory)] + [String] $InputFilePath, + + [Parameter(Mandatory = $false)] + [string] $OutputFilePath = './output.md', + + [Parameter(Mandatory = $false)] + [switch] $SkipPassedRulesReport + ) + + ########################################### + # Import CSV output and filter by results # + ########################################### + + if (-not (Test-Path $inputFilePath)) { + Write-Warning ('Input File [{0}] not found' -f $inputFilePath) + return '' + } else { + + $results = Import-Csv -Path $inputFilePath + + $passedRules += $results | Where-Object { $_.Outcome -EQ 'Pass' } | Sort-Object -Property 'RuleName' -Unique + $failedRules += $results | Where-Object { $_.Outcome -EQ 'Fail' } | Sort-Object -Property 'RuleName' -Unique + + ###################### + # Set output content # + ###################### + + # Header + $header = [System.Collections.ArrayList]@( + '# PSRule pre-flight validation summary ', + '' + ) + Out-File -FilePath $outputFilePath -NoClobber -InputObject $header + + if ($failedRules.Count -eq 0) { + # No failure content + $noFailuresContent = ('## :rocket: All [{0}] rules passed, YAY! :rocket:' -f $results.Count) + Out-File -FilePath $outputFilePath -Append -NoClobber -InputObject $noFailuresContent + } else { + # Failure content + + ## Header table + $headerTable = [System.Collections.ArrayList]@( + '| Total No. of Processed Rules| Passed Rules :white_check_mark: | Failed Rules :x: |', + '| :-- | :-- | :-- |' + ('| {0} | {1} | {2} |' -f $results.Count, $passedRules.Count , $failedRules.Count), + '' + ) + Out-File -FilePath $outputFilePath -Append -NoClobber -InputObject $headerTable + + ## List of failed rules + $failContent = [System.Collections.ArrayList]@( + '', + '
', + 'List of Failed Rules', + '', + '## Failed Rules', + '', + '| RuleName | TargetName | Synopsis |', + '| :-- | :-- | :-- |' + ) + foreach ($content in $failedRules ) { + # Shorten the target name for deployment resoure type + if ($content.TargetType -eq 'Microsoft.Resources/deployments') { + $content.TargetName = $content.TargetName.replace('/home/runner/work/ResourceModules/ResourceModules/modules/', '') + } + + # Build hyperlinks to PSRule documentation for the rules + $TemplatesBaseUrl = 'https://azure.github.io/PSRule.Rules.Azure/en/rules' + try { + $PSRuleReferenceUrl = '{0}/{1}' -f $TemplatesBaseUrl, $content.RuleName + $null = Invoke-WebRequest -Uri $PSRuleReferenceUrl + $resourceLink = '[{0}]({1})' -f $content.RuleName, $PSRuleReferenceUrl + } catch { + Write-Warning ('Unable to build url for rule [{0}]' -f $content.RuleName) + $resourceLink = $content.RuleName + } + $failContent += ('| {0} | `{1}` | {2} | ' -f $resourceLink, $content.TargetName, $content.Synopsis) + } + $failContent += [System.Collections.ArrayList]@( + '', + '
', + '' + ) + # Append to output + Out-File -FilePath $outputFilePath -Append -NoClobber -InputObject $failContent + } + + if (($passedRules.Count -gt 0) -and -not $skipPassedRulesReport) { + # List of passed rules + $passContent = [System.Collections.ArrayList]@( + '', + '
', + 'List of Passed Rules', + '', + '## Passed Rules', + '', + '| RuleName | TargetName | Synopsis |', + '| :-- | :-- | :-- |' + ) + foreach ($content in $passedRules ) { + # Shorten the target name for deployment resoure type + if ($content.TargetType -eq 'Microsoft.Resources/deployments') { + $content.TargetName = $content.TargetName.replace('/home/runner/work/ResourceModules/ResourceModules/modules/', '') + } + + # Build hyperlinks to PSRule documentation for the rules + $TemplatesBaseUrl = 'https://azure.github.io/PSRule.Rules.Azure/en/rules' + try { + $PSRuleReferenceUrl = '{0}/{1}' -f $TemplatesBaseUrl, $content.RuleName + $null = Invoke-WebRequest -Uri $PSRuleReferenceUrl + $resourceLink = '[{0}]({1})' -f $content.RuleName, $PSRuleReferenceUrl + } catch { + Write-Warning ('Unable to build url for rule [{0}]' -f $content.RuleName) + $resourceLink = $content.RuleName + } + $passContent += ('| {0} | `{1}` | {2} | ' -f $resourceLink, $content.TargetName, $content.Synopsis) + + } + $passContent += [System.Collections.ArrayList]@( + '', + '
', + '' + ) + # Append to output + Out-File -FilePath $outputFilePath -Append -NoClobber -InputObject $passContent + } + } +} diff --git a/ps-rule.yaml b/utilities/pipelines/staticValidation/psrule/ps-rule.yaml similarity index 52% rename from ps-rule.yaml rename to utilities/pipelines/staticValidation/psrule/ps-rule.yaml index fd610c9d3f..7f938311e7 100644 --- a/ps-rule.yaml +++ b/utilities/pipelines/staticValidation/psrule/ps-rule.yaml @@ -15,8 +15,8 @@ binding: # Require minimum versions of modules. requires: - PSRule: '@pre >=2.4.0' - PSRule.Rules.Azure: '@pre >=1.27.3' + PSRule: '@pre >=2.9.0' + PSRule.Rules.Azure: '>=1.29.0' # Use PSRule for Azure. include: @@ -24,10 +24,8 @@ include: - PSRule.Rules.Azure execution: - # suppressedRuleWarning: false - no more supported in PsRule ver 3.0 - # notProcessedWarning: false - no more supported in PsRule ver 3.0 - ruleSuppressed: Warn - unprocessedObject: Warn + ruleSuppressed: Debug + unprocessedObject: Debug output: culture: @@ -35,9 +33,9 @@ output: input: pathIgnore: - # Ignore other files in the repository. - - '**/*' - # Do not ignore tests. + # Exclude all files. + - '*' + # Only process test files. - '!modules/**/*.test.bicep' configuration: @@ -50,10 +48,33 @@ configuration: # Configures the number of seconds to wait for build Bicep files. AZURE_BICEP_FILE_EXPANSION_TIMEOUT: 10 + # Custom non-sensitive parameters' names + AZURE_DEPLOYMENT_NONSENSITIVE_PARAMETER_NAMES: + [ + 'sasTokenValidityLength', + 'passwordlength', + 'secretname', + 'secreturl', + 'secreturi', + 'secretrotation', + 'secretinterval', + 'secretprovider', + 'secretsprovider', + 'secretref', + 'secretid', + 'disablepassword', + 'sync*passwords', + 'sqlAdministratorLogin', + 'tokenname', + 'ssoClientSecretKeyVaultPath', + 'ssoSecretType', + 'tokenValidityLength', + ] + rule: # Enable custom rules that don't exist in the baseline includeLocal: false exclude: - # Ignore the following rules for all resources - - Azure.KeyVault.PurgeProtect - - Azure.Resource.AllowedRegions + # Ignore the following rules for all resources + - Azure.KeyVault.PurgeProtect + - Azure.VM.UseHybridUseBenefit From 25743b9b1f8f8c33c50218f5008676665f28fbd4 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 10:54:08 +0100 Subject: [PATCH 05/41] Updated pester test file path --- .../jobs.validateModulePester.yml | 36 +++++++++---------- .../templates/validateModulePester/action.yml | 16 ++++----- .github/workflows/template.module.yml | 1 - settings.yml | 6 ---- 4 files changed, 26 insertions(+), 33 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModulePester.yml b/.azuredevops/pipelineTemplates/jobs.validateModulePester.yml index 1839d3f59c..567a6b3c15 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModulePester.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModulePester.yml @@ -21,23 +21,23 @@ ## ## NOTE: If you don't need to overwrite a shared value, you can IGNORE this section ## -## |=====================================================================================================================================================================================================================================================| -## | Parameter | Default Value | Description | Example | -## |---------------------------------|--------------------------------------|-----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------| -## | serviceConnection | '$(serviceConnection)' | The service connection that connects to Azure | 'demo-internal' | -## | poolName | '$(poolName)' | You can provide either a [poolname] or [vmImage] to run the job on | 'Custom Deployment Pool' | -## | vmImage | '$(vmImage)' | You can provide either a [poolname] or [vmImage] to run the job on | 'ubuntu20.04' | -## | defaultJobTimeoutInMinutes | 120 | The timeout for the job in this pipeline | 120 | -## | modulePath | '$(modulePath)' | The path to the module to deploy. | 'c:/KeyVault' | -## | moduleTestFilePath | '$(moduleTestFilePath)' | The path to the module Pester tests. | 'utilities/pipelines/staticValidation/module.tests.ps1' | -## | location | '$(location)' | The location to validate with | 'France Central' | -## | subscriptionId | '$(ARM_SUBSCRIPTION_ID)' | The id of the subscription to validate with when using a Management group service connection | 'aed7c000-6387-412e-bed0-24dfddf4bbc6' | -## | managementGroupId | '$(ARM_MGMTGROUP_ID)' | The id of the management group to validate with. Required only for Management-Group-Level validations | '477c9620-cb01-454f-9ebc-fc6b1df48c14' | -## | parametersRepository | '$(Build.Repository.Name)' | The respository with the parameter files. Defaults to the triggering repository | 'Solutions' | -## | modulesRepository | '$(modulesRepository)' | The respository with the modules. | 'Components' | -## | azurePowerShellVersion | '$(azurePowerShellVersion)' | Used for configuring the Azure PowerShellModules Version, one of the example values. | 'latestVersion' or 'OtherVersion' | -## | preferredAzurePowerShellVersion | '$(preferredAzurePowerShellVersion)' | Used for configuring the Azure PowerShellModules Version, either an empty string or the specific version. | '4.4.0' | -## |=====================================================================================================================================================================================================================================================| +## |========================================================================================================================================================================================================================================================================| +## | Parameter | Default Value | Description | Example | +## |---------------------------------|---------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------| +## | serviceConnection | '$(serviceConnection)' | The service connection that connects to Azure | 'demo-internal' | +## | poolName | '$(poolName)' | You can provide either a [poolname] or [vmImage] to run the job on | 'Custom Deployment Pool' | +## | vmImage | '$(vmImage)' | You can provide either a [poolname] or [vmImage] to run the job on | 'ubuntu20.04' | +## | defaultJobTimeoutInMinutes | 120 | The timeout for the job in this pipeline | 120 | +## | modulePath | '$(modulePath)' | The path to the module to deploy. | 'c:/KeyVault' | +## | moduleTestFilePath | 'utilities/pipelines/staticValidation/module.tests.ps1' | The path to the module Pester tests. | 'utilities/pipelines/staticValidation/module.tests.ps1' | +## | location | '$(location)' | The location to validate with | 'France Central' | +## | subscriptionId | '$(ARM_SUBSCRIPTION_ID)' | The id of the subscription to validate with when using a Management group service connection | 'aed7c000-6387-412e-bed0-24dfddf4bbc6' | +## | managementGroupId | '$(ARM_MGMTGROUP_ID)' | The id of the management group to validate with. Required only for Management-Group-Level validations | '477c9620-cb01-454f-9ebc-fc6b1df48c14' | +## | parametersRepository | '$(Build.Repository.Name)' | The respository with the parameter files. Defaults to the triggering repository | 'Solutions' | +## | modulesRepository | '$(modulesRepository)' | The respository with the modules. | 'Components' | +## | azurePowerShellVersion | '$(azurePowerShellVersion)' | Used for configuring the Azure PowerShellModules Version, one of the example values. | 'latestVersion' or 'OtherVersion' | +## | preferredAzurePowerShellVersion | '$(preferredAzurePowerShellVersion)' | Used for configuring the Azure PowerShellModules Version, either an empty string or the specific version. | '4.4.0' | +## |========================================================================================================================================================================================================================================================================| ## ##---------------------------------------------## @@ -48,7 +48,7 @@ parameters: defaultJobTimeoutInMinutes: 120 # Logic-related parameters modulePath: '$(modulePath)' - moduleTestFilePath: '$(moduleTestFilePath)' + moduleTestFilePath: 'utilities/pipelines/staticValidation/module.tests.ps1' parametersRepository: '$(Build.Repository.Name)' location: '$(location)' subscriptionId: '$(ARM_SUBSCRIPTION_ID)' diff --git a/.github/actions/templates/validateModulePester/action.yml b/.github/actions/templates/validateModulePester/action.yml index 93e10958ac..2735629954 100644 --- a/.github/actions/templates/validateModulePester/action.yml +++ b/.github/actions/templates/validateModulePester/action.yml @@ -10,12 +10,12 @@ ## ACTION PARAMETERS ## ##-------------------------------------------## ## -## |==================================================================================================================================================| -## | Parameter | Required | Default | Description | Example | -## |--------------------------|----------|---------|--------------------------------------|-----------------------------------------------------------| -## | modulePath | true | '' | The path to the module's folder | 'modules/api-management/service' | -## | moduleTestFilePath | true | '' | The path to the module Pester tests. | 'utilities/pipelines/staticValidation/module.tests.ps1' | -## |==================================================================================================================================================| +## |==================================================================================================================================================================================================| +## | Parameter | Required | Default | Description | Example | +## |--------------------------|----------|---------------------------------------------------------|--------------------------------------|-----------------------------------------------------------| +## | modulePath | true | '' | The path to the module's folder | 'modules/api-management/service' | +## | moduleTestFilePath | true | 'utilities/pipelines/staticValidation/module.tests.ps1' | The path to the module Pester tests. | 'utilities/pipelines/staticValidation/module.tests.ps1' | +## |==================================================================================================================================================================================================| ## ##---------------------------------------------## @@ -29,8 +29,8 @@ inputs: default: '' moduleTestFilePath: description: 'The path to the test file' - required: true - default: '' + required: false + default: 'utilities/pipelines/staticValidation/module.tests.ps1' runs: using: 'composite' diff --git a/.github/workflows/template.module.yml b/.github/workflows/template.module.yml index d3f32b1417..675e8d3551 100644 --- a/.github/workflows/template.module.yml +++ b/.github/workflows/template.module.yml @@ -49,7 +49,6 @@ jobs: uses: ./.github/actions/templates/validateModulePester with: modulePath: '${{ inputs.modulePath }}' - moduleTestFilePath: '${{ env.moduleTestFilePath }}' ######################### # PSRule validation # diff --git a/settings.yml b/settings.yml index c96dbe1dc2..319a8e6bb6 100644 --- a/settings.yml +++ b/settings.yml @@ -26,12 +26,6 @@ variables: vmImage: 'ubuntu-latest' # Use this for Microsoft-hosted agents poolName: '' # Use this for self-hosted agents - ####################################### - ## Common folders and file paths ## - ####################################### - - moduleTestFilePath: 'utilities/pipelines/staticValidation/module.tests.ps1' - ############################# ## Validation settings ## ############################# From 69cfc121da9b3a826983197337a47a993ed6226f Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 11:36:39 +0100 Subject: [PATCH 06/41] Update to latest --- .github/actions/templates/getModuleTestFiles/action.yml | 2 +- .github/workflows/template.module.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/templates/getModuleTestFiles/action.yml b/.github/actions/templates/getModuleTestFiles/action.yml index 43b26fc06e..a0218997f6 100644 --- a/.github/actions/templates/getModuleTestFiles/action.yml +++ b/.github/actions/templates/getModuleTestFiles/action.yml @@ -25,7 +25,7 @@ runs: id: get-module-test-file-paths shell: pwsh run: | - # Grouping task logs + # Grouping task logs Write-Output '::group::Get all test files' # Get the list of parameter file paths diff --git a/.github/workflows/template.module.yml b/.github/workflows/template.module.yml index 675e8d3551..6fe9f08441 100644 --- a/.github/workflows/template.module.yml +++ b/.github/workflows/template.module.yml @@ -108,7 +108,7 @@ jobs: - name: 'Run deployment validation with test file [${{ matrix.testCases.path }}]' uses: ./.github/actions/templates/validateModuleDeployment with: - templateFilePath: '${{ inputs.modulePath }}/${{ matrix.testCases }}' + templateFilePath: '${{ inputs.modulePath }}/${{ matrix.testCases.path }}' location: '${{ env.location }}' subscriptionId: '${{ secrets.ARM_SUBSCRIPTION_ID }}' managementGroupId: '${{ secrets.ARM_MGMTGROUP_ID }}' From ea82433bcde57adf78af81b345260cde3bb2fc5e Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 11:45:06 +0100 Subject: [PATCH 07/41] Update to latest --- .../pipelineTemplates/jobs.validateModuleDeployment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml index ff34098171..2c47857b2a 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml @@ -76,7 +76,7 @@ jobs: dependsOn: - getModuleTestFiles strategy: - matrix: $[ dependencies.getModuleTestFiles.outputs['getModuleTestFilesTask.moduleTests'] ] + matrix: $[ dependencies.getModuleTestFiles.outputs['getModuleTestFilesTask.moduleTestFilePaths'] ] ##---------------------------------------------## ## TEMPLATE LOGIC ## ##---------------------------------------------## @@ -132,7 +132,7 @@ jobs: # Get target files - $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' + $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(path)' # Get target files $targetFileList = @( From 8b230219a91901ef5e3c402181bc345db0391863 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 11:46:25 +0100 Subject: [PATCH 08/41] Update to latest --- .github/actions/templates/getModuleTestFiles/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/templates/getModuleTestFiles/action.yml b/.github/actions/templates/getModuleTestFiles/action.yml index a0218997f6..43b26fc06e 100644 --- a/.github/actions/templates/getModuleTestFiles/action.yml +++ b/.github/actions/templates/getModuleTestFiles/action.yml @@ -25,7 +25,7 @@ runs: id: get-module-test-file-paths shell: pwsh run: | - # Grouping task logs + # Grouping task logs Write-Output '::group::Get all test files' # Get the list of parameter file paths From d9298d8be8a16e591dbe5d181e1a17dbf70d5757 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 11:54:03 +0100 Subject: [PATCH 09/41] Update to latest --- .../pipelineTemplates/jobs.validateModuleDeployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml index 2c47857b2a..f685a2d792 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml @@ -132,7 +132,7 @@ jobs: # Get target files - $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(path)' + $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' # Get target files $targetFileList = @( From 5cb8ba2bcf725190d57f3af61e0a52a91610a291 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 11:57:53 +0100 Subject: [PATCH 10/41] Update to latest --- .github/workflows/template.module.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/template.module.yml b/.github/workflows/template.module.yml index 6fe9f08441..f37ed701ad 100644 --- a/.github/workflows/template.module.yml +++ b/.github/workflows/template.module.yml @@ -54,7 +54,7 @@ jobs: # PSRule validation # ######################### job_psrule_test: # Note: Please don't change this job name. It is used by the setEnvironment action to define which PS modules to install on runners. - name: 'PSRule validation' + name: "PSRule [${{ matrix.testCases.name }}]" runs-on: ubuntu-latest if: (fromJson(inputs.workflowInput)).staticValidation == 'true' strategy: From 25ae64eceb597893adc00c8154aa9bdc327f68c5 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 12:09:53 +0100 Subject: [PATCH 11/41] Update to latest --- .github/workflows/ms.aad.domainservices.yml | 2 +- .github/workflows/ms.analysisservices.servers.yml | 2 +- .github/workflows/ms.apimanagement.service.yml | 2 +- .github/workflows/ms.app.containerapps.yml | 2 +- .github/workflows/ms.app.jobs.yml | 2 +- .github/workflows/ms.app.managedenvironments.yml | 2 +- .github/workflows/ms.appconfiguration.configurationstores.yml | 2 +- .github/workflows/ms.authorization.locks.yml | 2 +- .github/workflows/ms.authorization.policyassignments.yml | 2 +- .github/workflows/ms.authorization.policydefinitions.yml | 2 +- .github/workflows/ms.authorization.policyexemptions.yml | 2 +- .github/workflows/ms.authorization.policysetdefinitions.yml | 2 +- .github/workflows/ms.authorization.roleassignments.yml | 2 +- .github/workflows/ms.authorization.roledefinitions.yml | 2 +- .github/workflows/ms.automation.automationaccounts.yml | 2 +- .github/workflows/ms.batch.batchaccounts.yml | 2 +- .github/workflows/ms.cache.redis.yml | 2 +- .github/workflows/ms.cache.redisenterprise.yml | 2 +- .github/workflows/ms.cdn.profiles.yml | 2 +- .github/workflows/ms.cognitiveservices.accounts.yml | 2 +- .github/workflows/ms.compute.availabilitysets.yml | 2 +- .github/workflows/ms.compute.diskencryptionsets.yml | 2 +- .github/workflows/ms.compute.disks.yml | 2 +- .github/workflows/ms.compute.galleries.yml | 2 +- .github/workflows/ms.compute.images.yml | 2 +- .github/workflows/ms.compute.proximityplacementgroups.yml | 2 +- .github/workflows/ms.compute.sshpublickeys.yml | 2 +- .github/workflows/ms.compute.virtualmachines.yml | 2 +- .github/workflows/ms.compute.virtualmachinescalesets.yml | 2 +- .github/workflows/ms.consumption.budgets.yml | 2 +- .github/workflows/ms.containerinstance.containergroups.yml | 2 +- .github/workflows/ms.containerregistry.registries.yml | 2 +- .github/workflows/ms.containerservice.managedclusters.yml | 2 +- .github/workflows/ms.databricks.accessconnectors.yml | 2 +- .github/workflows/ms.databricks.workspaces.yml | 2 +- .github/workflows/ms.datafactory.factories.yml | 2 +- .github/workflows/ms.dataprotection.backupvaults.yml | 2 +- .github/workflows/ms.dbformysql.flexibleservers.yml | 2 +- .github/workflows/ms.dbforpostgresql.flexibleservers.yml | 2 +- .../workflows/ms.desktopvirtualization.applicationgroups.yml | 2 +- .github/workflows/ms.desktopvirtualization.hostpools.yml | 2 +- .github/workflows/ms.desktopvirtualization.scalingplans.yml | 2 +- .github/workflows/ms.desktopvirtualization.workspaces.yml | 2 +- .github/workflows/ms.devtestlab.labs.yml | 2 +- .github/workflows/ms.digitaltwins.digitaltwinsinstances.yml | 2 +- .github/workflows/ms.documentdb.databaseaccounts.yml | 2 +- .github/workflows/ms.eventgrid.domains.yml | 2 +- .github/workflows/ms.eventgrid.systemtopics.yml | 2 +- .github/workflows/ms.eventgrid.topics.yml | 2 +- .github/workflows/ms.eventhub.namespaces.yml | 2 +- .github/workflows/ms.healthbot.healthbots.yml | 2 +- .github/workflows/ms.healthcareapis.workspaces.yml | 2 +- .github/workflows/ms.insights.actiongroups.yml | 2 +- .github/workflows/ms.insights.activitylogalerts.yml | 2 +- .github/workflows/ms.insights.components.yml | 2 +- .github/workflows/ms.insights.datacollectionendpoints.yml | 2 +- .github/workflows/ms.insights.datacollectionrules.yml | 2 +- .github/workflows/ms.insights.diagnosticsettings.yml | 2 +- .github/workflows/ms.insights.metricalerts.yml | 2 +- .github/workflows/ms.insights.privatelinkscopes.yml | 2 +- .github/workflows/ms.insights.scheduledqueryrules.yml | 2 +- .github/workflows/ms.insights.webtests.yml | 2 +- .github/workflows/ms.keyvault.vaults.yml | 2 +- .github/workflows/ms.kubernetesconfiguration.extensions.yml | 2 +- .../workflows/ms.kubernetesconfiguration.fluxconfigurations.yml | 2 +- .github/workflows/ms.logic.workflows.yml | 2 +- .github/workflows/ms.machinelearningservices.workspaces.yml | 2 +- .github/workflows/ms.maintenance.maintenanceconfigurations.yml | 2 +- .github/workflows/ms.managedidentity.userassignedidentities.yml | 2 +- .../workflows/ms.managedservices.registrationdefinitions.yml | 2 +- .github/workflows/ms.management.managementgroups.yml | 2 +- .github/workflows/ms.netapp.netappaccounts.yml | 2 +- .github/workflows/ms.network.applicationgateways.yml | 2 +- ...network.applicationgatewaywebapplicationfirewallpolicies.yml | 2 +- .github/workflows/ms.network.applicationsecuritygroups.yml | 2 +- .github/workflows/ms.network.azurefirewalls.yml | 2 +- .github/workflows/ms.network.bastionhosts.yml | 2 +- .github/workflows/ms.network.connections.yml | 2 +- .github/workflows/ms.network.ddosprotectionplans.yml | 2 +- .github/workflows/ms.network.dnsforwardingrulesets.yml | 2 +- .github/workflows/ms.network.dnsresolvers.yml | 2 +- .github/workflows/ms.network.dnszones.yml | 2 +- .github/workflows/ms.network.expressroutecircuits.yml | 2 +- .github/workflows/ms.network.expressroutegateways.yml | 2 +- .github/workflows/ms.network.firewallpolicies.yml | 2 +- .github/workflows/ms.network.frontdoors.yml | 2 +- .../ms.network.frontdoorwebapplicationfirewallpolicies.yml | 2 +- .github/workflows/ms.network.ipgroups.yml | 2 +- .github/workflows/ms.network.loadbalancers.yml | 2 +- .github/workflows/ms.network.localnetworkgateways.yml | 2 +- .github/workflows/ms.network.natgateways.yml | 2 +- .github/workflows/ms.network.networkinterfaces.yml | 2 +- .github/workflows/ms.network.networkmanagers.yml | 2 +- .github/workflows/ms.network.networksecuritygroups.yml | 2 +- .github/workflows/ms.network.networkwatchers.yml | 2 +- .github/workflows/ms.network.privatednszones.yml | 2 +- .github/workflows/ms.network.privateendpoints.yml | 2 +- .github/workflows/ms.network.privatelinkservices.yml | 2 +- .github/workflows/ms.network.publicipaddresses.yml | 2 +- .github/workflows/ms.network.publicipprefixes.yml | 2 +- .github/workflows/ms.network.routetables.yml | 2 +- .github/workflows/ms.network.serviceendpointpolicies.yml | 2 +- .github/workflows/ms.network.trafficmanagerprofiles.yml | 2 +- .github/workflows/ms.network.virtualhubs.yml | 2 +- .github/workflows/ms.network.virtualnetworkgateways.yml | 2 +- .github/workflows/ms.network.virtualnetworks.yml | 2 +- .github/workflows/ms.network.virtualwans.yml | 2 +- .github/workflows/ms.network.vpngateways.yml | 2 +- .github/workflows/ms.network.vpnsites.yml | 2 +- .github/workflows/ms.operationalinsights.workspaces.yml | 2 +- .github/workflows/ms.operationsmanagement.solutions.yml | 2 +- .github/workflows/ms.policyinsights.remediations.yml | 2 +- .github/workflows/ms.powerbidedicated.capacities.yml | 2 +- .github/workflows/ms.purview.accounts.yml | 2 +- .github/workflows/ms.recoveryservices.vaults.yml | 2 +- .github/workflows/ms.relay.namespaces.yml | 2 +- .github/workflows/ms.resourcegraph.queries.yml | 2 +- .github/workflows/ms.resources.deploymentscripts.yml | 2 +- .github/workflows/ms.resources.resourcegroups.yml | 2 +- .github/workflows/ms.resources.tags.yml | 2 +- .github/workflows/ms.search.searchservices.yml | 2 +- .github/workflows/ms.security.azuresecuritycenter.yml | 2 +- .github/workflows/ms.servicebus.namespaces.yml | 2 +- .github/workflows/ms.servicefabric.clusters.yml | 2 +- .github/workflows/ms.signalrservice.signalr.yml | 2 +- .github/workflows/ms.signalrservice.webpubsub.yml | 2 +- .github/workflows/ms.sql.managedinstances.yml | 2 +- .github/workflows/ms.sql.servers.yml | 2 +- .github/workflows/ms.storage.storageaccounts.yml | 2 +- .github/workflows/ms.synapse.privatelinkhubs.yml | 2 +- .github/workflows/ms.synapse.workspaces.yml | 2 +- .github/workflows/ms.virtualmachineimages.imagetemplates.yml | 2 +- .github/workflows/ms.web.connections.yml | 2 +- .github/workflows/ms.web.hostingenvironments.yml | 2 +- .github/workflows/ms.web.serverfarms.yml | 2 +- .github/workflows/ms.web.sites.yml | 2 +- .github/workflows/ms.web.staticsites.yml | 2 +- 137 files changed, 137 insertions(+), 137 deletions(-) diff --git a/.github/workflows/ms.aad.domainservices.yml b/.github/workflows/ms.aad.domainservices.yml index 91a6f6b274..3838d75f8d 100644 --- a/.github/workflows/ms.aad.domainservices.yml +++ b/.github/workflows/ms.aad.domainservices.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.analysisservices.servers.yml b/.github/workflows/ms.analysisservices.servers.yml index 0c460dc554..81e7e512f0 100644 --- a/.github/workflows/ms.analysisservices.servers.yml +++ b/.github/workflows/ms.analysisservices.servers.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.apimanagement.service.yml b/.github/workflows/ms.apimanagement.service.yml index 17d30f499e..e8bcb69cf7 100644 --- a/.github/workflows/ms.apimanagement.service.yml +++ b/.github/workflows/ms.apimanagement.service.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.app.containerapps.yml b/.github/workflows/ms.app.containerapps.yml index ef8dd103ba..e63895a4e9 100644 --- a/.github/workflows/ms.app.containerapps.yml +++ b/.github/workflows/ms.app.containerapps.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.app.jobs.yml b/.github/workflows/ms.app.jobs.yml index 086eef41a7..fea840af78 100644 --- a/.github/workflows/ms.app.jobs.yml +++ b/.github/workflows/ms.app.jobs.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.app.managedenvironments.yml b/.github/workflows/ms.app.managedenvironments.yml index 1464efa5bd..690271d658 100644 --- a/.github/workflows/ms.app.managedenvironments.yml +++ b/.github/workflows/ms.app.managedenvironments.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.appconfiguration.configurationstores.yml b/.github/workflows/ms.appconfiguration.configurationstores.yml index d21a34bef5..5039b5f7f4 100644 --- a/.github/workflows/ms.appconfiguration.configurationstores.yml +++ b/.github/workflows/ms.appconfiguration.configurationstores.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.authorization.locks.yml b/.github/workflows/ms.authorization.locks.yml index e12da6cd9b..1219a3e0af 100644 --- a/.github/workflows/ms.authorization.locks.yml +++ b/.github/workflows/ms.authorization.locks.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.authorization.policyassignments.yml b/.github/workflows/ms.authorization.policyassignments.yml index 47dc16563d..1c2fa4d67e 100644 --- a/.github/workflows/ms.authorization.policyassignments.yml +++ b/.github/workflows/ms.authorization.policyassignments.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.authorization.policydefinitions.yml b/.github/workflows/ms.authorization.policydefinitions.yml index 1c6675beb1..149e2b1d98 100644 --- a/.github/workflows/ms.authorization.policydefinitions.yml +++ b/.github/workflows/ms.authorization.policydefinitions.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.authorization.policyexemptions.yml b/.github/workflows/ms.authorization.policyexemptions.yml index fdd9a8f0f8..6830dd3553 100644 --- a/.github/workflows/ms.authorization.policyexemptions.yml +++ b/.github/workflows/ms.authorization.policyexemptions.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.authorization.policysetdefinitions.yml b/.github/workflows/ms.authorization.policysetdefinitions.yml index 83aac5a38d..a4d66671c5 100644 --- a/.github/workflows/ms.authorization.policysetdefinitions.yml +++ b/.github/workflows/ms.authorization.policysetdefinitions.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.authorization.roleassignments.yml b/.github/workflows/ms.authorization.roleassignments.yml index db2a53e471..f187d2a64a 100644 --- a/.github/workflows/ms.authorization.roleassignments.yml +++ b/.github/workflows/ms.authorization.roleassignments.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.authorization.roledefinitions.yml b/.github/workflows/ms.authorization.roledefinitions.yml index a9ef4ab79d..8801b43d5a 100644 --- a/.github/workflows/ms.authorization.roledefinitions.yml +++ b/.github/workflows/ms.authorization.roledefinitions.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.automation.automationaccounts.yml b/.github/workflows/ms.automation.automationaccounts.yml index 82091f9180..be9a382e53 100644 --- a/.github/workflows/ms.automation.automationaccounts.yml +++ b/.github/workflows/ms.automation.automationaccounts.yml @@ -78,7 +78,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.batch.batchaccounts.yml b/.github/workflows/ms.batch.batchaccounts.yml index b4a40985ad..88eaa28850 100644 --- a/.github/workflows/ms.batch.batchaccounts.yml +++ b/.github/workflows/ms.batch.batchaccounts.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.cache.redis.yml b/.github/workflows/ms.cache.redis.yml index 990f2085db..a9062fe3db 100644 --- a/.github/workflows/ms.cache.redis.yml +++ b/.github/workflows/ms.cache.redis.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.cache.redisenterprise.yml b/.github/workflows/ms.cache.redisenterprise.yml index e3b554fc14..b5eb3bd6d9 100644 --- a/.github/workflows/ms.cache.redisenterprise.yml +++ b/.github/workflows/ms.cache.redisenterprise.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.cdn.profiles.yml b/.github/workflows/ms.cdn.profiles.yml index 1b692e6bf9..1ddb081db2 100644 --- a/.github/workflows/ms.cdn.profiles.yml +++ b/.github/workflows/ms.cdn.profiles.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.cognitiveservices.accounts.yml b/.github/workflows/ms.cognitiveservices.accounts.yml index 3151e60bb3..ae20ac429d 100644 --- a/.github/workflows/ms.cognitiveservices.accounts.yml +++ b/.github/workflows/ms.cognitiveservices.accounts.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.compute.availabilitysets.yml b/.github/workflows/ms.compute.availabilitysets.yml index 0b9698025f..4460c6e8f6 100644 --- a/.github/workflows/ms.compute.availabilitysets.yml +++ b/.github/workflows/ms.compute.availabilitysets.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.compute.diskencryptionsets.yml b/.github/workflows/ms.compute.diskencryptionsets.yml index 31eead08d7..c4d7e35753 100644 --- a/.github/workflows/ms.compute.diskencryptionsets.yml +++ b/.github/workflows/ms.compute.diskencryptionsets.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.compute.disks.yml b/.github/workflows/ms.compute.disks.yml index 8886882325..efde02e463 100644 --- a/.github/workflows/ms.compute.disks.yml +++ b/.github/workflows/ms.compute.disks.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.compute.galleries.yml b/.github/workflows/ms.compute.galleries.yml index f034f5cf05..f9d53a2988 100644 --- a/.github/workflows/ms.compute.galleries.yml +++ b/.github/workflows/ms.compute.galleries.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.compute.images.yml b/.github/workflows/ms.compute.images.yml index a35ee2849b..54b80a01e9 100644 --- a/.github/workflows/ms.compute.images.yml +++ b/.github/workflows/ms.compute.images.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.compute.proximityplacementgroups.yml b/.github/workflows/ms.compute.proximityplacementgroups.yml index e01a70466f..3a74eab881 100644 --- a/.github/workflows/ms.compute.proximityplacementgroups.yml +++ b/.github/workflows/ms.compute.proximityplacementgroups.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.compute.sshpublickeys.yml b/.github/workflows/ms.compute.sshpublickeys.yml index 1770092d59..3687e73949 100644 --- a/.github/workflows/ms.compute.sshpublickeys.yml +++ b/.github/workflows/ms.compute.sshpublickeys.yml @@ -73,7 +73,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.compute.virtualmachines.yml b/.github/workflows/ms.compute.virtualmachines.yml index d16eba725f..fce9e7f804 100644 --- a/.github/workflows/ms.compute.virtualmachines.yml +++ b/.github/workflows/ms.compute.virtualmachines.yml @@ -77,7 +77,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.compute.virtualmachinescalesets.yml b/.github/workflows/ms.compute.virtualmachinescalesets.yml index 23fa3f9fa4..b615e9641b 100644 --- a/.github/workflows/ms.compute.virtualmachinescalesets.yml +++ b/.github/workflows/ms.compute.virtualmachinescalesets.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.consumption.budgets.yml b/.github/workflows/ms.consumption.budgets.yml index ee6b921c30..b731b3289b 100644 --- a/.github/workflows/ms.consumption.budgets.yml +++ b/.github/workflows/ms.consumption.budgets.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.containerinstance.containergroups.yml b/.github/workflows/ms.containerinstance.containergroups.yml index 208a44159b..db8a34b286 100644 --- a/.github/workflows/ms.containerinstance.containergroups.yml +++ b/.github/workflows/ms.containerinstance.containergroups.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.containerregistry.registries.yml b/.github/workflows/ms.containerregistry.registries.yml index cbc1332eb4..c7deeaf57a 100644 --- a/.github/workflows/ms.containerregistry.registries.yml +++ b/.github/workflows/ms.containerregistry.registries.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.containerservice.managedclusters.yml b/.github/workflows/ms.containerservice.managedclusters.yml index a0e055ae55..9ee2da4a99 100644 --- a/.github/workflows/ms.containerservice.managedclusters.yml +++ b/.github/workflows/ms.containerservice.managedclusters.yml @@ -76,7 +76,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.databricks.accessconnectors.yml b/.github/workflows/ms.databricks.accessconnectors.yml index ad780e5652..846ec3422e 100644 --- a/.github/workflows/ms.databricks.accessconnectors.yml +++ b/.github/workflows/ms.databricks.accessconnectors.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.databricks.workspaces.yml b/.github/workflows/ms.databricks.workspaces.yml index d360980e3c..c2650a4471 100644 --- a/.github/workflows/ms.databricks.workspaces.yml +++ b/.github/workflows/ms.databricks.workspaces.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.datafactory.factories.yml b/.github/workflows/ms.datafactory.factories.yml index 94c0cac73d..8c9eb2adaa 100644 --- a/.github/workflows/ms.datafactory.factories.yml +++ b/.github/workflows/ms.datafactory.factories.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.dataprotection.backupvaults.yml b/.github/workflows/ms.dataprotection.backupvaults.yml index ce13d310b6..d3aa2b25f2 100644 --- a/.github/workflows/ms.dataprotection.backupvaults.yml +++ b/.github/workflows/ms.dataprotection.backupvaults.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.dbformysql.flexibleservers.yml b/.github/workflows/ms.dbformysql.flexibleservers.yml index 0cb62bff02..045a8ca5e8 100644 --- a/.github/workflows/ms.dbformysql.flexibleservers.yml +++ b/.github/workflows/ms.dbformysql.flexibleservers.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.dbforpostgresql.flexibleservers.yml b/.github/workflows/ms.dbforpostgresql.flexibleservers.yml index b59084a316..f7f8a84354 100644 --- a/.github/workflows/ms.dbforpostgresql.flexibleservers.yml +++ b/.github/workflows/ms.dbforpostgresql.flexibleservers.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.desktopvirtualization.applicationgroups.yml b/.github/workflows/ms.desktopvirtualization.applicationgroups.yml index 2c9cc1a70e..f802a18cca 100644 --- a/.github/workflows/ms.desktopvirtualization.applicationgroups.yml +++ b/.github/workflows/ms.desktopvirtualization.applicationgroups.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.desktopvirtualization.hostpools.yml b/.github/workflows/ms.desktopvirtualization.hostpools.yml index 3cf6f11e18..a9648518b6 100644 --- a/.github/workflows/ms.desktopvirtualization.hostpools.yml +++ b/.github/workflows/ms.desktopvirtualization.hostpools.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.desktopvirtualization.scalingplans.yml b/.github/workflows/ms.desktopvirtualization.scalingplans.yml index 7ba0757aad..cb931c5015 100644 --- a/.github/workflows/ms.desktopvirtualization.scalingplans.yml +++ b/.github/workflows/ms.desktopvirtualization.scalingplans.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.desktopvirtualization.workspaces.yml b/.github/workflows/ms.desktopvirtualization.workspaces.yml index 5012fea61c..1158d55d64 100644 --- a/.github/workflows/ms.desktopvirtualization.workspaces.yml +++ b/.github/workflows/ms.desktopvirtualization.workspaces.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.devtestlab.labs.yml b/.github/workflows/ms.devtestlab.labs.yml index f48acb8a24..67b2cc142c 100644 --- a/.github/workflows/ms.devtestlab.labs.yml +++ b/.github/workflows/ms.devtestlab.labs.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.digitaltwins.digitaltwinsinstances.yml b/.github/workflows/ms.digitaltwins.digitaltwinsinstances.yml index 72ad9a28da..31e9a45f37 100644 --- a/.github/workflows/ms.digitaltwins.digitaltwinsinstances.yml +++ b/.github/workflows/ms.digitaltwins.digitaltwinsinstances.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.documentdb.databaseaccounts.yml b/.github/workflows/ms.documentdb.databaseaccounts.yml index 3f6415e23d..f17979e77c 100644 --- a/.github/workflows/ms.documentdb.databaseaccounts.yml +++ b/.github/workflows/ms.documentdb.databaseaccounts.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.eventgrid.domains.yml b/.github/workflows/ms.eventgrid.domains.yml index 6b012ac4c7..0994d2adb0 100644 --- a/.github/workflows/ms.eventgrid.domains.yml +++ b/.github/workflows/ms.eventgrid.domains.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.eventgrid.systemtopics.yml b/.github/workflows/ms.eventgrid.systemtopics.yml index d8452a01a2..5e9d467ee5 100644 --- a/.github/workflows/ms.eventgrid.systemtopics.yml +++ b/.github/workflows/ms.eventgrid.systemtopics.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.eventgrid.topics.yml b/.github/workflows/ms.eventgrid.topics.yml index be47e23e9b..74dac0bd1a 100644 --- a/.github/workflows/ms.eventgrid.topics.yml +++ b/.github/workflows/ms.eventgrid.topics.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.eventhub.namespaces.yml b/.github/workflows/ms.eventhub.namespaces.yml index 500acee1d7..54943f5b25 100644 --- a/.github/workflows/ms.eventhub.namespaces.yml +++ b/.github/workflows/ms.eventhub.namespaces.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.healthbot.healthbots.yml b/.github/workflows/ms.healthbot.healthbots.yml index fa6c54c678..51a6791c2f 100644 --- a/.github/workflows/ms.healthbot.healthbots.yml +++ b/.github/workflows/ms.healthbot.healthbots.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.healthcareapis.workspaces.yml b/.github/workflows/ms.healthcareapis.workspaces.yml index 0b3969764a..90e66d6fba 100644 --- a/.github/workflows/ms.healthcareapis.workspaces.yml +++ b/.github/workflows/ms.healthcareapis.workspaces.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.insights.actiongroups.yml b/.github/workflows/ms.insights.actiongroups.yml index f2814c2e56..7c17fd6518 100644 --- a/.github/workflows/ms.insights.actiongroups.yml +++ b/.github/workflows/ms.insights.actiongroups.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.insights.activitylogalerts.yml b/.github/workflows/ms.insights.activitylogalerts.yml index c8aa492500..7152f01c15 100644 --- a/.github/workflows/ms.insights.activitylogalerts.yml +++ b/.github/workflows/ms.insights.activitylogalerts.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.insights.components.yml b/.github/workflows/ms.insights.components.yml index cc3c0f85a9..04dcb2bb39 100644 --- a/.github/workflows/ms.insights.components.yml +++ b/.github/workflows/ms.insights.components.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.insights.datacollectionendpoints.yml b/.github/workflows/ms.insights.datacollectionendpoints.yml index 2de10e3a23..aa7f89ae1a 100644 --- a/.github/workflows/ms.insights.datacollectionendpoints.yml +++ b/.github/workflows/ms.insights.datacollectionendpoints.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.insights.datacollectionrules.yml b/.github/workflows/ms.insights.datacollectionrules.yml index 09ea5bbbf7..bb0e39cf6c 100644 --- a/.github/workflows/ms.insights.datacollectionrules.yml +++ b/.github/workflows/ms.insights.datacollectionrules.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.insights.diagnosticsettings.yml b/.github/workflows/ms.insights.diagnosticsettings.yml index 1d71eb3bd9..39bfa87af2 100644 --- a/.github/workflows/ms.insights.diagnosticsettings.yml +++ b/.github/workflows/ms.insights.diagnosticsettings.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.insights.metricalerts.yml b/.github/workflows/ms.insights.metricalerts.yml index c332546fc1..9571677572 100644 --- a/.github/workflows/ms.insights.metricalerts.yml +++ b/.github/workflows/ms.insights.metricalerts.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.insights.privatelinkscopes.yml b/.github/workflows/ms.insights.privatelinkscopes.yml index 8c0e9359b9..a0589ccd31 100644 --- a/.github/workflows/ms.insights.privatelinkscopes.yml +++ b/.github/workflows/ms.insights.privatelinkscopes.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.insights.scheduledqueryrules.yml b/.github/workflows/ms.insights.scheduledqueryrules.yml index cfa8dc4674..b532a6d62e 100644 --- a/.github/workflows/ms.insights.scheduledqueryrules.yml +++ b/.github/workflows/ms.insights.scheduledqueryrules.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.insights.webtests.yml b/.github/workflows/ms.insights.webtests.yml index ed2e3169e5..a6da3e3e71 100644 --- a/.github/workflows/ms.insights.webtests.yml +++ b/.github/workflows/ms.insights.webtests.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.keyvault.vaults.yml b/.github/workflows/ms.keyvault.vaults.yml index 6a96bc55d4..203f45c2ef 100644 --- a/.github/workflows/ms.keyvault.vaults.yml +++ b/.github/workflows/ms.keyvault.vaults.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.kubernetesconfiguration.extensions.yml b/.github/workflows/ms.kubernetesconfiguration.extensions.yml index cf485391bf..38b005fe1c 100644 --- a/.github/workflows/ms.kubernetesconfiguration.extensions.yml +++ b/.github/workflows/ms.kubernetesconfiguration.extensions.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.kubernetesconfiguration.fluxconfigurations.yml b/.github/workflows/ms.kubernetesconfiguration.fluxconfigurations.yml index 3160eaf645..7474b1ee95 100644 --- a/.github/workflows/ms.kubernetesconfiguration.fluxconfigurations.yml +++ b/.github/workflows/ms.kubernetesconfiguration.fluxconfigurations.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.logic.workflows.yml b/.github/workflows/ms.logic.workflows.yml index 1e3dc14f10..8256c00c52 100644 --- a/.github/workflows/ms.logic.workflows.yml +++ b/.github/workflows/ms.logic.workflows.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.machinelearningservices.workspaces.yml b/.github/workflows/ms.machinelearningservices.workspaces.yml index 08d42df4cc..ff44758b40 100644 --- a/.github/workflows/ms.machinelearningservices.workspaces.yml +++ b/.github/workflows/ms.machinelearningservices.workspaces.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.maintenance.maintenanceconfigurations.yml b/.github/workflows/ms.maintenance.maintenanceconfigurations.yml index d5f79b9c24..be1a339161 100644 --- a/.github/workflows/ms.maintenance.maintenanceconfigurations.yml +++ b/.github/workflows/ms.maintenance.maintenanceconfigurations.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.managedidentity.userassignedidentities.yml b/.github/workflows/ms.managedidentity.userassignedidentities.yml index 864c1a0482..2e2a67f9d4 100644 --- a/.github/workflows/ms.managedidentity.userassignedidentities.yml +++ b/.github/workflows/ms.managedidentity.userassignedidentities.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.managedservices.registrationdefinitions.yml b/.github/workflows/ms.managedservices.registrationdefinitions.yml index 715b464d77..6abd0d22c1 100644 --- a/.github/workflows/ms.managedservices.registrationdefinitions.yml +++ b/.github/workflows/ms.managedservices.registrationdefinitions.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.management.managementgroups.yml b/.github/workflows/ms.management.managementgroups.yml index f184dac1c2..6839f970f7 100644 --- a/.github/workflows/ms.management.managementgroups.yml +++ b/.github/workflows/ms.management.managementgroups.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.netapp.netappaccounts.yml b/.github/workflows/ms.netapp.netappaccounts.yml index aa8b6895dd..b762db6484 100644 --- a/.github/workflows/ms.netapp.netappaccounts.yml +++ b/.github/workflows/ms.netapp.netappaccounts.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.applicationgateways.yml b/.github/workflows/ms.network.applicationgateways.yml index 2105a439be..351e2769fb 100644 --- a/.github/workflows/ms.network.applicationgateways.yml +++ b/.github/workflows/ms.network.applicationgateways.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.applicationgatewaywebapplicationfirewallpolicies.yml b/.github/workflows/ms.network.applicationgatewaywebapplicationfirewallpolicies.yml index 0dd86b627e..506a2d30c8 100644 --- a/.github/workflows/ms.network.applicationgatewaywebapplicationfirewallpolicies.yml +++ b/.github/workflows/ms.network.applicationgatewaywebapplicationfirewallpolicies.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.applicationsecuritygroups.yml b/.github/workflows/ms.network.applicationsecuritygroups.yml index 08235a8afa..6cd9906acc 100644 --- a/.github/workflows/ms.network.applicationsecuritygroups.yml +++ b/.github/workflows/ms.network.applicationsecuritygroups.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.azurefirewalls.yml b/.github/workflows/ms.network.azurefirewalls.yml index 9d4deaa724..72c0059342 100644 --- a/.github/workflows/ms.network.azurefirewalls.yml +++ b/.github/workflows/ms.network.azurefirewalls.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.bastionhosts.yml b/.github/workflows/ms.network.bastionhosts.yml index e644f9c1fa..26182061c2 100644 --- a/.github/workflows/ms.network.bastionhosts.yml +++ b/.github/workflows/ms.network.bastionhosts.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.connections.yml b/.github/workflows/ms.network.connections.yml index 5e366a9096..0c688725e3 100644 --- a/.github/workflows/ms.network.connections.yml +++ b/.github/workflows/ms.network.connections.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.ddosprotectionplans.yml b/.github/workflows/ms.network.ddosprotectionplans.yml index a7868e8f40..6769bcc407 100644 --- a/.github/workflows/ms.network.ddosprotectionplans.yml +++ b/.github/workflows/ms.network.ddosprotectionplans.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.dnsforwardingrulesets.yml b/.github/workflows/ms.network.dnsforwardingrulesets.yml index 40395e7631..75e8800cd2 100644 --- a/.github/workflows/ms.network.dnsforwardingrulesets.yml +++ b/.github/workflows/ms.network.dnsforwardingrulesets.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.dnsresolvers.yml b/.github/workflows/ms.network.dnsresolvers.yml index 711c4c76d4..6073602274 100644 --- a/.github/workflows/ms.network.dnsresolvers.yml +++ b/.github/workflows/ms.network.dnsresolvers.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.dnszones.yml b/.github/workflows/ms.network.dnszones.yml index ea2fc02423..0f86a57d08 100644 --- a/.github/workflows/ms.network.dnszones.yml +++ b/.github/workflows/ms.network.dnszones.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.expressroutecircuits.yml b/.github/workflows/ms.network.expressroutecircuits.yml index 258515f4b9..6245494b18 100644 --- a/.github/workflows/ms.network.expressroutecircuits.yml +++ b/.github/workflows/ms.network.expressroutecircuits.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.expressroutegateways.yml b/.github/workflows/ms.network.expressroutegateways.yml index e72b4420a9..5e79b638ad 100644 --- a/.github/workflows/ms.network.expressroutegateways.yml +++ b/.github/workflows/ms.network.expressroutegateways.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.firewallpolicies.yml b/.github/workflows/ms.network.firewallpolicies.yml index 2cc70153c1..c9f4e2e263 100644 --- a/.github/workflows/ms.network.firewallpolicies.yml +++ b/.github/workflows/ms.network.firewallpolicies.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.frontdoors.yml b/.github/workflows/ms.network.frontdoors.yml index 5e54c107d3..e64e37e7b8 100644 --- a/.github/workflows/ms.network.frontdoors.yml +++ b/.github/workflows/ms.network.frontdoors.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.frontdoorwebapplicationfirewallpolicies.yml b/.github/workflows/ms.network.frontdoorwebapplicationfirewallpolicies.yml index 8876482578..fd5f20d2ac 100644 --- a/.github/workflows/ms.network.frontdoorwebapplicationfirewallpolicies.yml +++ b/.github/workflows/ms.network.frontdoorwebapplicationfirewallpolicies.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.ipgroups.yml b/.github/workflows/ms.network.ipgroups.yml index 0788d5f6a2..101c93931d 100644 --- a/.github/workflows/ms.network.ipgroups.yml +++ b/.github/workflows/ms.network.ipgroups.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.loadbalancers.yml b/.github/workflows/ms.network.loadbalancers.yml index 5f67a58f96..7a79054167 100644 --- a/.github/workflows/ms.network.loadbalancers.yml +++ b/.github/workflows/ms.network.loadbalancers.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.localnetworkgateways.yml b/.github/workflows/ms.network.localnetworkgateways.yml index 4f0709b720..7dfb0429ec 100644 --- a/.github/workflows/ms.network.localnetworkgateways.yml +++ b/.github/workflows/ms.network.localnetworkgateways.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.natgateways.yml b/.github/workflows/ms.network.natgateways.yml index 0382215aba..8921747ba0 100644 --- a/.github/workflows/ms.network.natgateways.yml +++ b/.github/workflows/ms.network.natgateways.yml @@ -76,7 +76,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.networkinterfaces.yml b/.github/workflows/ms.network.networkinterfaces.yml index fea6858bf0..7caa2f2b79 100644 --- a/.github/workflows/ms.network.networkinterfaces.yml +++ b/.github/workflows/ms.network.networkinterfaces.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.networkmanagers.yml b/.github/workflows/ms.network.networkmanagers.yml index d8fe0f7a08..73b9a6a0dc 100644 --- a/.github/workflows/ms.network.networkmanagers.yml +++ b/.github/workflows/ms.network.networkmanagers.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.networksecuritygroups.yml b/.github/workflows/ms.network.networksecuritygroups.yml index 9f390a6a54..13a4ea488b 100644 --- a/.github/workflows/ms.network.networksecuritygroups.yml +++ b/.github/workflows/ms.network.networksecuritygroups.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.networkwatchers.yml b/.github/workflows/ms.network.networkwatchers.yml index e1091457a7..cbccdcc377 100644 --- a/.github/workflows/ms.network.networkwatchers.yml +++ b/.github/workflows/ms.network.networkwatchers.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.privatednszones.yml b/.github/workflows/ms.network.privatednszones.yml index c8b3e1a097..ed46652e16 100644 --- a/.github/workflows/ms.network.privatednszones.yml +++ b/.github/workflows/ms.network.privatednszones.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.privateendpoints.yml b/.github/workflows/ms.network.privateendpoints.yml index 54a6840377..81e7dbe824 100644 --- a/.github/workflows/ms.network.privateendpoints.yml +++ b/.github/workflows/ms.network.privateendpoints.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.privatelinkservices.yml b/.github/workflows/ms.network.privatelinkservices.yml index cb2c0f4dec..449665bed2 100644 --- a/.github/workflows/ms.network.privatelinkservices.yml +++ b/.github/workflows/ms.network.privatelinkservices.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.publicipaddresses.yml b/.github/workflows/ms.network.publicipaddresses.yml index 1c555c4f15..36bb06dc09 100644 --- a/.github/workflows/ms.network.publicipaddresses.yml +++ b/.github/workflows/ms.network.publicipaddresses.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.publicipprefixes.yml b/.github/workflows/ms.network.publicipprefixes.yml index 91efcfb38c..0b4bb80ab0 100644 --- a/.github/workflows/ms.network.publicipprefixes.yml +++ b/.github/workflows/ms.network.publicipprefixes.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.routetables.yml b/.github/workflows/ms.network.routetables.yml index cab84ca07a..d9a19de1b8 100644 --- a/.github/workflows/ms.network.routetables.yml +++ b/.github/workflows/ms.network.routetables.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.serviceendpointpolicies.yml b/.github/workflows/ms.network.serviceendpointpolicies.yml index dc8a9ddb6a..91b9d0b3e8 100644 --- a/.github/workflows/ms.network.serviceendpointpolicies.yml +++ b/.github/workflows/ms.network.serviceendpointpolicies.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.trafficmanagerprofiles.yml b/.github/workflows/ms.network.trafficmanagerprofiles.yml index e83b90cca5..f5a2828349 100644 --- a/.github/workflows/ms.network.trafficmanagerprofiles.yml +++ b/.github/workflows/ms.network.trafficmanagerprofiles.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.virtualhubs.yml b/.github/workflows/ms.network.virtualhubs.yml index 9cffd9fe67..1fde462f3e 100644 --- a/.github/workflows/ms.network.virtualhubs.yml +++ b/.github/workflows/ms.network.virtualhubs.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.virtualnetworkgateways.yml b/.github/workflows/ms.network.virtualnetworkgateways.yml index 87dc099ae6..65b618972b 100644 --- a/.github/workflows/ms.network.virtualnetworkgateways.yml +++ b/.github/workflows/ms.network.virtualnetworkgateways.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.virtualnetworks.yml b/.github/workflows/ms.network.virtualnetworks.yml index 04722f8d3e..d1496dd677 100644 --- a/.github/workflows/ms.network.virtualnetworks.yml +++ b/.github/workflows/ms.network.virtualnetworks.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.virtualwans.yml b/.github/workflows/ms.network.virtualwans.yml index 11e4dfa12d..9063fa6729 100644 --- a/.github/workflows/ms.network.virtualwans.yml +++ b/.github/workflows/ms.network.virtualwans.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.vpngateways.yml b/.github/workflows/ms.network.vpngateways.yml index d343b869a9..8402965380 100644 --- a/.github/workflows/ms.network.vpngateways.yml +++ b/.github/workflows/ms.network.vpngateways.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.network.vpnsites.yml b/.github/workflows/ms.network.vpnsites.yml index c35e081df3..0b52aeccd3 100644 --- a/.github/workflows/ms.network.vpnsites.yml +++ b/.github/workflows/ms.network.vpnsites.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.operationalinsights.workspaces.yml b/.github/workflows/ms.operationalinsights.workspaces.yml index 6e40e26112..f712ce8fe4 100644 --- a/.github/workflows/ms.operationalinsights.workspaces.yml +++ b/.github/workflows/ms.operationalinsights.workspaces.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.operationsmanagement.solutions.yml b/.github/workflows/ms.operationsmanagement.solutions.yml index 9b5b3353fa..5d13141169 100644 --- a/.github/workflows/ms.operationsmanagement.solutions.yml +++ b/.github/workflows/ms.operationsmanagement.solutions.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.policyinsights.remediations.yml b/.github/workflows/ms.policyinsights.remediations.yml index 5ddcbfbffe..46e7b15273 100644 --- a/.github/workflows/ms.policyinsights.remediations.yml +++ b/.github/workflows/ms.policyinsights.remediations.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.powerbidedicated.capacities.yml b/.github/workflows/ms.powerbidedicated.capacities.yml index f42c8e359d..54a124bde0 100644 --- a/.github/workflows/ms.powerbidedicated.capacities.yml +++ b/.github/workflows/ms.powerbidedicated.capacities.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.purview.accounts.yml b/.github/workflows/ms.purview.accounts.yml index b89b770bd9..0b07bde874 100644 --- a/.github/workflows/ms.purview.accounts.yml +++ b/.github/workflows/ms.purview.accounts.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.recoveryservices.vaults.yml b/.github/workflows/ms.recoveryservices.vaults.yml index 7e7df79b3c..48153fea2e 100644 --- a/.github/workflows/ms.recoveryservices.vaults.yml +++ b/.github/workflows/ms.recoveryservices.vaults.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.relay.namespaces.yml b/.github/workflows/ms.relay.namespaces.yml index 8dad944808..18863f5ae1 100644 --- a/.github/workflows/ms.relay.namespaces.yml +++ b/.github/workflows/ms.relay.namespaces.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.resourcegraph.queries.yml b/.github/workflows/ms.resourcegraph.queries.yml index f7780c6261..0d0176530e 100644 --- a/.github/workflows/ms.resourcegraph.queries.yml +++ b/.github/workflows/ms.resourcegraph.queries.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.resources.deploymentscripts.yml b/.github/workflows/ms.resources.deploymentscripts.yml index 6a4b57092f..b9341bcdaf 100644 --- a/.github/workflows/ms.resources.deploymentscripts.yml +++ b/.github/workflows/ms.resources.deploymentscripts.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.resources.resourcegroups.yml b/.github/workflows/ms.resources.resourcegroups.yml index 9b0ce16696..25717d6dfd 100644 --- a/.github/workflows/ms.resources.resourcegroups.yml +++ b/.github/workflows/ms.resources.resourcegroups.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.resources.tags.yml b/.github/workflows/ms.resources.tags.yml index 2b615b1863..61c1f9fe09 100644 --- a/.github/workflows/ms.resources.tags.yml +++ b/.github/workflows/ms.resources.tags.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.search.searchservices.yml b/.github/workflows/ms.search.searchservices.yml index f33164a882..f945dfa88a 100644 --- a/.github/workflows/ms.search.searchservices.yml +++ b/.github/workflows/ms.search.searchservices.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.security.azuresecuritycenter.yml b/.github/workflows/ms.security.azuresecuritycenter.yml index 9d8c963773..b18ce4e5bd 100644 --- a/.github/workflows/ms.security.azuresecuritycenter.yml +++ b/.github/workflows/ms.security.azuresecuritycenter.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.servicebus.namespaces.yml b/.github/workflows/ms.servicebus.namespaces.yml index 4df737988a..8984b60a74 100644 --- a/.github/workflows/ms.servicebus.namespaces.yml +++ b/.github/workflows/ms.servicebus.namespaces.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.servicefabric.clusters.yml b/.github/workflows/ms.servicefabric.clusters.yml index 1ca5dbc62e..9f57a3327c 100644 --- a/.github/workflows/ms.servicefabric.clusters.yml +++ b/.github/workflows/ms.servicefabric.clusters.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.signalrservice.signalr.yml b/.github/workflows/ms.signalrservice.signalr.yml index 76eb7d12f5..6dfd823925 100644 --- a/.github/workflows/ms.signalrservice.signalr.yml +++ b/.github/workflows/ms.signalrservice.signalr.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.signalrservice.webpubsub.yml b/.github/workflows/ms.signalrservice.webpubsub.yml index dda3c56894..460c1be832 100644 --- a/.github/workflows/ms.signalrservice.webpubsub.yml +++ b/.github/workflows/ms.signalrservice.webpubsub.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.sql.managedinstances.yml b/.github/workflows/ms.sql.managedinstances.yml index e30c3ec830..c4e5a6d327 100644 --- a/.github/workflows/ms.sql.managedinstances.yml +++ b/.github/workflows/ms.sql.managedinstances.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.sql.servers.yml b/.github/workflows/ms.sql.servers.yml index e26ec8a93f..b2a41e7018 100644 --- a/.github/workflows/ms.sql.servers.yml +++ b/.github/workflows/ms.sql.servers.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.storage.storageaccounts.yml b/.github/workflows/ms.storage.storageaccounts.yml index ea9df8e193..5ef2db3c3d 100644 --- a/.github/workflows/ms.storage.storageaccounts.yml +++ b/.github/workflows/ms.storage.storageaccounts.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.synapse.privatelinkhubs.yml b/.github/workflows/ms.synapse.privatelinkhubs.yml index 840dea1d07..db61860c53 100644 --- a/.github/workflows/ms.synapse.privatelinkhubs.yml +++ b/.github/workflows/ms.synapse.privatelinkhubs.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.synapse.workspaces.yml b/.github/workflows/ms.synapse.workspaces.yml index 7ff6b90515..5321736606 100644 --- a/.github/workflows/ms.synapse.workspaces.yml +++ b/.github/workflows/ms.synapse.workspaces.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.virtualmachineimages.imagetemplates.yml b/.github/workflows/ms.virtualmachineimages.imagetemplates.yml index c2f274aef5..4bc1ba3d9e 100644 --- a/.github/workflows/ms.virtualmachineimages.imagetemplates.yml +++ b/.github/workflows/ms.virtualmachineimages.imagetemplates.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.web.connections.yml b/.github/workflows/ms.web.connections.yml index 29b4c78fa1..57e841b8c4 100644 --- a/.github/workflows/ms.web.connections.yml +++ b/.github/workflows/ms.web.connections.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.web.hostingenvironments.yml b/.github/workflows/ms.web.hostingenvironments.yml index 3e3530af6b..ecb59cbbbe 100644 --- a/.github/workflows/ms.web.hostingenvironments.yml +++ b/.github/workflows/ms.web.hostingenvironments.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.web.serverfarms.yml b/.github/workflows/ms.web.serverfarms.yml index 5649b14dd3..3be3fa3788 100644 --- a/.github/workflows/ms.web.serverfarms.yml +++ b/.github/workflows/ms.web.serverfarms.yml @@ -74,7 +74,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.web.sites.yml b/.github/workflows/ms.web.sites.yml index 837dc44448..2c2a12108e 100644 --- a/.github/workflows/ms.web.sites.yml +++ b/.github/workflows/ms.web.sites.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml diff --git a/.github/workflows/ms.web.staticsites.yml b/.github/workflows/ms.web.staticsites.yml index 39c41bbbc0..7a32cca5ab 100644 --- a/.github/workflows/ms.web.staticsites.yml +++ b/.github/workflows/ms.web.staticsites.yml @@ -75,7 +75,7 @@ jobs: # Call reusable workflow # ############################## call-workflow-passing-data: - name: 'Module' + name: 'Run' needs: - job_initialize_pipeline uses: ./.github/workflows/template.module.yml From c90aa06e70e9069f154f277aecdcdd396a7b2cc5 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 12:45:30 +0100 Subject: [PATCH 12/41] Update to latest --- .../jobs.getModuleTestFiles.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml index 0a0722245f..2bbb2d8187 100644 --- a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml +++ b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml @@ -26,6 +26,12 @@ jobs: targetType: inline pwsh: true script: | + // ======= // + // All // + // ======= // + + Write-Output '::group::Get all test files' + # Get the list of parameter file paths $moduleFolderPath = Join-Path '$(System.DefaultWorkingDirectory)' '${{ parameters.modulePath }}' @@ -49,18 +55,22 @@ jobs: if($deployCompressedOutput -notmatch "\[.*\]") { $deployCompressedOutput = "[$deployCompressedOutput]" } + Write-Verbose "Publishing output: $deployCompressedOutput" -Verbose Write-Host ('##vso[task.setVariable variable=moduleTestFilePaths;isOutput=true]{0}' -f $deployCompressedOutput) Write-Output '::endgroup::' + // =========== // + // PS-Rule // + // =========== // + Write-Output '::group::Get PSRule test files' $psRuleTestFilePaths = $testFilePaths | Where-Object { $_ -match '${{ parameters.psRuleFilterRegex }}' } Write-Verbose 'Found PSRule module test files' -Verbose $psRuleTestFilePaths | ForEach-Object { Write-Verbose "- [$_]" -Verbose } - # Output values to be accessed by next jobs $psRuleCompressedOutput = $psRuleTestFilePaths | ForEach-Object { @{ path = $_ @@ -68,8 +78,12 @@ jobs: } } | ConvertTo-Json -Compress + # Output values to be accessed by next jobs if($psRuleCompressedOutput -notmatch "\[.*\]") { $psRuleCompressedOutput = "[$psRuleCompressedOutput]" } - Write-Verbose "Publishing output: $psRuleCompressedOutput" -Verbose + Write-Host ('##vso[task.setVariable variable=psRuleModuleTestFilePaths;isOutput=true]{0}' -f $psRuleCompressedOutput) + Write-Verbose "PS Rule publishing output: $psRuleCompressedOutput" -Verbose + + Write-Output '::endgroup::' From 2d5cae574772032bf4def0d90069b76a5f9c821e Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 12:51:01 +0100 Subject: [PATCH 13/41] Update to latest --- .../pipelineTemplates/jobs.getModuleTestFiles.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml index 2bbb2d8187..081d986e57 100644 --- a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml +++ b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml @@ -26,9 +26,9 @@ jobs: targetType: inline pwsh: true script: | - // ======= // - // All // - // ======= // + ## ======= ## + ## All ## + ## ======= ## Write-Output '::group::Get all test files' @@ -61,9 +61,9 @@ jobs: Write-Output '::endgroup::' - // =========== // - // PS-Rule // - // =========== // + ## =========== ## + ## PS-Rule ## + ## =========== ## Write-Output '::group::Get PSRule test files' $psRuleTestFilePaths = $testFilePaths | Where-Object { $_ -match '${{ parameters.psRuleFilterRegex }}' } From 5dfbab59793d6e5378e2a63731c58198b7e7bba0 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 16:32:41 +0100 Subject: [PATCH 14/41] Update to latest --- .../pipelineTemplates/jobs.getModuleTestFiles.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml index 081d986e57..4d1fa52e50 100644 --- a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml +++ b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml @@ -52,9 +52,9 @@ jobs: } | ConvertTo-Json -Compress # Output values to be accessed by next jobs - if($deployCompressedOutput -notmatch "\[.*\]") { - $deployCompressedOutput = "[$deployCompressedOutput]" - } + # if($deployCompressedOutput -notmatch "\[.*\]") { + # $deployCompressedOutput = "[$deployCompressedOutput]" + # } Write-Verbose "Publishing output: $deployCompressedOutput" -Verbose Write-Host ('##vso[task.setVariable variable=moduleTestFilePaths;isOutput=true]{0}' -f $deployCompressedOutput) @@ -79,9 +79,9 @@ jobs: } | ConvertTo-Json -Compress # Output values to be accessed by next jobs - if($psRuleCompressedOutput -notmatch "\[.*\]") { - $psRuleCompressedOutput = "[$psRuleCompressedOutput]" - } + # if($psRuleCompressedOutput -notmatch "\[.*\]") { + # $psRuleCompressedOutput = "[$psRuleCompressedOutput]" + # } Write-Host ('##vso[task.setVariable variable=psRuleModuleTestFilePaths;isOutput=true]{0}' -f $psRuleCompressedOutput) Write-Verbose "PS Rule publishing output: $psRuleCompressedOutput" -Verbose From 4742bfa953bb0c4c79c40be610e6385c2b65399a Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 16:41:12 +0100 Subject: [PATCH 15/41] Update to latest --- .../jobs.getModuleTestFiles.yml | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml index 4d1fa52e50..523af466c1 100644 --- a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml +++ b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml @@ -20,7 +20,7 @@ jobs: name: ${{ parameters.poolName }} steps: - task: PowerShell@2 - displayName: 'Get parameter files' + displayName: 'Get module test file paths' name: getModuleTestFilesTask inputs: targetType: inline @@ -43,13 +43,15 @@ jobs: Write-Verbose 'Found all module test files' -Verbose $testFilePaths | ForEach-Object { Write-Verbose "- [$_]" -Verbose } - # Output values to be accessed by next jobs - $deployCompressedOutput = $testFilePaths | ForEach-Object { - @{ + $testTable = @{} + $testFilePaths | ForEach-Object { + $testFileName = Split-Path (Split-Path $_) -Leaf + $testTable[$testFileName] = @{ path = $_ - name = Split-Path (Split-Path $_) -Leaf + name = $testFileName } } | ConvertTo-Json -Compress + $deployCompressedOutput = $testTable | ConvertTo-Json -Compress # Output values to be accessed by next jobs # if($deployCompressedOutput -notmatch "\[.*\]") { @@ -71,12 +73,15 @@ jobs: Write-Verbose 'Found PSRule module test files' -Verbose $psRuleTestFilePaths | ForEach-Object { Write-Verbose "- [$_]" -Verbose } - $psRuleCompressedOutput = $psRuleTestFilePaths | ForEach-Object { - @{ + $psRuleTestTable = @{} + $psRuleTestFilePaths | ForEach-Object { + $testFileName = Split-Path (Split-Path $_) -Leaf + $psRuleTestTable[$testFileName] = @{ path = $_ - name = Split-Path (Split-Path $_) -Leaf + name = $testFileName } - } | ConvertTo-Json -Compress + } + $psRuleCompressedOutput = $psRuleTestTable | ConvertTo-Json -Compress # Output values to be accessed by next jobs # if($psRuleCompressedOutput -notmatch "\[.*\]") { From 6176c433cf5fddbfa6024b208f506387b4f7136a Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 16:57:37 +0100 Subject: [PATCH 16/41] Changed pwsh --- .../pipelineTemplates/jobs.getModuleTestFiles.yml | 10 ---------- .../jobs.validateModuleDeployment.yml | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml index 523af466c1..0daa1e8855 100644 --- a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml +++ b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml @@ -53,11 +53,6 @@ jobs: } | ConvertTo-Json -Compress $deployCompressedOutput = $testTable | ConvertTo-Json -Compress - # Output values to be accessed by next jobs - # if($deployCompressedOutput -notmatch "\[.*\]") { - # $deployCompressedOutput = "[$deployCompressedOutput]" - # } - Write-Verbose "Publishing output: $deployCompressedOutput" -Verbose Write-Host ('##vso[task.setVariable variable=moduleTestFilePaths;isOutput=true]{0}' -f $deployCompressedOutput) @@ -83,11 +78,6 @@ jobs: } $psRuleCompressedOutput = $psRuleTestTable | ConvertTo-Json -Compress - # Output values to be accessed by next jobs - # if($psRuleCompressedOutput -notmatch "\[.*\]") { - # $psRuleCompressedOutput = "[$psRuleCompressedOutput]" - # } - Write-Host ('##vso[task.setVariable variable=psRuleModuleTestFilePaths;isOutput=true]{0}' -f $psRuleCompressedOutput) Write-Verbose "PS Rule publishing output: $psRuleCompressedOutput" -Verbose diff --git a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml index f685a2d792..dcca67ce3f 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml @@ -87,7 +87,7 @@ jobs: displayName: 'Setup agent for deployment' inputs: targetType: inline - pwsh: true + # pwsh: true script: | # Load used functions . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Set-EnvironmentOnAgent.ps1') From 49dd490955c730112afd5a85463b63334015eccf Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 17:04:39 +0100 Subject: [PATCH 17/41] Update to latest --- .../pipelineTemplates/jobs.validateModuleDeployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml index dcca67ce3f..f685a2d792 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml @@ -87,7 +87,7 @@ jobs: displayName: 'Setup agent for deployment' inputs: targetType: inline - # pwsh: true + pwsh: true script: | # Load used functions . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Set-EnvironmentOnAgent.ps1') From bda4dfc1c58683ea149e83a932959426ca7e09b9 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 17:23:35 +0100 Subject: [PATCH 18/41] Update to latest --- .../jobs.validateModulePSRule.yml | 151 ++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100644 .azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml diff --git a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml new file mode 100644 index 0000000000..c5a63fe7c2 --- /dev/null +++ b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml @@ -0,0 +1,151 @@ +######################################################### +## 'Validate module with Pester' Pipeline Template ## +######################################################### +## +## This pipeline template contains the logic to validate a module using a set of Pester tests +## +## Enabled levels of validation +## - Resource-Group-Level +## - Subscription-Level +## - Management-Group-Level +## - Tenant-Level +## +######################################################### +## +##---------------------------------------------## +## TEMPLATE PARAMETERS ## +##---------------------------------------------## +## +## By default it uses the variables specified in the below [parameters] section. However, you can overwrite these variables in the +## referencing pipeline by providing the parameter explicitly. +## +## NOTE: If you don't need to overwrite a shared value, you can IGNORE this section +## +## |========================================================================================================================================================================================================================================================================| +## | Parameter | Default Value | Description | Example | +## |---------------------------------|---------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------| +## | serviceConnection | '$(serviceConnection)' | The service connection that connects to Azure | 'demo-internal' | +## | poolName | '$(poolName)' | You can provide either a [poolname] or [vmImage] to run the job on | 'Custom Deployment Pool' | +## | vmImage | '$(vmImage)' | You can provide either a [poolname] or [vmImage] to run the job on | 'ubuntu20.04' | +## | defaultJobTimeoutInMinutes | 120 | The timeout for the job in this pipeline | 120 | +## | modulePath | '$(modulePath)' | The path to the module to deploy. | 'c:/KeyVault' | +## | moduleTestFilePath | 'utilities/pipelines/staticValidation/module.tests.ps1' | The path to the module Pester tests. | 'utilities/pipelines/staticValidation/module.tests.ps1' | +## | location | '$(location)' | The location to validate with | 'France Central' | +## | subscriptionId | '$(ARM_SUBSCRIPTION_ID)' | The id of the subscription to validate with when using a Management group service connection | 'aed7c000-6387-412e-bed0-24dfddf4bbc6' | +## | managementGroupId | '$(ARM_MGMTGROUP_ID)' | The id of the management group to validate with. Required only for Management-Group-Level validations | '477c9620-cb01-454f-9ebc-fc6b1df48c14' | +## | parametersRepository | '$(Build.Repository.Name)' | The respository with the parameter files. Defaults to the triggering repository | 'Solutions' | +## | modulesRepository | '$(modulesRepository)' | The respository with the modules. | 'Components' | +## | azurePowerShellVersion | '$(azurePowerShellVersion)' | Used for configuring the Azure PowerShellModules Version, one of the example values. | 'latestVersion' or 'OtherVersion' | +## | preferredAzurePowerShellVersion | '$(preferredAzurePowerShellVersion)' | Used for configuring the Azure PowerShellModules Version, either an empty string or the specific version. | '4.4.0' | +## |========================================================================================================================================================================================================================================================================| +## +##---------------------------------------------## + +parameters: + # Pipeline-related parameters + poolName: '$(poolName)' + vmImage: '$(vmImage)' + defaultJobTimeoutInMinutes: 120 + # Logic-related parameters + modulePath: '$(modulePath)' + moduleTestFilePath: 'utilities/pipelines/staticValidation/module.tests.ps1' + parametersRepository: '$(Build.Repository.Name)' + location: '$(location)' + subscriptionId: '$(ARM_SUBSCRIPTION_ID)' + managementGroupId: '$(ARM_MGMTGROUP_ID)' + modulesRepository: '$(modulesRepository)' + +##---------------------------------------------## +## TEMPLATE LOGIC ## +##---------------------------------------------## +jobs: + - template: /.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml + - job: + displayName: Run PSRule tests + timeoutInMinutes: ${{ parameters.defaultJobTimeoutInMinutes }} + pool: + ${{ if ne(parameters.vmImage, '') }}: + vmImage: ${{ parameters.vmImage }} + ${{ if ne(parameters.poolName, '') }}: + name: ${{ parameters.poolName }} + dependsOn: + - getModuleTestFiles + strategy: + matrix: $[ dependencies.getModuleTestFiles.outputs['getModuleTestFilesTask.psRuleModuleTestFilePaths'] ] + steps: + # [Agent] Replace tokens + #----------------------- + - task: AzurePowerShell@5 + displayName: 'Replace tokens in template file via connection [${{ parameters.serviceConnection }}]' + inputs: + azureSubscription: ${{ parameters.serviceConnection }} + azurePowerShellVersion: 'latestVersion' + preferredAzurePowerShellVersion: '' + ScriptType: InlineScript + pwsh: true + inline: | + # Load used functions + . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'tokensReplacement' 'Convert-TokensInFileList.ps1') + . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Get-LocallyReferencedFileList.ps1') + + # Get target files + $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' + + # Get target files + $targetFileList = @( + $moduleTestFilePath + ) + + # Add all module template files as they may contain tokens + $targetFileList += (Get-LocallyReferencedFileList -FilePath $moduleTestFilePath) + $targetFileList = $targetFileList | Sort-Object -Unique + + # Construct Token Function Input + $ConvertTokensInputs = @{ + FilePathList = $targetFileList + Tokens = @{} + TokenPrefix = '$(tokenPrefix)' + TokenSuffix = '$(tokenSuffix)' + } + + # Add enforced tokens + $ConvertTokensInputs.Tokens += @{ + subscriptionId = '${{ parameters.subscriptionId }}' + managementGroupId = '${{ parameters.managementGroupId }}' + tenantId = '$(ARM_TENANT_ID)' + } + + # Add local (source control) tokens + $tokenMap = @{} + foreach ($token in (Get-ChildItem env: | Where-Object -Property Name -Like "localToken_*")) { + $tokenMap += @{ $token.Name.Replace('localToken_','','OrdinalIgnoreCase') = $token.value } + } + Write-Verbose ('Using local tokens [{0}]' -f ($tokenMap.Keys -join ', ')) -Verbose + $ConvertTokensInputs.Tokens += $tokenMap + + # Swap 'namePrefix' token if empty and provided as a Azure DevOps variable + if([String]::IsNullOrEmpty($ConvertTokensInputs.Tokens['namePrefix'])){ + Write-Verbose 'Using [namePrefix] token from Azure DevOps Variable Groups' -Verbose + $ConvertTokensInputs.Tokens['namePrefix'] = "$(TOKEN_NAMEPREFIX)" + } + + # Add custom tokens (passed in via the pipeline) + if(-not [String]::IsNullOrEmpty('${{ parameters.customTokens }}')) { + $customTokens = '${{ parameters.customTokens }}' | ConvertFrom-Json -AsHashTable + Write-Verbose ('Using custom parameter file tokens [{0}]' -f ($customTokens.Keys -join ', ')) -Verbose + $ConvertTokensInputs.Tokens += $customTokens + } + + Write-Verbose "Convert Tokens Input:`n $($ConvertTokensInputs | ConvertTo-Json -Depth 10)" -Verbose + + # Invoke Token Replacement Functionality [For Module] + $null = Convert-TokensInFileList @ConvertTokensInputs + - task: ps-rule-assert@2 + displayName: Analyze Azure template files + inputs: + inputType: inputPath + modules: 'PSRule.Rules.Azure' + inputPath: '$(System.DefaultWorkingDirectory)/$(modulePath)/$(moduleTestFilePath)' + outputFormat: Csv + outputPath: '$(System.DefaultWorkingDirectory)/$(modulePath)/$(moduleTestFilePath)-PSRule-output.csv' + continueOnError: true From c9bfa8d2c3706f2a388bd8f5550fbe8c9932b680 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 17:32:10 +0100 Subject: [PATCH 19/41] Tried alternative path ref --- .../pipelineTemplates/jobs.validateModuleDeployment.yml | 2 +- .azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml index f685a2d792..2c47857b2a 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml @@ -132,7 +132,7 @@ jobs: # Get target files - $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' + $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(path)' # Get target files $targetFileList = @( diff --git a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml index c5a63fe7c2..73bdc9e9ee 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml @@ -89,7 +89,7 @@ jobs: . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Get-LocallyReferencedFileList.ps1') # Get target files - $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' + $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(path)' # Get target files $targetFileList = @( From d29e786857cc559d5d729cfa97f7985f9c55389c Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 17:35:51 +0100 Subject: [PATCH 20/41] Added PS Rule ref --- .azuredevops/pipelineTemplates/stages.module.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.azuredevops/pipelineTemplates/stages.module.yml b/.azuredevops/pipelineTemplates/stages.module.yml index 9d6b8e3720..96df66b71a 100644 --- a/.azuredevops/pipelineTemplates/stages.module.yml +++ b/.azuredevops/pipelineTemplates/stages.module.yml @@ -12,6 +12,7 @@ stages: condition: eq('${{ parameters.staticValidation }}', 'True') jobs: - template: /.azuredevops/pipelineTemplates/jobs.validateModulePester.yml + - template: /.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml - stage: deployment displayName: Deployment validation From 00a7aa9fc45d4de33a52f7ba9e81bf286e207d61 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 17:43:12 +0100 Subject: [PATCH 21/41] Update to latest --- .../jobs.validateModuleDeployment.yml | 11 ++++------- .../pipelineTemplates/jobs.validateModulePSRule.yml | 11 ++++------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml index 2c47857b2a..4e437eb416 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml @@ -117,15 +117,12 @@ jobs: # [Agent] Replace tokens #----------------------- - - task: AzurePowerShell@5 - displayName: 'Replace tokens in template file via connection [${{ parameters.serviceConnection }}]' + - task: PowerShell@2 + displayName: 'Replace tokens in template files' inputs: - azureSubscription: ${{ parameters.serviceConnection }} - azurePowerShellVersion: 'latestVersion' - preferredAzurePowerShellVersion: '' - ScriptType: InlineScript + targetType: inline pwsh: true - inline: | + script: | # Load used functions . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'tokensReplacement' 'Convert-TokensInFileList.ps1') . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Get-LocallyReferencedFileList.ps1') diff --git a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml index 73bdc9e9ee..1a5ffd0519 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml @@ -75,15 +75,12 @@ jobs: steps: # [Agent] Replace tokens #----------------------- - - task: AzurePowerShell@5 - displayName: 'Replace tokens in template file via connection [${{ parameters.serviceConnection }}]' + - task: PowerShell@2 + displayName: 'Replace tokens in template files' inputs: - azureSubscription: ${{ parameters.serviceConnection }} - azurePowerShellVersion: 'latestVersion' - preferredAzurePowerShellVersion: '' - ScriptType: InlineScript + targetType: inline pwsh: true - inline: | + script: | # Load used functions . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'tokensReplacement' 'Convert-TokensInFileList.ps1') . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Get-LocallyReferencedFileList.ps1') From dee19c30df12e5b6c6406078858b0fca480870fd Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 17:48:39 +0100 Subject: [PATCH 22/41] Update to latest --- .azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml index 1a5ffd0519..c410755292 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml @@ -81,6 +81,8 @@ jobs: targetType: inline pwsh: true script: | + Write-Verbose 'Hey there' -Verbose + # Load used functions . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'tokensReplacement' 'Convert-TokensInFileList.ps1') . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Get-LocallyReferencedFileList.ps1') From 4220654294c4e103bcbd3ec7d2700aaeb8dfa829 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 17:52:32 +0100 Subject: [PATCH 23/41] Update to latest --- .../pipelineTemplates/jobs.validateModulePSRule.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml index c410755292..dc91908166 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml @@ -73,6 +73,13 @@ jobs: strategy: matrix: $[ dependencies.getModuleTestFiles.outputs['getModuleTestFilesTask.psRuleModuleTestFilePaths'] ] steps: + - task: PowerShell@2 + displayName: 'Version info' + inputs: + targetType: inline + pwsh: true + script: | + Write-Verbose ($PSVersionTable | Out-String) -Verbose # [Agent] Replace tokens #----------------------- - task: PowerShell@2 @@ -81,8 +88,6 @@ jobs: targetType: inline pwsh: true script: | - Write-Verbose 'Hey there' -Verbose - # Load used functions . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'tokensReplacement' 'Convert-TokensInFileList.ps1') . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Get-LocallyReferencedFileList.ps1') From 1f844aec1337f7c9d718fea7edb2e4e787d349a5 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 17:53:59 +0100 Subject: [PATCH 24/41] Update to latest --- .azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml index dc91908166..dadbd1112a 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml @@ -77,7 +77,6 @@ jobs: displayName: 'Version info' inputs: targetType: inline - pwsh: true script: | Write-Verbose ($PSVersionTable | Out-String) -Verbose # [Agent] Replace tokens From 31fb8d7c31c941dc001d4f8bb8695d5d0e49f6f0 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 17:56:30 +0100 Subject: [PATCH 25/41] Update to latest --- .azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml index dadbd1112a..8f071e7aa2 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml @@ -77,6 +77,7 @@ jobs: displayName: 'Version info' inputs: targetType: inline + pwsh: false script: | Write-Verbose ($PSVersionTable | Out-String) -Verbose # [Agent] Replace tokens From 4ccdb2e88d4fb040030e4465e73438b03c96a484 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 18:01:22 +0100 Subject: [PATCH 26/41] Update to latest --- .../pipelineTemplates/jobs.validateModulePSRule.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml index 8f071e7aa2..1a5ffd0519 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml @@ -73,13 +73,6 @@ jobs: strategy: matrix: $[ dependencies.getModuleTestFiles.outputs['getModuleTestFilesTask.psRuleModuleTestFilePaths'] ] steps: - - task: PowerShell@2 - displayName: 'Version info' - inputs: - targetType: inline - pwsh: false - script: | - Write-Verbose ($PSVersionTable | Out-String) -Verbose # [Agent] Replace tokens #----------------------- - task: PowerShell@2 From a4251fd9769b9d4bc00ee8877f7222c38e928f33 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 18:04:49 +0100 Subject: [PATCH 27/41] Update to latest --- .azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml index 0daa1e8855..80158631a0 100644 --- a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml +++ b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml @@ -30,8 +30,6 @@ jobs: ## All ## ## ======= ## - Write-Output '::group::Get all test files' - # Get the list of parameter file paths $moduleFolderPath = Join-Path '$(System.DefaultWorkingDirectory)' '${{ parameters.modulePath }}' @@ -56,13 +54,10 @@ jobs: Write-Verbose "Publishing output: $deployCompressedOutput" -Verbose Write-Host ('##vso[task.setVariable variable=moduleTestFilePaths;isOutput=true]{0}' -f $deployCompressedOutput) - Write-Output '::endgroup::' - ## =========== ## ## PS-Rule ## ## =========== ## - Write-Output '::group::Get PSRule test files' $psRuleTestFilePaths = $testFilePaths | Where-Object { $_ -match '${{ parameters.psRuleFilterRegex }}' } Write-Verbose 'Found PSRule module test files' -Verbose @@ -80,5 +75,3 @@ jobs: Write-Host ('##vso[task.setVariable variable=psRuleModuleTestFilePaths;isOutput=true]{0}' -f $psRuleCompressedOutput) Write-Verbose "PS Rule publishing output: $psRuleCompressedOutput" -Verbose - - Write-Output '::endgroup::' From d0f1e7262ace5fc9ee1b723d68cffe7350886595 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 18:11:45 +0100 Subject: [PATCH 28/41] Update to latest --- .../pipelineTemplates/jobs.validateModulePSRule.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml index 1a5ffd0519..e9c4078c1e 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml @@ -24,7 +24,6 @@ ## |========================================================================================================================================================================================================================================================================| ## | Parameter | Default Value | Description | Example | ## |---------------------------------|---------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------| -## | serviceConnection | '$(serviceConnection)' | The service connection that connects to Azure | 'demo-internal' | ## | poolName | '$(poolName)' | You can provide either a [poolname] or [vmImage] to run the job on | 'Custom Deployment Pool' | ## | vmImage | '$(vmImage)' | You can provide either a [poolname] or [vmImage] to run the job on | 'ubuntu20.04' | ## | defaultJobTimeoutInMinutes | 120 | The timeout for the job in this pipeline | 120 | @@ -33,10 +32,6 @@ ## | location | '$(location)' | The location to validate with | 'France Central' | ## | subscriptionId | '$(ARM_SUBSCRIPTION_ID)' | The id of the subscription to validate with when using a Management group service connection | 'aed7c000-6387-412e-bed0-24dfddf4bbc6' | ## | managementGroupId | '$(ARM_MGMTGROUP_ID)' | The id of the management group to validate with. Required only for Management-Group-Level validations | '477c9620-cb01-454f-9ebc-fc6b1df48c14' | -## | parametersRepository | '$(Build.Repository.Name)' | The respository with the parameter files. Defaults to the triggering repository | 'Solutions' | -## | modulesRepository | '$(modulesRepository)' | The respository with the modules. | 'Components' | -## | azurePowerShellVersion | '$(azurePowerShellVersion)' | Used for configuring the Azure PowerShellModules Version, one of the example values. | 'latestVersion' or 'OtherVersion' | -## | preferredAzurePowerShellVersion | '$(preferredAzurePowerShellVersion)' | Used for configuring the Azure PowerShellModules Version, either an empty string or the specific version. | '4.4.0' | ## |========================================================================================================================================================================================================================================================================| ## ##---------------------------------------------## @@ -49,11 +44,9 @@ parameters: # Logic-related parameters modulePath: '$(modulePath)' moduleTestFilePath: 'utilities/pipelines/staticValidation/module.tests.ps1' - parametersRepository: '$(Build.Repository.Name)' location: '$(location)' subscriptionId: '$(ARM_SUBSCRIPTION_ID)' managementGroupId: '$(ARM_MGMTGROUP_ID)' - modulesRepository: '$(modulesRepository)' ##---------------------------------------------## ## TEMPLATE LOGIC ## From f1f0d16eef1850d3a5788ad6c45a6df4ad102b7e Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 18:42:03 +0100 Subject: [PATCH 29/41] Update to latest --- .../jobs.validateModuleDeployment.yml | 518 +++++++++--------- 1 file changed, 262 insertions(+), 256 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml index 4e437eb416..34dd560eb4 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml @@ -81,264 +81,270 @@ jobs: ## TEMPLATE LOGIC ## ##---------------------------------------------## steps: - # [Agent] Prepare environment - #---------------------------- - task: PowerShell@2 - displayName: 'Setup agent for deployment' + displayName: 'Version info' inputs: targetType: inline pwsh: true script: | - # Load used functions - . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Set-EnvironmentOnAgent.ps1') - - # Define PS modules to install on the runner - $modules = @( - @{ Name = 'Az.Accounts' }, - @{ Name = 'Az.Resources' }, - @{ Name = 'powershell-yaml'; Version = '0.4.2'} - ) - - # Additional PS modules need to be installed for the removal step in case it is enabled - if ('${{ parameters.removeDeployment}}' -eq 'true') { - $modules += @( - @{ Name = 'Az.CognitiveServices' }, - @{ Name = 'Az.Compute' }, - @{ Name = 'Az.KeyVault' }, - @{ Name = 'Az.MachineLearningServices' }, - @{ Name = 'Az.Monitor' }, - @{ Name = 'Az.OperationalInsights' }, - @{ Name = 'Az.RecoveryServices' } - ) - } - - # Set agent up - Set-EnvironmentOnAgent -PSModules $modules - - # [Agent] Replace tokens - #----------------------- - - task: PowerShell@2 - displayName: 'Replace tokens in template files' - inputs: - targetType: inline - pwsh: true - script: | - # Load used functions - . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'tokensReplacement' 'Convert-TokensInFileList.ps1') - . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Get-LocallyReferencedFileList.ps1') - - - # Get target files - $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(path)' - - # Get target files - $targetFileList = @( - $moduleTestFilePath - ) - - # Add all module template files as they may contain tokens - $targetFileList += (Get-LocallyReferencedFileList -FilePath $moduleTestFilePath) - $targetFileList = $targetFileList | Sort-Object -Unique - - # Construct Token Function Input - $ConvertTokensInputs = @{ - FilePathList = $targetFileList - Tokens = @{} - TokenPrefix = '$(tokenPrefix)' - TokenSuffix = '$(tokenSuffix)' - } - - # Add enforced tokens - $ConvertTokensInputs.Tokens += @{ - subscriptionId = '${{ parameters.subscriptionId }}' - managementGroupId = '${{ parameters.managementGroupId }}' - tenantId = '$(ARM_TENANT_ID)' - } - - # Add local (source control) tokens - $tokenMap = @{} - foreach ($token in (Get-ChildItem env: | Where-Object -Property Name -Like "localToken_*")) { - $tokenMap += @{ $token.Name.Replace('localToken_','','OrdinalIgnoreCase') = $token.value } - } - Write-Verbose ('Using local tokens [{0}]' -f ($tokenMap.Keys -join ', ')) -Verbose - $ConvertTokensInputs.Tokens += $tokenMap - - # Swap 'namePrefix' token if empty and provided as a Azure DevOps variable - if([String]::IsNullOrEmpty($ConvertTokensInputs.Tokens['namePrefix'])){ - Write-Verbose 'Using [namePrefix] token from Azure DevOps Variable Groups' -Verbose - $ConvertTokensInputs.Tokens['namePrefix'] = "$(TOKEN_NAMEPREFIX)" - } - - # Add custom tokens (passed in via the pipeline) - if(-not [String]::IsNullOrEmpty('${{ parameters.customTokens }}')) { - $customTokens = '${{ parameters.customTokens }}' | ConvertFrom-Json -AsHashTable - Write-Verbose ('Using custom parameter file tokens [{0}]' -f ($customTokens.Keys -join ', ')) -Verbose - $ConvertTokensInputs.Tokens += $customTokens - } - - Write-Verbose "Convert Tokens Input:`n $($ConvertTokensInputs | ConvertTo-Json -Depth 10)" -Verbose - - # Invoke Token Replacement Functionality [For Module] - $null = Convert-TokensInFileList @ConvertTokensInputs - - # [Validation] task(s) - #--------------------- - - task: AzurePowerShell@5 - displayName: 'Validate template file via connection [${{ parameters.serviceConnection }}]' - inputs: - azureSubscription: ${{ parameters.serviceConnection }} - azurePowerShellVersion: 'latestVersion' - preferredAzurePowerShellVersion: '' - ScriptType: InlineScript - pwsh: true - inline: | - # Load used functions - . (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourceDeployment' 'Test-TemplateDeployment.ps1') - - # Fetching parameters - $location = '${{ parameters.location }}' - $subscriptionId = '${{ parameters.subscriptionId }}' - $managementGroupId = '${{ parameters.managementGroupId }}' - - # Resolve template file path - $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' - - # Determine possible parameters depending on file type - if ((Split-Path $moduleTestFilePath -Extension) -eq '.bicep') { - $moduleTemplateContent = bicep build $moduleTestFilePath --stdout | ConvertFrom-Json -AsHashtable - $moduleTemplatePossibleParameters = $moduleTemplateContent.parameters.Keys - } else { - $moduleTemplatePossibleParameters = ((Get-Content $moduleTestFilePath -Raw) | ConvertFrom-Json -AsHashtable).parameters.keys - } - - # ----------- # - # INVOKE TEST # - # ----------- # - # Building input object - $functionInput = @{ - TemplateFilePath = $moduleTestFilePath - Location = $location - SubscriptionId = $subscriptionId - ManagementGroupId = $managementGroupId - AdditionalParameters = @{} - } - - # Handle additional parameters - if (-not [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') -and ($moduleTemplatePossibleParameters.Keys -contains 'enableDefaultTelemetry')) { - $functionInput['additionalParameters'] += @{ - enableDefaultTelemetry = [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') - } - } - - Write-Verbose "Invoke task with" -Verbose - Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose - - Test-TemplateDeployment @functionInput -Verbose - - # [Deployment] task(s) - #--------------------- - - task: AzurePowerShell@5 - name: deployModule - displayName: 'Deploy template file via connection [${{ parameters.serviceConnection }}]' - inputs: - azureSubscription: ${{ parameters.serviceConnection }} - azurePowerShellVersion: 'latestVersion' - preferredAzurePowerShellVersion: '' - pwsh: true - ScriptType: InlineScript - inline: | - # Load used functions - . (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourceDeployment' 'New-TemplateDeployment.ps1') - - # Fetching parameters - $location = '${{ parameters.location }}' - $subscriptionId = '${{ parameters.subscriptionId }}' - $managementGroupId = '${{ parameters.managementGroupId }}' - - # Resolve template file path - $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' - - # Determine possible parameters depending on file type - if ((Split-Path $moduleTestFilePath -Extension) -eq '.bicep') { - $moduleTemplateContent = bicep build $moduleTestFilePath --stdout | ConvertFrom-Json -AsHashtable - $moduleTemplatePossibleParameters = $moduleTemplateContent.parameters.Keys - } else { - $moduleTemplatePossibleParameters = ((Get-Content $moduleTestFilePath -Raw) | ConvertFrom-Json -AsHashtable).parameters.keys - } - - # ----------- # - # INVOKE TEST # - # ----------- # - - # Building input object - $functionInput = @{ - TemplateFilePath = $moduleTestFilePath - Location = $location - SubscriptionId = $subscriptionId - ManagementGroupId = $managementGroupId - doNotThrow = $true - AdditionalParameters = @{} - } - - # Handle additional parameters - if (-not [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') -and ($moduleTemplatePossibleParameters.Keys -contains 'enableDefaultTelemetry')) { - $functionInput['additionalParameters'] += @{ - enableDefaultTelemetry = [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') - } - } - - Write-Verbose 'Invoke task with' -Verbose - Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose - - # Invoke deployment - $res = New-TemplateDeployment @functionInput -Verbose - - # Get deployment name - $deploymentNames = $res.DeploymentNames | ConvertTo-Json -Compress - Write-Verbose "Deployment name(s) [$deploymentNames]" -Verbose - Write-Host "##vso[task.setvariable variable=deploymentNames]$deploymentNames" - Write-Host "##vso[task.setvariable variable=deploymentNames;isOutput=true]$deploymentNames" - - # Populate further outputs - $deploymentOutputHashTable=@{} - - foreach ($outputKey in $res.deploymentOutput.Keys) { - Write-Output ('##vso[task.setvariable variable={0}]{1}' -f $outputKey, $res.deploymentOutput[$outputKey].Value) - $deploymentOutputHashTable.add($outputKey,$res.deploymentOutput[$outputKey].Value) - } - - $deploymentOutput = $deploymentOutputHashTable | ConvertTo-Json -Compress -Depth 100 - Write-Verbose "Deployment output: $deploymentOutput" -Verbose - - if ($res.ContainsKey('exception')) { - # Happens only if there is an exception - throw $res.exception - } - - # [Removal] task(s) - #------------------ - - task: AzurePowerShell@5 - displayName: 'Remove deployed resources via [${{ parameters.serviceConnection }}]' - condition: and(succeededOrFailed(), eq('${{ parameters.removeDeployment }}', 'True'), not(eq(variables['deploymentNames'],'')), not(startsWith(variables['deploymentNames'], 'variables[' ))) - inputs: - azureSubscription: ${{ parameters.serviceConnection }} - azurePowerShellVersion: ${{ parameters.azurePowerShellVersion }} - preferredAzurePowerShellVersion: ${{ parameters.preferredAzurePowerShellVersion }} - ScriptType: InlineScript - failOnStandardError: false - pwsh: true - inline: | - # Load used function - . (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourceRemoval' 'Initialize-DeploymentRemoval.ps1') - - $functionInput = @{ - TemplateFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' - SubscriptionId = '${{ parameters.subscriptionId }}' - ManagementGroupId = '${{ parameters.managementGroupId }}' - DeploymentNames = '$(deploymentNames)' | ConvertFrom-Json - } - - Write-Verbose 'Invoke task with' -Verbose - Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose - - Initialize-DeploymentRemoval @functionInput + Write-Verbose ($PSVersionTable | Out-String) -Verbose + # # [Agent] Prepare environment + # #---------------------------- + # - task: PowerShell@2 + # displayName: 'Setup agent for deployment' + # inputs: + # targetType: inline + # pwsh: true + # script: | + # # Load used functions + # . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Set-EnvironmentOnAgent.ps1') + + # # Define PS modules to install on the runner + # $modules = @( + # @{ Name = 'Az.Accounts' }, + # @{ Name = 'Az.Resources' }, + # @{ Name = 'powershell-yaml'; Version = '0.4.2'} + # ) + + # # Additional PS modules need to be installed for the removal step in case it is enabled + # if ('${{ parameters.removeDeployment}}' -eq 'true') { + # $modules += @( + # @{ Name = 'Az.CognitiveServices' }, + # @{ Name = 'Az.Compute' }, + # @{ Name = 'Az.KeyVault' }, + # @{ Name = 'Az.MachineLearningServices' }, + # @{ Name = 'Az.Monitor' }, + # @{ Name = 'Az.OperationalInsights' }, + # @{ Name = 'Az.RecoveryServices' } + # ) + # } + + # # Set agent up + # Set-EnvironmentOnAgent -PSModules $modules + + # # [Agent] Replace tokens + # #----------------------- + # - task: PowerShell@2 + # displayName: 'Replace tokens in template files' + # inputs: + # targetType: inline + # pwsh: true + # script: | + # # Load used functions + # . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'tokensReplacement' 'Convert-TokensInFileList.ps1') + # . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Get-LocallyReferencedFileList.ps1') + + # # Get target files + # $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(path)' + + # # Get target files + # $targetFileList = @( + # $moduleTestFilePath + # ) + + # # Add all module template files as they may contain tokens + # $targetFileList += (Get-LocallyReferencedFileList -FilePath $moduleTestFilePath) + # $targetFileList = $targetFileList | Sort-Object -Unique + + # # Construct Token Function Input + # $ConvertTokensInputs = @{ + # FilePathList = $targetFileList + # Tokens = @{} + # TokenPrefix = '$(tokenPrefix)' + # TokenSuffix = '$(tokenSuffix)' + # } + + # # Add enforced tokens + # $ConvertTokensInputs.Tokens += @{ + # subscriptionId = '${{ parameters.subscriptionId }}' + # managementGroupId = '${{ parameters.managementGroupId }}' + # tenantId = '$(ARM_TENANT_ID)' + # } + + # # Add local (source control) tokens + # $tokenMap = @{} + # foreach ($token in (Get-ChildItem env: | Where-Object -Property Name -Like "localToken_*")) { + # $tokenMap += @{ $token.Name.Replace('localToken_','','OrdinalIgnoreCase') = $token.value } + # } + # Write-Verbose ('Using local tokens [{0}]' -f ($tokenMap.Keys -join ', ')) -Verbose + # $ConvertTokensInputs.Tokens += $tokenMap + + # # Swap 'namePrefix' token if empty and provided as a Azure DevOps variable + # if([String]::IsNullOrEmpty($ConvertTokensInputs.Tokens['namePrefix'])){ + # Write-Verbose 'Using [namePrefix] token from Azure DevOps Variable Groups' -Verbose + # $ConvertTokensInputs.Tokens['namePrefix'] = "$(TOKEN_NAMEPREFIX)" + # } + + # # Add custom tokens (passed in via the pipeline) + # if(-not [String]::IsNullOrEmpty('${{ parameters.customTokens }}')) { + # $customTokens = '${{ parameters.customTokens }}' | ConvertFrom-Json -AsHashTable + # Write-Verbose ('Using custom parameter file tokens [{0}]' -f ($customTokens.Keys -join ', ')) -Verbose + # $ConvertTokensInputs.Tokens += $customTokens + # } + + # Write-Verbose "Convert Tokens Input:`n $($ConvertTokensInputs | ConvertTo-Json -Depth 10)" -Verbose + + # # Invoke Token Replacement Functionality [For Module] + # $null = Convert-TokensInFileList @ConvertTokensInputs + + # # [Validation] task(s) + # #--------------------- + # - task: AzurePowerShell@5 + # displayName: 'Validate template file via connection [${{ parameters.serviceConnection }}]' + # inputs: + # azureSubscription: ${{ parameters.serviceConnection }} + # azurePowerShellVersion: 'latestVersion' + # preferredAzurePowerShellVersion: '' + # ScriptType: InlineScript + # pwsh: true + # inline: | + # # Load used functions + # . (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourceDeployment' 'Test-TemplateDeployment.ps1') + + # # Fetching parameters + # $location = '${{ parameters.location }}' + # $subscriptionId = '${{ parameters.subscriptionId }}' + # $managementGroupId = '${{ parameters.managementGroupId }}' + + # # Resolve template file path + # $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' + + # # Determine possible parameters depending on file type + # if ((Split-Path $moduleTestFilePath -Extension) -eq '.bicep') { + # $moduleTemplateContent = bicep build $moduleTestFilePath --stdout | ConvertFrom-Json -AsHashtable + # $moduleTemplatePossibleParameters = $moduleTemplateContent.parameters.Keys + # } else { + # $moduleTemplatePossibleParameters = ((Get-Content $moduleTestFilePath -Raw) | ConvertFrom-Json -AsHashtable).parameters.keys + # } + + # # ----------- # + # # INVOKE TEST # + # # ----------- # + # # Building input object + # $functionInput = @{ + # TemplateFilePath = $moduleTestFilePath + # Location = $location + # SubscriptionId = $subscriptionId + # ManagementGroupId = $managementGroupId + # AdditionalParameters = @{} + # } + + # # Handle additional parameters + # if (-not [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') -and ($moduleTemplatePossibleParameters.Keys -contains 'enableDefaultTelemetry')) { + # $functionInput['additionalParameters'] += @{ + # enableDefaultTelemetry = [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') + # } + # } + + # Write-Verbose "Invoke task with" -Verbose + # Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose + + # Test-TemplateDeployment @functionInput -Verbose + + # # [Deployment] task(s) + # #--------------------- + # - task: AzurePowerShell@5 + # name: deployModule + # displayName: 'Deploy template file via connection [${{ parameters.serviceConnection }}]' + # inputs: + # azureSubscription: ${{ parameters.serviceConnection }} + # azurePowerShellVersion: 'latestVersion' + # preferredAzurePowerShellVersion: '' + # pwsh: true + # ScriptType: InlineScript + # inline: | + # # Load used functions + # . (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourceDeployment' 'New-TemplateDeployment.ps1') + + # # Fetching parameters + # $location = '${{ parameters.location }}' + # $subscriptionId = '${{ parameters.subscriptionId }}' + # $managementGroupId = '${{ parameters.managementGroupId }}' + + # # Resolve template file path + # $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' + + # # Determine possible parameters depending on file type + # if ((Split-Path $moduleTestFilePath -Extension) -eq '.bicep') { + # $moduleTemplateContent = bicep build $moduleTestFilePath --stdout | ConvertFrom-Json -AsHashtable + # $moduleTemplatePossibleParameters = $moduleTemplateContent.parameters.Keys + # } else { + # $moduleTemplatePossibleParameters = ((Get-Content $moduleTestFilePath -Raw) | ConvertFrom-Json -AsHashtable).parameters.keys + # } + + # # ----------- # + # # INVOKE TEST # + # # ----------- # + + # # Building input object + # $functionInput = @{ + # TemplateFilePath = $moduleTestFilePath + # Location = $location + # SubscriptionId = $subscriptionId + # ManagementGroupId = $managementGroupId + # doNotThrow = $true + # AdditionalParameters = @{} + # } + + # # Handle additional parameters + # if (-not [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') -and ($moduleTemplatePossibleParameters.Keys -contains 'enableDefaultTelemetry')) { + # $functionInput['additionalParameters'] += @{ + # enableDefaultTelemetry = [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') + # } + # } + + # Write-Verbose 'Invoke task with' -Verbose + # Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose + + # # Invoke deployment + # $res = New-TemplateDeployment @functionInput -Verbose + + # # Get deployment name + # $deploymentNames = $res.DeploymentNames | ConvertTo-Json -Compress + # Write-Verbose "Deployment name(s) [$deploymentNames]" -Verbose + # Write-Host "##vso[task.setvariable variable=deploymentNames]$deploymentNames" + # Write-Host "##vso[task.setvariable variable=deploymentNames;isOutput=true]$deploymentNames" + + # # Populate further outputs + # $deploymentOutputHashTable=@{} + + # foreach ($outputKey in $res.deploymentOutput.Keys) { + # Write-Output ('##vso[task.setvariable variable={0}]{1}' -f $outputKey, $res.deploymentOutput[$outputKey].Value) + # $deploymentOutputHashTable.add($outputKey,$res.deploymentOutput[$outputKey].Value) + # } + + # $deploymentOutput = $deploymentOutputHashTable | ConvertTo-Json -Compress -Depth 100 + # Write-Verbose "Deployment output: $deploymentOutput" -Verbose + + # if ($res.ContainsKey('exception')) { + # # Happens only if there is an exception + # throw $res.exception + # } + + # # [Removal] task(s) + # #------------------ + # - task: AzurePowerShell@5 + # displayName: 'Remove deployed resources via [${{ parameters.serviceConnection }}]' + # condition: and(succeededOrFailed(), eq('${{ parameters.removeDeployment }}', 'True'), not(eq(variables['deploymentNames'],'')), not(startsWith(variables['deploymentNames'], 'variables[' ))) + # inputs: + # azureSubscription: ${{ parameters.serviceConnection }} + # azurePowerShellVersion: ${{ parameters.azurePowerShellVersion }} + # preferredAzurePowerShellVersion: ${{ parameters.preferredAzurePowerShellVersion }} + # ScriptType: InlineScript + # failOnStandardError: false + # pwsh: true + # inline: | + # # Load used function + # . (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourceRemoval' 'Initialize-DeploymentRemoval.ps1') + + # $functionInput = @{ + # TemplateFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' + # SubscriptionId = '${{ parameters.subscriptionId }}' + # ManagementGroupId = '${{ parameters.managementGroupId }}' + # DeploymentNames = '$(deploymentNames)' | ConvertFrom-Json + # } + + # Write-Verbose 'Invoke task with' -Verbose + # Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose + + # Initialize-DeploymentRemoval @functionInput From 172029165611200ec0f40f5109d590fac7a46275 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 18:49:04 +0100 Subject: [PATCH 30/41] Update to latest --- .azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml index 34dd560eb4..f27c1a6cb8 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml @@ -85,7 +85,6 @@ jobs: displayName: 'Version info' inputs: targetType: inline - pwsh: true script: | Write-Verbose ($PSVersionTable | Out-String) -Verbose # # [Agent] Prepare environment From e2190618941c22a95894a16bf6e7c3f1bb3544dd Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 19:05:24 +0100 Subject: [PATCH 31/41] Update to latest --- .../jobs.validateModuleDeployment.yml | 518 +++++++++--------- 1 file changed, 256 insertions(+), 262 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml index f27c1a6cb8..15c671df30 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml @@ -81,269 +81,263 @@ jobs: ## TEMPLATE LOGIC ## ##---------------------------------------------## steps: + # [Agent] Prepare environment + #---------------------------- - task: PowerShell@2 - displayName: 'Version info' + displayName: 'Setup agent for deployment' inputs: targetType: inline + pwsh: true script: | - Write-Verbose ($PSVersionTable | Out-String) -Verbose - # # [Agent] Prepare environment - # #---------------------------- - # - task: PowerShell@2 - # displayName: 'Setup agent for deployment' - # inputs: - # targetType: inline - # pwsh: true - # script: | - # # Load used functions - # . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Set-EnvironmentOnAgent.ps1') - - # # Define PS modules to install on the runner - # $modules = @( - # @{ Name = 'Az.Accounts' }, - # @{ Name = 'Az.Resources' }, - # @{ Name = 'powershell-yaml'; Version = '0.4.2'} - # ) - - # # Additional PS modules need to be installed for the removal step in case it is enabled - # if ('${{ parameters.removeDeployment}}' -eq 'true') { - # $modules += @( - # @{ Name = 'Az.CognitiveServices' }, - # @{ Name = 'Az.Compute' }, - # @{ Name = 'Az.KeyVault' }, - # @{ Name = 'Az.MachineLearningServices' }, - # @{ Name = 'Az.Monitor' }, - # @{ Name = 'Az.OperationalInsights' }, - # @{ Name = 'Az.RecoveryServices' } - # ) - # } - - # # Set agent up - # Set-EnvironmentOnAgent -PSModules $modules - - # # [Agent] Replace tokens - # #----------------------- - # - task: PowerShell@2 - # displayName: 'Replace tokens in template files' - # inputs: - # targetType: inline - # pwsh: true - # script: | - # # Load used functions - # . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'tokensReplacement' 'Convert-TokensInFileList.ps1') - # . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Get-LocallyReferencedFileList.ps1') - - # # Get target files - # $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(path)' - - # # Get target files - # $targetFileList = @( - # $moduleTestFilePath - # ) - - # # Add all module template files as they may contain tokens - # $targetFileList += (Get-LocallyReferencedFileList -FilePath $moduleTestFilePath) - # $targetFileList = $targetFileList | Sort-Object -Unique - - # # Construct Token Function Input - # $ConvertTokensInputs = @{ - # FilePathList = $targetFileList - # Tokens = @{} - # TokenPrefix = '$(tokenPrefix)' - # TokenSuffix = '$(tokenSuffix)' - # } - - # # Add enforced tokens - # $ConvertTokensInputs.Tokens += @{ - # subscriptionId = '${{ parameters.subscriptionId }}' - # managementGroupId = '${{ parameters.managementGroupId }}' - # tenantId = '$(ARM_TENANT_ID)' - # } - - # # Add local (source control) tokens - # $tokenMap = @{} - # foreach ($token in (Get-ChildItem env: | Where-Object -Property Name -Like "localToken_*")) { - # $tokenMap += @{ $token.Name.Replace('localToken_','','OrdinalIgnoreCase') = $token.value } - # } - # Write-Verbose ('Using local tokens [{0}]' -f ($tokenMap.Keys -join ', ')) -Verbose - # $ConvertTokensInputs.Tokens += $tokenMap - - # # Swap 'namePrefix' token if empty and provided as a Azure DevOps variable - # if([String]::IsNullOrEmpty($ConvertTokensInputs.Tokens['namePrefix'])){ - # Write-Verbose 'Using [namePrefix] token from Azure DevOps Variable Groups' -Verbose - # $ConvertTokensInputs.Tokens['namePrefix'] = "$(TOKEN_NAMEPREFIX)" - # } - - # # Add custom tokens (passed in via the pipeline) - # if(-not [String]::IsNullOrEmpty('${{ parameters.customTokens }}')) { - # $customTokens = '${{ parameters.customTokens }}' | ConvertFrom-Json -AsHashTable - # Write-Verbose ('Using custom parameter file tokens [{0}]' -f ($customTokens.Keys -join ', ')) -Verbose - # $ConvertTokensInputs.Tokens += $customTokens - # } - - # Write-Verbose "Convert Tokens Input:`n $($ConvertTokensInputs | ConvertTo-Json -Depth 10)" -Verbose - - # # Invoke Token Replacement Functionality [For Module] - # $null = Convert-TokensInFileList @ConvertTokensInputs - - # # [Validation] task(s) - # #--------------------- - # - task: AzurePowerShell@5 - # displayName: 'Validate template file via connection [${{ parameters.serviceConnection }}]' - # inputs: - # azureSubscription: ${{ parameters.serviceConnection }} - # azurePowerShellVersion: 'latestVersion' - # preferredAzurePowerShellVersion: '' - # ScriptType: InlineScript - # pwsh: true - # inline: | - # # Load used functions - # . (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourceDeployment' 'Test-TemplateDeployment.ps1') - - # # Fetching parameters - # $location = '${{ parameters.location }}' - # $subscriptionId = '${{ parameters.subscriptionId }}' - # $managementGroupId = '${{ parameters.managementGroupId }}' - - # # Resolve template file path - # $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' - - # # Determine possible parameters depending on file type - # if ((Split-Path $moduleTestFilePath -Extension) -eq '.bicep') { - # $moduleTemplateContent = bicep build $moduleTestFilePath --stdout | ConvertFrom-Json -AsHashtable - # $moduleTemplatePossibleParameters = $moduleTemplateContent.parameters.Keys - # } else { - # $moduleTemplatePossibleParameters = ((Get-Content $moduleTestFilePath -Raw) | ConvertFrom-Json -AsHashtable).parameters.keys - # } - - # # ----------- # - # # INVOKE TEST # - # # ----------- # - # # Building input object - # $functionInput = @{ - # TemplateFilePath = $moduleTestFilePath - # Location = $location - # SubscriptionId = $subscriptionId - # ManagementGroupId = $managementGroupId - # AdditionalParameters = @{} - # } - - # # Handle additional parameters - # if (-not [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') -and ($moduleTemplatePossibleParameters.Keys -contains 'enableDefaultTelemetry')) { - # $functionInput['additionalParameters'] += @{ - # enableDefaultTelemetry = [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') - # } - # } - - # Write-Verbose "Invoke task with" -Verbose - # Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose - - # Test-TemplateDeployment @functionInput -Verbose - - # # [Deployment] task(s) - # #--------------------- - # - task: AzurePowerShell@5 - # name: deployModule - # displayName: 'Deploy template file via connection [${{ parameters.serviceConnection }}]' - # inputs: - # azureSubscription: ${{ parameters.serviceConnection }} - # azurePowerShellVersion: 'latestVersion' - # preferredAzurePowerShellVersion: '' - # pwsh: true - # ScriptType: InlineScript - # inline: | - # # Load used functions - # . (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourceDeployment' 'New-TemplateDeployment.ps1') - - # # Fetching parameters - # $location = '${{ parameters.location }}' - # $subscriptionId = '${{ parameters.subscriptionId }}' - # $managementGroupId = '${{ parameters.managementGroupId }}' - - # # Resolve template file path - # $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' - - # # Determine possible parameters depending on file type - # if ((Split-Path $moduleTestFilePath -Extension) -eq '.bicep') { - # $moduleTemplateContent = bicep build $moduleTestFilePath --stdout | ConvertFrom-Json -AsHashtable - # $moduleTemplatePossibleParameters = $moduleTemplateContent.parameters.Keys - # } else { - # $moduleTemplatePossibleParameters = ((Get-Content $moduleTestFilePath -Raw) | ConvertFrom-Json -AsHashtable).parameters.keys - # } - - # # ----------- # - # # INVOKE TEST # - # # ----------- # - - # # Building input object - # $functionInput = @{ - # TemplateFilePath = $moduleTestFilePath - # Location = $location - # SubscriptionId = $subscriptionId - # ManagementGroupId = $managementGroupId - # doNotThrow = $true - # AdditionalParameters = @{} - # } - - # # Handle additional parameters - # if (-not [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') -and ($moduleTemplatePossibleParameters.Keys -contains 'enableDefaultTelemetry')) { - # $functionInput['additionalParameters'] += @{ - # enableDefaultTelemetry = [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') - # } - # } - - # Write-Verbose 'Invoke task with' -Verbose - # Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose - - # # Invoke deployment - # $res = New-TemplateDeployment @functionInput -Verbose - - # # Get deployment name - # $deploymentNames = $res.DeploymentNames | ConvertTo-Json -Compress - # Write-Verbose "Deployment name(s) [$deploymentNames]" -Verbose - # Write-Host "##vso[task.setvariable variable=deploymentNames]$deploymentNames" - # Write-Host "##vso[task.setvariable variable=deploymentNames;isOutput=true]$deploymentNames" - - # # Populate further outputs - # $deploymentOutputHashTable=@{} - - # foreach ($outputKey in $res.deploymentOutput.Keys) { - # Write-Output ('##vso[task.setvariable variable={0}]{1}' -f $outputKey, $res.deploymentOutput[$outputKey].Value) - # $deploymentOutputHashTable.add($outputKey,$res.deploymentOutput[$outputKey].Value) - # } - - # $deploymentOutput = $deploymentOutputHashTable | ConvertTo-Json -Compress -Depth 100 - # Write-Verbose "Deployment output: $deploymentOutput" -Verbose - - # if ($res.ContainsKey('exception')) { - # # Happens only if there is an exception - # throw $res.exception - # } - - # # [Removal] task(s) - # #------------------ - # - task: AzurePowerShell@5 - # displayName: 'Remove deployed resources via [${{ parameters.serviceConnection }}]' - # condition: and(succeededOrFailed(), eq('${{ parameters.removeDeployment }}', 'True'), not(eq(variables['deploymentNames'],'')), not(startsWith(variables['deploymentNames'], 'variables[' ))) - # inputs: - # azureSubscription: ${{ parameters.serviceConnection }} - # azurePowerShellVersion: ${{ parameters.azurePowerShellVersion }} - # preferredAzurePowerShellVersion: ${{ parameters.preferredAzurePowerShellVersion }} - # ScriptType: InlineScript - # failOnStandardError: false - # pwsh: true - # inline: | - # # Load used function - # . (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourceRemoval' 'Initialize-DeploymentRemoval.ps1') - - # $functionInput = @{ - # TemplateFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' - # SubscriptionId = '${{ parameters.subscriptionId }}' - # ManagementGroupId = '${{ parameters.managementGroupId }}' - # DeploymentNames = '$(deploymentNames)' | ConvertFrom-Json - # } - - # Write-Verbose 'Invoke task with' -Verbose - # Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose - - # Initialize-DeploymentRemoval @functionInput + # Load used functions + . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Set-EnvironmentOnAgent.ps1') + + # Define PS modules to install on the runner + $modules = @( + @{ Name = 'Az.Accounts' }, + @{ Name = 'Az.Resources' }, + @{ Name = 'powershell-yaml'; Version = '0.4.2'} + ) + + # Additional PS modules need to be installed for the removal step in case it is enabled + if ('${{ parameters.removeDeployment}}' -eq 'true') { + $modules += @( + @{ Name = 'Az.CognitiveServices' }, + @{ Name = 'Az.Compute' }, + @{ Name = 'Az.KeyVault' }, + @{ Name = 'Az.MachineLearningServices' }, + @{ Name = 'Az.Monitor' }, + @{ Name = 'Az.OperationalInsights' }, + @{ Name = 'Az.RecoveryServices' } + ) + } + + # Set agent up + Set-EnvironmentOnAgent -PSModules $modules + + # [Agent] Replace tokens + #----------------------- + - task: PowerShell@2 + displayName: 'Replace tokens in template files' + inputs: + targetType: inline + pwsh: true + script: | + # Load used functions + . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'tokensReplacement' 'Convert-TokensInFileList.ps1') + . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Get-LocallyReferencedFileList.ps1') + + # Get target files + $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(path)' + + # Get target files + $targetFileList = @( + $moduleTestFilePath + ) + + # Add all module template files as they may contain tokens + $targetFileList += (Get-LocallyReferencedFileList -FilePath $moduleTestFilePath) + $targetFileList = $targetFileList | Sort-Object -Unique + + # Construct Token Function Input + $ConvertTokensInputs = @{ + FilePathList = $targetFileList + Tokens = @{} + TokenPrefix = '$(tokenPrefix)' + TokenSuffix = '$(tokenSuffix)' + } + + # Add enforced tokens + $ConvertTokensInputs.Tokens += @{ + subscriptionId = '${{ parameters.subscriptionId }}' + managementGroupId = '${{ parameters.managementGroupId }}' + tenantId = '$(ARM_TENANT_ID)' + } + + # Add local (source control) tokens + $tokenMap = @{} + foreach ($token in (Get-ChildItem env: | Where-Object -Property Name -Like "localToken_*")) { + $tokenMap += @{ $token.Name.Replace('localToken_','','OrdinalIgnoreCase') = $token.value } + } + Write-Verbose ('Using local tokens [{0}]' -f ($tokenMap.Keys -join ', ')) -Verbose + $ConvertTokensInputs.Tokens += $tokenMap + + # Swap 'namePrefix' token if empty and provided as a Azure DevOps variable + if([String]::IsNullOrEmpty($ConvertTokensInputs.Tokens['namePrefix'])){ + Write-Verbose 'Using [namePrefix] token from Azure DevOps Variable Groups' -Verbose + $ConvertTokensInputs.Tokens['namePrefix'] = "$(TOKEN_NAMEPREFIX)" + } + + # Add custom tokens (passed in via the pipeline) + if(-not [String]::IsNullOrEmpty('${{ parameters.customTokens }}')) { + $customTokens = '${{ parameters.customTokens }}' | ConvertFrom-Json -AsHashTable + Write-Verbose ('Using custom parameter file tokens [{0}]' -f ($customTokens.Keys -join ', ')) -Verbose + $ConvertTokensInputs.Tokens += $customTokens + } + + Write-Verbose "Convert Tokens Input:`n $($ConvertTokensInputs | ConvertTo-Json -Depth 10)" -Verbose + + # Invoke Token Replacement Functionality [For Module] + $null = Convert-TokensInFileList @ConvertTokensInputs + + # [Validation] task(s) + #--------------------- + - task: AzurePowerShell@5 + displayName: 'Validate template file via connection [${{ parameters.serviceConnection }}]' + inputs: + azureSubscription: ${{ parameters.serviceConnection }} + azurePowerShellVersion: 'latestVersion' + preferredAzurePowerShellVersion: '' + ScriptType: InlineScript + pwsh: true + inline: | + # Load used functions + . (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourceDeployment' 'Test-TemplateDeployment.ps1') + + # Fetching parameters + $location = '${{ parameters.location }}' + $subscriptionId = '${{ parameters.subscriptionId }}' + $managementGroupId = '${{ parameters.managementGroupId }}' + + # Resolve template file path + $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' + + # Determine possible parameters depending on file type + if ((Split-Path $moduleTestFilePath -Extension) -eq '.bicep') { + $moduleTemplateContent = bicep build $moduleTestFilePath --stdout | ConvertFrom-Json -AsHashtable + $moduleTemplatePossibleParameters = $moduleTemplateContent.parameters.Keys + } else { + $moduleTemplatePossibleParameters = ((Get-Content $moduleTestFilePath -Raw) | ConvertFrom-Json -AsHashtable).parameters.keys + } + + # ----------- # + # INVOKE TEST # + # ----------- # + # Building input object + $functionInput = @{ + TemplateFilePath = $moduleTestFilePath + Location = $location + SubscriptionId = $subscriptionId + ManagementGroupId = $managementGroupId + AdditionalParameters = @{} + } + + # Handle additional parameters + if (-not [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') -and ($moduleTemplatePossibleParameters.Keys -contains 'enableDefaultTelemetry')) { + $functionInput['additionalParameters'] += @{ + enableDefaultTelemetry = [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') + } + } + + Write-Verbose "Invoke task with" -Verbose + Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose + + Test-TemplateDeployment @functionInput -Verbose + + # [Deployment] task(s) + #--------------------- + - task: AzurePowerShell@5 + name: deployModule + displayName: 'Deploy template file via connection [${{ parameters.serviceConnection }}]' + inputs: + azureSubscription: ${{ parameters.serviceConnection }} + azurePowerShellVersion: 'latestVersion' + preferredAzurePowerShellVersion: '' + pwsh: true + ScriptType: InlineScript + inline: | + # Load used functions + . (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourceDeployment' 'New-TemplateDeployment.ps1') + + # Fetching parameters + $location = '${{ parameters.location }}' + $subscriptionId = '${{ parameters.subscriptionId }}' + $managementGroupId = '${{ parameters.managementGroupId }}' + + # Resolve template file path + $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' + + # Determine possible parameters depending on file type + if ((Split-Path $moduleTestFilePath -Extension) -eq '.bicep') { + $moduleTemplateContent = bicep build $moduleTestFilePath --stdout | ConvertFrom-Json -AsHashtable + $moduleTemplatePossibleParameters = $moduleTemplateContent.parameters.Keys + } else { + $moduleTemplatePossibleParameters = ((Get-Content $moduleTestFilePath -Raw) | ConvertFrom-Json -AsHashtable).parameters.keys + } + + # ----------- # + # INVOKE TEST # + # ----------- # + + # Building input object + $functionInput = @{ + TemplateFilePath = $moduleTestFilePath + Location = $location + SubscriptionId = $subscriptionId + ManagementGroupId = $managementGroupId + doNotThrow = $true + AdditionalParameters = @{} + } + + # Handle additional parameters + if (-not [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') -and ($moduleTemplatePossibleParameters.Keys -contains 'enableDefaultTelemetry')) { + $functionInput['additionalParameters'] += @{ + enableDefaultTelemetry = [System.Convert]::ToBoolean('$(enableDefaultTelemetry)') + } + } + + Write-Verbose 'Invoke task with' -Verbose + Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose + + # Invoke deployment + $res = New-TemplateDeployment @functionInput -Verbose + + # Get deployment name + $deploymentNames = $res.DeploymentNames | ConvertTo-Json -Compress + Write-Verbose "Deployment name(s) [$deploymentNames]" -Verbose + Write-Host "##vso[task.setvariable variable=deploymentNames]$deploymentNames" + Write-Host "##vso[task.setvariable variable=deploymentNames;isOutput=true]$deploymentNames" + + # Populate further outputs + $deploymentOutputHashTable=@{} + + foreach ($outputKey in $res.deploymentOutput.Keys) { + Write-Output ('##vso[task.setvariable variable={0}]{1}' -f $outputKey, $res.deploymentOutput[$outputKey].Value) + $deploymentOutputHashTable.add($outputKey,$res.deploymentOutput[$outputKey].Value) + } + + $deploymentOutput = $deploymentOutputHashTable | ConvertTo-Json -Compress -Depth 100 + Write-Verbose "Deployment output: $deploymentOutput" -Verbose + + if ($res.ContainsKey('exception')) { + # Happens only if there is an exception + throw $res.exception + } + + # [Removal] task(s) + #------------------ + - task: AzurePowerShell@5 + displayName: 'Remove deployed resources via [${{ parameters.serviceConnection }}]' + condition: and(succeededOrFailed(), eq('${{ parameters.removeDeployment }}', 'True'), not(eq(variables['deploymentNames'],'')), not(startsWith(variables['deploymentNames'], 'variables[' ))) + inputs: + azureSubscription: ${{ parameters.serviceConnection }} + azurePowerShellVersion: ${{ parameters.azurePowerShellVersion }} + preferredAzurePowerShellVersion: ${{ parameters.preferredAzurePowerShellVersion }} + ScriptType: InlineScript + failOnStandardError: false + pwsh: true + inline: | + # Load used function + . (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourceRemoval' 'Initialize-DeploymentRemoval.ps1') + + $functionInput = @{ + TemplateFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' + SubscriptionId = '${{ parameters.subscriptionId }}' + ManagementGroupId = '${{ parameters.managementGroupId }}' + DeploymentNames = '$(deploymentNames)' | ConvertFrom-Json + } + + Write-Verbose 'Invoke task with' -Verbose + Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose + + Initialize-DeploymentRemoval @functionInput From 7b19604725e89d673e6503cdc53aa89259365693 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 19:09:04 +0100 Subject: [PATCH 32/41] Update to latest --- .../jobs.validateModuleDeployment.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml index 15c671df30..a577e29712 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml @@ -83,12 +83,21 @@ jobs: steps: # [Agent] Prepare environment #---------------------------- - - task: PowerShell@2 - displayName: 'Setup agent for deployment' + # - task: PowerShell@2 + # displayName: 'Setup agent for deployment' + # inputs: + # targetType: inline + # pwsh: true + # script: | + - task: AzurePowerShell@5 + displayName: 'Replace tokens in template file via connection [${{ parameters.serviceConnection }}]' inputs: - targetType: inline + azureSubscription: ${{ parameters.serviceConnection }} + azurePowerShellVersion: 'latestVersion' + preferredAzurePowerShellVersion: '' + ScriptType: InlineScript pwsh: true - script: | + inline: | # Load used functions . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Set-EnvironmentOnAgent.ps1') From 242ffd4d206f8767aab6d241c240c04fb8681f3b Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 19:10:54 +0100 Subject: [PATCH 33/41] Update to latest --- .../jobs.validateModuleDeployment.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml index a577e29712..15c671df30 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml @@ -83,21 +83,12 @@ jobs: steps: # [Agent] Prepare environment #---------------------------- - # - task: PowerShell@2 - # displayName: 'Setup agent for deployment' - # inputs: - # targetType: inline - # pwsh: true - # script: | - - task: AzurePowerShell@5 - displayName: 'Replace tokens in template file via connection [${{ parameters.serviceConnection }}]' + - task: PowerShell@2 + displayName: 'Setup agent for deployment' inputs: - azureSubscription: ${{ parameters.serviceConnection }} - azurePowerShellVersion: 'latestVersion' - preferredAzurePowerShellVersion: '' - ScriptType: InlineScript + targetType: inline pwsh: true - inline: | + script: | # Load used functions . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Set-EnvironmentOnAgent.ps1') From e658b562f9c4e0017680da97483346f7bbfe9d8e Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 22:28:42 +0100 Subject: [PATCH 34/41] Renamed paths --- .../pipelineTemplates/jobs.getModuleTestFiles.yml | 8 ++++---- .../pipelineTemplates/jobs.validateModuleDeployment.yml | 2 +- .../pipelineTemplates/jobs.validateModulePSRule.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml index 80158631a0..1f3fbf4c4a 100644 --- a/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml +++ b/.azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml @@ -45,8 +45,8 @@ jobs: $testFilePaths | ForEach-Object { $testFileName = Split-Path (Split-Path $_) -Leaf $testTable[$testFileName] = @{ - path = $_ - name = $testFileName + moduleTestFilePath = $_ + moduleTestFileName = $testFileName } } | ConvertTo-Json -Compress $deployCompressedOutput = $testTable | ConvertTo-Json -Compress @@ -67,8 +67,8 @@ jobs: $psRuleTestFilePaths | ForEach-Object { $testFileName = Split-Path (Split-Path $_) -Leaf $psRuleTestTable[$testFileName] = @{ - path = $_ - name = $testFileName + moduleTestFilePath = $_ + moduleTestFileName = $testFileName } } $psRuleCompressedOutput = $psRuleTestTable | ConvertTo-Json -Compress diff --git a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml index 15c671df30..a6a8640d50 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml @@ -128,7 +128,7 @@ jobs: . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Get-LocallyReferencedFileList.ps1') # Get target files - $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(path)' + $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' # Get target files $targetFileList = @( diff --git a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml index e9c4078c1e..9cc694a08b 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml @@ -79,7 +79,7 @@ jobs: . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Get-LocallyReferencedFileList.ps1') # Get target files - $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(path)' + $moduleTestFilePath = Join-Path '$(System.DefaultWorkingDirectory)' '$(modulePath)' '$(moduleTestFilePath)' # Get target files $targetFileList = @( From c3986544dc2fa83f6a45edfba3e67f34321ae800 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 22:32:36 +0100 Subject: [PATCH 35/41] Updated to more specific naming to avoid overlaps with e.g., pwsh path var --- .../actions/templates/getModuleTestFiles/action.yml | 8 ++++---- .github/workflows/template.module.yml | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/actions/templates/getModuleTestFiles/action.yml b/.github/actions/templates/getModuleTestFiles/action.yml index 43b26fc06e..7772e18fa1 100644 --- a/.github/actions/templates/getModuleTestFiles/action.yml +++ b/.github/actions/templates/getModuleTestFiles/action.yml @@ -42,8 +42,8 @@ runs: # Output values to be accessed by next jobs $deployCompressedOutput = $testFilePaths | ForEach-Object { @{ - path = $_ - name = Split-Path (Split-Path $_) -Leaf + moduleTestFilePath = $_ + moduleTestFileName = Split-Path (Split-Path $_) -Leaf } } | ConvertTo-Json -Compress @@ -65,8 +65,8 @@ runs: # Output values to be accessed by next jobs $psRuleCompressedOutput = $psRuleTestFilePaths | ForEach-Object { @{ - path = $_ - name = Split-Path (Split-Path $_) -Leaf + moduleTestFilePath = $_ + moduleTestFileName = Split-Path (Split-Path $_) -Leaf } } | ConvertTo-Json -Compress diff --git a/.github/workflows/template.module.yml b/.github/workflows/template.module.yml index f37ed701ad..a0f7c5cf3a 100644 --- a/.github/workflows/template.module.yml +++ b/.github/workflows/template.module.yml @@ -54,7 +54,7 @@ jobs: # PSRule validation # ######################### job_psrule_test: # Note: Please don't change this job name. It is used by the setEnvironment action to define which PS modules to install on runners. - name: "PSRule [${{ matrix.testCases.name }}]" + name: "PSRule [${{ matrix.testCases.moduleTestFileName }}]" runs-on: ubuntu-latest if: (fromJson(inputs.workflowInput)).staticValidation == 'true' strategy: @@ -70,10 +70,10 @@ jobs: uses: ./.github/actions/templates/setEnvironment with: variablesPath: ${{ env.variablesPath }} - - name: "Run PSRule validation with [${{ matrix.testCases.path }}]" + - name: "Run PSRule validation with [${{ matrix.testCases.moduleTestFilePath }}]" uses: ./.github/actions/templates/validateModulePSRule with: - templateFilePath: "${{ inputs.modulePath }}/${{ matrix.testCases.path }}" + templateFilePath: "${{ inputs.modulePath }}/${{ matrix.testCases.moduleTestFilePath }}" subscriptionId: '${{ secrets.ARM_SUBSCRIPTION_ID }}' managementGroupId: '${{ secrets.ARM_MGMTGROUP_ID }}' psrulePath: "utilities/pipelines/staticValidation/psrule" @@ -82,7 +82,7 @@ jobs: # Deployment validation # ############################# job_module_deploy_validation: # Note: Please don't change this job name. It is used by the setEnvironment action to define which PS modules to install on runners. - name: 'Deploy [${{ matrix.testCases.name}}]' + name: 'Deploy [${{ matrix.testCases.moduleTestFileName}}]' runs-on: ubuntu-latest if: | !cancelled() && @@ -105,10 +105,10 @@ jobs: with: variablesPath: ${{ env.variablesPath }} removeDeployment: '${{ fromJson(inputs.workflowInput).removeDeployment }}' - - name: 'Run deployment validation with test file [${{ matrix.testCases.path }}]' + - name: 'Run deployment validation with test file [${{ matrix.testCases.moduleTestFilePath }}]' uses: ./.github/actions/templates/validateModuleDeployment with: - templateFilePath: '${{ inputs.modulePath }}/${{ matrix.testCases.path }}' + templateFilePath: '${{ inputs.modulePath }}/${{ matrix.testCases.moduleTestFilePath }}' location: '${{ env.location }}' subscriptionId: '${{ secrets.ARM_SUBSCRIPTION_ID }}' managementGroupId: '${{ secrets.ARM_MGMTGROUP_ID }}' From 44dd3ea119ea5737a1d0109524f5b13456fd5b6a Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 22:48:23 +0100 Subject: [PATCH 36/41] Undid unrelated changes --- .../psrule/.ps-rule/dep-suppress.Rule.yaml | 10 +++++----- .../psrule/.ps-rule/min-suppress.Rule.yaml | 6 +++--- .../psrule/.ps-rule/na-suppress.Rule.yaml | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/utilities/pipelines/staticValidation/psrule/.ps-rule/dep-suppress.Rule.yaml b/utilities/pipelines/staticValidation/psrule/.ps-rule/dep-suppress.Rule.yaml index 49e972b8b7..9384dbda4c 100644 --- a/utilities/pipelines/staticValidation/psrule/.ps-rule/dep-suppress.Rule.yaml +++ b/utilities/pipelines/staticValidation/psrule/.ps-rule/dep-suppress.Rule.yaml @@ -3,11 +3,11 @@ apiVersion: github.com/microsoft/PSRule/v1 kind: SuppressionGroup metadata: - name: "SuppressDependency" + name: 'SuppressDependency' spec: if: - name: "." + name: '.' startsWith: - - "dep" - - "ms." - - "privatelink." + - 'dep' + - 'ms.' + - 'privatelink.' diff --git a/utilities/pipelines/staticValidation/psrule/.ps-rule/min-suppress.Rule.yaml b/utilities/pipelines/staticValidation/psrule/.ps-rule/min-suppress.Rule.yaml index f8bd41fc01..afdddc79b2 100644 --- a/utilities/pipelines/staticValidation/psrule/.ps-rule/min-suppress.Rule.yaml +++ b/utilities/pipelines/staticValidation/psrule/.ps-rule/min-suppress.Rule.yaml @@ -3,7 +3,7 @@ apiVersion: github.com/microsoft/PSRule/v1 kind: SuppressionGroup metadata: - name: "SuppressMin" + name: 'SuppressMin' spec: rule: - Azure.Resource.UseTags @@ -29,6 +29,6 @@ spec: - Azure.VM.AMA - Azure.VM.Standalone if: - name: "." + name: '.' contains: - - "min" + - 'min' diff --git a/utilities/pipelines/staticValidation/psrule/.ps-rule/na-suppress.Rule.yaml b/utilities/pipelines/staticValidation/psrule/.ps-rule/na-suppress.Rule.yaml index ec8758fce3..f45f45ea41 100644 --- a/utilities/pipelines/staticValidation/psrule/.ps-rule/na-suppress.Rule.yaml +++ b/utilities/pipelines/staticValidation/psrule/.ps-rule/na-suppress.Rule.yaml @@ -3,12 +3,12 @@ apiVersion: github.com/microsoft/PSRule/v1 kind: SuppressionGroup metadata: - name: "SuppressNA" + name: 'SuppressNA' spec: rule: - Azure.Resource.UseTags if: - type: "." + type: '.' in: - Microsoft.OperationsManagement/solutions - Microsoft.ManagedServices/registrationDefinitions From 13cb3eb4edf15fdfce9ea06465857b7d6d5db086 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 23:00:08 +0100 Subject: [PATCH 37/41] Added Az.Resources install to PSRule prep --- .../jobs.validateModulePSRule.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml index 9cc694a08b..d47a2806e4 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml @@ -66,6 +66,25 @@ jobs: strategy: matrix: $[ dependencies.getModuleTestFiles.outputs['getModuleTestFilesTask.psRuleModuleTestFilePaths'] ] steps: + # [Agent] Prepare environment + #---------------------------- + - task: PowerShell@2 + displayName: 'Setup agent for deployment' + inputs: + targetType: inline + pwsh: true + script: | + # Load used functions + . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Set-EnvironmentOnAgent.ps1') + + # Define PS modules to install on the runner + $modules = @( + @{ Name = 'Az.Resources' } + ) + + # Set agent up + Set-EnvironmentOnAgent -PSModules $modules + # [Agent] Replace tokens #----------------------- - task: PowerShell@2 From cdace730cc6be5da7f954d1f5adebe36e15c1a48 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Sun, 3 Mar 2024 23:05:18 +0100 Subject: [PATCH 38/41] Update to latest --- .../jobs.validateModulePSRule.yml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml index d47a2806e4..9cc694a08b 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml @@ -66,25 +66,6 @@ jobs: strategy: matrix: $[ dependencies.getModuleTestFiles.outputs['getModuleTestFilesTask.psRuleModuleTestFilePaths'] ] steps: - # [Agent] Prepare environment - #---------------------------- - - task: PowerShell@2 - displayName: 'Setup agent for deployment' - inputs: - targetType: inline - pwsh: true - script: | - # Load used functions - . (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Set-EnvironmentOnAgent.ps1') - - # Define PS modules to install on the runner - $modules = @( - @{ Name = 'Az.Resources' } - ) - - # Set agent up - Set-EnvironmentOnAgent -PSModules $modules - # [Agent] Replace tokens #----------------------- - task: PowerShell@2 From 99ca0a5c41b8ee8f587d431b80163ece4d5dcdb2 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Mon, 4 Mar 2024 20:36:39 +0100 Subject: [PATCH 39/41] GH PS Rule config fix --- .../templates/validateModulePSRule/action.yml | 29 ++++++++++++------- .github/workflows/template.module.yml | 1 - 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/actions/templates/validateModulePSRule/action.yml b/.github/actions/templates/validateModulePSRule/action.yml index 2f052b6e6c..d04def029a 100644 --- a/.github/actions/templates/validateModulePSRule/action.yml +++ b/.github/actions/templates/validateModulePSRule/action.yml @@ -10,13 +10,14 @@ ## ACTION PARAMETERS ## ##-------------------------------------------## ## -## |=================================================================================================================================================================| -## | Parameter | Required | Default | Description | Example | -## |--------------------------|----------|---------|--------------------------------------|--------------------------------------------------------------------------| -## | templateFilePath | true | '' | The path to the module PSRule tests. | 'modules/api-management/service/.test/common/main.test.bicep' | -## | subscriptionId | false | '' | The subscriptionId to deploy to | '1a97b80a-4dda-4f50-ab53-349e29344654' | -## | managementGroupId | false | '' | The managementGroupId to deploy to | '1a97b80a-4dda-4f50-ab53-349e29344654' | -## |=================================================================================================================================================================| +## |=============================================================================================================================================================================================| +## | Parameter | Required | Default | Description | Example | +## |--------------------------|----------|-----------------------------------------------|---------------------------------------|---------------------------------------------------------------| +## | templateFilePath | true | '' | The path to the module PSRule tests. | 'modules/api-management/service/.test/common/main.test.bicep' | +## | subscriptionId | false | '' | The subscriptionId to deploy to | '1a97b80a-4dda-4f50-ab53-349e29344654' | +## | managementGroupId | false | '' | The managementGroupId to deploy to | '1a97b80a-4dda-4f50-ab53-349e29344654' | +## | psrulePath | false | 'utilities/pipelines/staticValidation/psrule' | The path to the PS-Rule configuration | 'utilities/pipelines/staticValidation/psrule' | +## |=============================================================================================================================================================================================| ## ##---------------------------------------------## @@ -34,6 +35,10 @@ inputs: managementGroupId: description: 'The management group ID to deploy to' required: false + psrulePath: + description: 'The path to PSRule configurations' + required: false + default: 'utilities/pipelines/staticValidation/psrule' runs: using: 'composite' @@ -89,15 +94,19 @@ runs: Write-Output '::endgroup::' - # Run analysis by using the PSRule GitHub action. + # [PSRule validation] task(s) + #----------------------------- - name: Run PSRule analysis - uses: microsoft/ps-rule@v2.4.0 + uses: microsoft/ps-rule@v2.9.0 continue-on-error: true # Setting this whilst PSRule gets bedded in, in this project with: modules: 'PSRule.Rules.Azure' inputPath: '${{ inputs.templateFilePath}}' outputFormat: Csv outputPath: '${{ inputs.templateFilePath}}-PSRule-output.csv' + option: '${{ github.workspace }}/${{ inputs.psrulePath}}/ps-rule.yaml' # Path to PSRule configuration options file + source: '${{ inputs.psrulePath}}/.ps-rule/' # Path to folder containing suppression rules to use for analysis. + summary: false # Disabling as taken care in customized task - name: 'Parse CSV content' if: always() @@ -109,7 +118,7 @@ runs: Write-Output '::group::Parse CSV content' # Load used functions - . (Join-Path $env:GITHUB_WORKSPACE 'utilities' 'pipelines' 'PSRuleValidation' 'Set-PSRuleGitHubOutput.ps1') + . (Join-Path $env:GITHUB_WORKSPACE 'utilities' 'pipelines' 'staticValidation' 'psrule' 'Set-PSRuleGitHubOutput.ps1') # Populate parameter input $ParameterInput = @{ diff --git a/.github/workflows/template.module.yml b/.github/workflows/template.module.yml index a0f7c5cf3a..92d4db2c5e 100644 --- a/.github/workflows/template.module.yml +++ b/.github/workflows/template.module.yml @@ -76,7 +76,6 @@ jobs: templateFilePath: "${{ inputs.modulePath }}/${{ matrix.testCases.moduleTestFilePath }}" subscriptionId: '${{ secrets.ARM_SUBSCRIPTION_ID }}' managementGroupId: '${{ secrets.ARM_MGMTGROUP_ID }}' - psrulePath: "utilities/pipelines/staticValidation/psrule" ############################# # Deployment validation # From a599bb2760522fe1c2d3ea460c6fdf3a39ed0ceb Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Mon, 4 Mar 2024 20:48:09 +0100 Subject: [PATCH 40/41] Update to latest --- .../jobs.validateModulePSRule.yml | 29 ++++++++++--------- .../pipelineTemplates/stages.module.yml | 1 - .../templates/validateModulePSRule/action.yml | 2 +- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml index 9cc694a08b..dea9805eb9 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml @@ -21,18 +21,18 @@ ## ## NOTE: If you don't need to overwrite a shared value, you can IGNORE this section ## -## |========================================================================================================================================================================================================================================================================| -## | Parameter | Default Value | Description | Example | -## |---------------------------------|---------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------| -## | poolName | '$(poolName)' | You can provide either a [poolname] or [vmImage] to run the job on | 'Custom Deployment Pool' | -## | vmImage | '$(vmImage)' | You can provide either a [poolname] or [vmImage] to run the job on | 'ubuntu20.04' | -## | defaultJobTimeoutInMinutes | 120 | The timeout for the job in this pipeline | 120 | -## | modulePath | '$(modulePath)' | The path to the module to deploy. | 'c:/KeyVault' | -## | moduleTestFilePath | 'utilities/pipelines/staticValidation/module.tests.ps1' | The path to the module Pester tests. | 'utilities/pipelines/staticValidation/module.tests.ps1' | -## | location | '$(location)' | The location to validate with | 'France Central' | -## | subscriptionId | '$(ARM_SUBSCRIPTION_ID)' | The id of the subscription to validate with when using a Management group service connection | 'aed7c000-6387-412e-bed0-24dfddf4bbc6' | -## | managementGroupId | '$(ARM_MGMTGROUP_ID)' | The id of the management group to validate with. Required only for Management-Group-Level validations | '477c9620-cb01-454f-9ebc-fc6b1df48c14' | -## |========================================================================================================================================================================================================================================================================| +## |==============================================================================================================================================================================================================================================| +## | Parameter | Default Value | Description | Example | +## |----------------------------|-----------------------------------------------|-------------------------------------------------------------------------------------------------------|---------------------------------------------------------| +## | poolName | '$(poolName)' | You can provide either a [poolname] or [vmImage] to run the job on | 'Custom Deployment Pool' | +## | vmImage | '$(vmImage)' | You can provide either a [poolname] or [vmImage] to run the job on | 'ubuntu20.04' | +## | defaultJobTimeoutInMinutes | 120 | The timeout for the job in this pipeline | 120 | +## | modulePath | '$(modulePath)' | The path to the module to deploy. | 'c:/KeyVault' | +## | psrulePath | 'utilities/pipelines/staticValidation/psrule' | The path to the PS-Rule configuration | 'utilities/pipelines/staticValidation/module.tests.ps1' | +## | location | '$(location)' | The location to validate with | 'France Central' | +## | subscriptionId | '$(ARM_SUBSCRIPTION_ID)' | The id of the subscription to validate with when using a Management group service connection | 'aed7c000-6387-412e-bed0-24dfddf4bbc6' | +## | managementGroupId | '$(ARM_MGMTGROUP_ID)' | The id of the management group to validate with. Required only for Management-Group-Level validations | '477c9620-cb01-454f-9ebc-fc6b1df48c14' | +## |==============================================================================================================================================================================================================================================| ## ##---------------------------------------------## @@ -43,7 +43,7 @@ parameters: defaultJobTimeoutInMinutes: 120 # Logic-related parameters modulePath: '$(modulePath)' - moduleTestFilePath: 'utilities/pipelines/staticValidation/module.tests.ps1' + psrulePath: 'utilities/pipelines/staticValidation/psrule' location: '$(location)' subscriptionId: '$(ARM_SUBSCRIPTION_ID)' managementGroupId: '$(ARM_MGMTGROUP_ID)' @@ -130,6 +130,7 @@ jobs: # Invoke Token Replacement Functionality [For Module] $null = Convert-TokensInFileList @ConvertTokensInputs + - task: ps-rule-assert@2 displayName: Analyze Azure template files inputs: @@ -137,5 +138,7 @@ jobs: modules: 'PSRule.Rules.Azure' inputPath: '$(System.DefaultWorkingDirectory)/$(modulePath)/$(moduleTestFilePath)' outputFormat: Csv + option: '(System.DefaultWorkingDirectory)/${{ parameters.psrulePath}}/ps-rule.yaml' # Path to PSRule configuration options file + source: '${{ parameters.psrulePath}}/.ps-rule/' # Path to folder containing suppression rules to use for analysis. outputPath: '$(System.DefaultWorkingDirectory)/$(modulePath)/$(moduleTestFilePath)-PSRule-output.csv' continueOnError: true diff --git a/.azuredevops/pipelineTemplates/stages.module.yml b/.azuredevops/pipelineTemplates/stages.module.yml index 96df66b71a..3367683709 100644 --- a/.azuredevops/pipelineTemplates/stages.module.yml +++ b/.azuredevops/pipelineTemplates/stages.module.yml @@ -22,7 +22,6 @@ stages: jobs: - template: /.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml parameters: - templateFilePath: '$(modulePath)/main.bicep' removeDeployment: '${{ parameters.removeDeployment }}' defaultJobTimeoutInMinutes: ${{ parameters.defaultJobTimeoutInMinutes }} diff --git a/.github/actions/templates/validateModulePSRule/action.yml b/.github/actions/templates/validateModulePSRule/action.yml index d04def029a..db5ac2cfbb 100644 --- a/.github/actions/templates/validateModulePSRule/action.yml +++ b/.github/actions/templates/validateModulePSRule/action.yml @@ -13,7 +13,7 @@ ## |=============================================================================================================================================================================================| ## | Parameter | Required | Default | Description | Example | ## |--------------------------|----------|-----------------------------------------------|---------------------------------------|---------------------------------------------------------------| -## | templateFilePath | true | '' | The path to the module PSRule tests. | 'modules/api-management/service/.test/common/main.test.bicep' | +## | templateFilePath | true | '' | The path to the template to test. | 'modules/api-management/service/.test/common/main.test.bicep' | ## | subscriptionId | false | '' | The subscriptionId to deploy to | '1a97b80a-4dda-4f50-ab53-349e29344654' | ## | managementGroupId | false | '' | The managementGroupId to deploy to | '1a97b80a-4dda-4f50-ab53-349e29344654' | ## | psrulePath | false | 'utilities/pipelines/staticValidation/psrule' | The path to the PS-Rule configuration | 'utilities/pipelines/staticValidation/psrule' | From 6bfe2767e949d72687442dbef89b3e32687fd65f Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Mon, 4 Mar 2024 20:59:16 +0100 Subject: [PATCH 41/41] Update to latest --- .../pipelineTemplates/jobs.validateModuleDeployment.yml | 2 -- .azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml index a6a8640d50..c8e06dba1b 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModuleDeployment.yml @@ -29,7 +29,6 @@ ## | vmImage | '$(vmImage)' | You can provide either a [poolname] or [vmImage] to run the job on. | 'ubuntu20.04' | ## | defaultJobTimeoutInMinutes | 120 | The timeout for the job in this pipeline. | 120 | ## | removeDeployment | 'true' | Set to [true] to flag resources for removal. If not provided, defaults to true. | 'true' | -## | templateFilePath | '' | Path to the template file to deploy. | 'modules/analysis-services/servers/main.bicep' | ## | customTokens | '' | Additional token pairs in json format. | '{"tokenName":"tokenValue"}' | ## | jobDisplayName | '' | The display name of the job. | 'Deploy module' | ## | modulePath | '$(modulePath)' | The path to the module to deploy. | 'c:/KeyVault' | @@ -50,7 +49,6 @@ parameters: defaultJobTimeoutInMinutes: 120 # Logic-related parameters removeDeployment: false - templateFilePath: '' customTokens: '' modulePath: '$(modulePath)' location: '$(location)' diff --git a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml index dea9805eb9..9edac100e4 100644 --- a/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml +++ b/.azuredevops/pipelineTemplates/jobs.validateModulePSRule.yml @@ -138,7 +138,7 @@ jobs: modules: 'PSRule.Rules.Azure' inputPath: '$(System.DefaultWorkingDirectory)/$(modulePath)/$(moduleTestFilePath)' outputFormat: Csv - option: '(System.DefaultWorkingDirectory)/${{ parameters.psrulePath}}/ps-rule.yaml' # Path to PSRule configuration options file + option: '${{ parameters.psrulePath}}/ps-rule.yaml' # Path to PSRule configuration options file source: '${{ parameters.psrulePath}}/.ps-rule/' # Path to folder containing suppression rules to use for analysis. outputPath: '$(System.DefaultWorkingDirectory)/$(modulePath)/$(moduleTestFilePath)-PSRule-output.csv' continueOnError: true