Skip to content

Commit

Permalink
[Utilities] Ported updated reference resolution from AVM (#4468)
Browse files Browse the repository at this point in the history
* Updated script

* Update to latest
  • Loading branch information
AlexanderSehr authored Jan 29, 2024
1 parent bdb0b8a commit 2a38fee
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 23 deletions.
4 changes: 2 additions & 2 deletions modules/analysis-services/server/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Analysis Services Servers `[Microsoft.AnalysisServices/servers]`

This module deploys an Analysis Services Server.

> This module has already been migrated to [AVM](https://github.com/Azure/bicep-registry-modules/tree/main/avm/res). Only the AVM version is expected to receive updates / new features. Please do not work on improving this module in [CARML](https://aka.ms/carml).
This module deploys an Analysis Services Server.

## Navigation

- [Resource Types](#Resource-Types)
Expand Down
4 changes: 2 additions & 2 deletions modules/cache/redis/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Redis Cache `[Microsoft.Cache/redis]`

This module deploys a Redis Cache.

> This module has already been migrated to [AVM](https://github.com/Azure/bicep-registry-modules/tree/main/avm/res). Only the AVM version is expected to receive updates / new features. Please do not work on improving this module in [CARML](https://aka.ms/carml).
This module deploys a Redis Cache.

## Navigation

- [Resource Types](#Resource-Types)
Expand Down
4 changes: 2 additions & 2 deletions modules/compute/disk/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Compute Disks `[Microsoft.Compute/disks]`

This module deploys a Compute Disk.

> This module has already been migrated to [AVM](https://github.com/Azure/bicep-registry-modules/tree/main/avm/res). Only the AVM version is expected to receive updates / new features. Please do not work on improving this module in [CARML](https://aka.ms/carml).
This module deploys a Compute Disk

## Navigation

- [Resource Types](#Resource-Types)
Expand Down
4 changes: 2 additions & 2 deletions modules/compute/image/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Images `[Microsoft.Compute/images]`

This module deploys a Compute Image.

> This module has already been migrated to [AVM](https://github.com/Azure/bicep-registry-modules/tree/main/avm/res). Only the AVM version is expected to receive updates / new features. Please do not work on improving this module in [CARML](https://aka.ms/carml).
This module deploys a Compute Image.

## Navigation

- [Resource Types](#Resource-Types)
Expand Down
4 changes: 2 additions & 2 deletions modules/consumption/budget/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Consumption Budgets `[Microsoft.Consumption/budgets]`

This module deploys a Consumption Budget for Subscriptions.

> This module has already been migrated to [AVM](https://github.com/Azure/bicep-registry-modules/tree/main/avm/res). Only the AVM version is expected to receive updates / new features. Please do not work on improving this module in [CARML](https://aka.ms/carml).
This module deploys a Consumption Budget for Subscriptions.

## Navigation

- [Resource Types](#Resource-Types)
Expand Down
4 changes: 2 additions & 2 deletions modules/data-protection/backup-vault/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Data Protection Backup Vaults `[Microsoft.DataProtection/backupVaults]`

This module deploys a Data Protection Backup Vault.

> This module has already been migrated to [AVM](https://github.com/Azure/bicep-registry-modules/tree/main/avm/res). Only the AVM version is expected to receive updates / new features. Please do not work on improving this module in [CARML](https://aka.ms/carml).
This module deploys a Data Protection Backup Vault.

## Navigation

- [Resource Types](#Resource-Types)
Expand Down
4 changes: 2 additions & 2 deletions modules/databricks/access-connector/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Azure Databricks Access Connectors `[Microsoft.Databricks/accessConnectors]`

This module deploys an Azure Databricks Access Connector.

> This module has already been migrated to [AVM](https://github.com/Azure/bicep-registry-modules/tree/main/avm/res). Only the AVM version is expected to receive updates / new features. Please do not work on improving this module in [CARML](https://aka.ms/carml).
This module deploys an Azure Databricks Access Connector.

## Navigation

- [Resource Types](#Resource-Types)
Expand Down
4 changes: 2 additions & 2 deletions modules/databricks/workspace/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Azure Databricks Workspaces `[Microsoft.Databricks/workspaces]`

This module deploys an Azure Databricks Workspace.

> This module has already been migrated to [AVM](https://github.com/Azure/bicep-registry-modules/tree/main/avm/res). Only the AVM version is expected to receive updates / new features. Please do not work on improving this module in [CARML](https://aka.ms/carml).
This module deploys an Azure Databricks Workspace.

## Navigation

- [Resource Types](#Resource-Types)
Expand Down
4 changes: 2 additions & 2 deletions modules/db-for-my-sql/flexible-server/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# DBforMySQL Flexible Servers `[Microsoft.DBforMySQL/flexibleServers]`

This module deploys a DBforMySQL Flexible Server.

> This module has already been migrated to [AVM](https://github.com/Azure/bicep-registry-modules/tree/main/avm/res). Only the AVM version is expected to receive updates / new features. Please do not work on improving this module in [CARML](https://aka.ms/carml).
This module deploys a DBforMySQL Flexible Server.

## Navigation

- [Resource Types](#Resource-Types)
Expand Down
4 changes: 2 additions & 2 deletions modules/health-bot/health-bot/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Azure Health Bots `[Microsoft.HealthBot/healthBots]`

This module deploys an Azure Health Bot.

> This module has already been migrated to [AVM](https://github.com/Azure/bicep-registry-modules/tree/main/avm/res). Only the AVM version is expected to receive updates / new features. Please do not work on improving this module in [CARML](https://aka.ms/carml).
This module deploys an Azure Health Bot.

## Navigation

- [Resource Types](#Resource-Types)
Expand Down
4 changes: 2 additions & 2 deletions modules/net-app/net-app-account/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Azure NetApp Files `[Microsoft.NetApp/netAppAccounts]`

This module deploys an Azure NetApp File.

> This module has already been migrated to [AVM](https://github.com/Azure/bicep-registry-modules/tree/main/avm/res). Only the AVM version is expected to receive updates / new features. Please do not work on improving this module in [CARML](https://aka.ms/carml).
This module deploys an Azure NetApp File.

## Navigation

- [Resource Types](#Resource-Types)
Expand Down
6 changes: 5 additions & 1 deletion utilities/tools/Get-CrossReferencedModuleList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ function Get-CrossReferencedModuleList {
$resultSet = [ordered]@{}

# Collect data
$moduleTemplatePaths = (Get-ChildItem -Path $path -Recurse -File -Filter 'main.bicep').FullName
$moduleTemplatePaths = (Get-ChildItem -Path $path -Recurse -File -Filter '*.bicep').FullName | Where-Object {
# No files in the [/utilities/tools/] folder and none in the [/tests/] folder
$_ -notmatch '.*[\\|\/]tools[\\|\/].*|.*[\\|\/]tests[\\|\/].*'
} | Sort-Object

$templateMap = @{}
foreach ($moduleTemplatePath in $moduleTemplatePaths) {
$templateMap[$moduleTemplatePath] = Get-Content -Path $moduleTemplatePath
Expand Down

0 comments on commit 2a38fee

Please sign in to comment.