Skip to content

Latest commit

 

History

History
109 lines (78 loc) · 2.6 KB

Get-AvmBicepWorkflowModuleMatrix.md

File metadata and controls

109 lines (78 loc) · 2.6 KB

Get-AvmBicepWorkflowModuleMatrix

Synopsis

Build a deterministic Bicep module workflow matrix.

Description

Selects existing top-level AVM Bicep modules from either explicit manual paths or changed repository paths. Matrix entries include static, E2E, and PSRule policy metadata from Get-AvmBicepWorkflowTestFiles. README changes are ignored, and callers can also exclude metadata-only changes. Paths are validated as literal repository-relative paths.

Syntax

Get-AvmBicepWorkflowModuleMatrix -Root <string> -ChangedFiles <string[]> [-ExcludeMetadataChanges] [-SkipModuleVersionCheck] [<CommonParameters>]

Get-AvmBicepWorkflowModuleMatrix -Root <string> -ModulePaths <string> [-ExcludeMetadataChanges] [-SkipModuleVersionCheck] [<CommonParameters>]

Parameters

-ChangedFiles

Changed repository-relative paths from which module roots are inferred.

Property Value
Type String[]
Required true
Position named
Default value
Accept pipeline input false
Accept wildcard characters false

-ExcludeMetadataChanges

Ignore metadata.json changes while processing ChangedFiles.

Property Value
Type Switch
Required false
Position named
Default value False
Accept pipeline input false
Accept wildcard characters false

-ModulePaths

Comma-separated manually selected top-level Bicep module paths.

Property Value
Type String
Required true
Position named
Default value
Accept pipeline input false
Accept wildcard characters false

-Root

Existing filesystem repository root.

Property Value
Type String
Required true
Position named
Default value
Accept pipeline input false
Accept wildcard characters false

-SkipModuleVersionCheck

Skip the PowerShell Gallery version check for source or offline callers.

Property Value
Type Switch
Required false
Position named
Default value False
Accept pipeline input false
Accept wildcard characters false

Examples

EXAMPLE 1

Get-AvmBicepWorkflowModuleMatrix -Root $repo -ModulePaths 'avm/res/storage/storage-account'

EXAMPLE 2

Get-AvmBicepWorkflowModuleMatrix -Root $repo -ChangedFiles $changed -ExcludeMetadataChanges

Outputs

  • PSCustomObject with an Include array. Each entry has ModulePath, TestFiles, and PolicyTestFiles properties.