Skip to content

Commit

Permalink
[Fixes] Fixed script resolving local referenecs (#3576)
Browse files Browse the repository at this point in the history
* Small fix to local refence resolution

* Regenerated all readmes
  • Loading branch information
AlexanderSehr authored Aug 26, 2023
1 parent 4020442 commit 55da8d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions modules/compute/virtual-machine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,8 @@ This section gives you an overview of all local-referenced module files (i.e., o

| Reference | Type |
| :-- | :-- |
| `network/network-interface` | Local reference |
| `network/public-ip-address` | Local reference |
| `recovery-services/vault/backup-fabric/protection-container/protected-item` | Local reference |

## Deployment examples
Expand Down
4 changes: 3 additions & 1 deletion utilities/tools/Get-CrossReferencedModuleList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ function Get-CrossReferencedModuleList {

foreach ($topLevelFolderPath in $topLevelFolderPaths) {

$moduleTemplatePaths = (Get-ChildItem -Path $topLevelFolderPath -Recurse -Include 'main.bicep' -File -Force).FullName
$moduleTemplatePaths = (Get-ChildItem -Path $topLevelFolderPath -Recurse -Include '*.bicep' -File -Force).FullName | Where-Object {
$_ -notmatch '.+[\/|\\].test[\/|\\].+'
}

$resourceReferences = [System.Collections.ArrayList]@()
$localPathReferences = [System.Collections.ArrayList]@()
Expand Down

0 comments on commit 55da8d1

Please sign in to comment.