Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Enable the introduction of utl modules in CI & utilities #2756

Merged
merged 272 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
272 commits
Select commit Hold shift + click to select a range
9393aa1
Merge branch 'Azure:main' into main
AlexanderSehr Nov 9, 2023
cb39086
Merge branch 'Azure:main' into main
AlexanderSehr Nov 9, 2023
89eac40
Merge branch 'Azure:main' into main
AlexanderSehr Nov 10, 2023
712a673
Merge branch 'Azure:main' into main
AlexanderSehr Nov 13, 2023
55e095f
Resolved conflict
AlexanderSehr Nov 14, 2023
3121335
Update to latest
AlexanderSehr Nov 14, 2023
e9d736c
Merge branch 'Azure:main' into main
AlexanderSehr Nov 15, 2023
abfa1b9
Merge branch 'Azure:main' into main
AlexanderSehr Nov 15, 2023
c6707f6
Merge branch 'Azure:main' into main
AlexanderSehr Nov 16, 2023
246f9ba
Merge branch 'Azure:main' into main
AlexanderSehr Nov 16, 2023
6e9729d
Merge branch 'Azure:main' into main
AlexanderSehr Nov 16, 2023
26ea9f6
Merge branch 'Azure:main' into main
AlexanderSehr Nov 17, 2023
c2d183b
Merge branch 'Azure:main' into main
AlexanderSehr Nov 18, 2023
0c6650e
Merge branch 'Azure:main' into main
AlexanderSehr Nov 19, 2023
65094a5
Merge branch 'Azure:main' into main
AlexanderSehr Nov 21, 2023
968cd9a
Merge branch 'Azure:main' into main
AlexanderSehr Nov 21, 2023
3c9589b
Merge branch 'Azure:main' into main
AlexanderSehr Nov 24, 2023
eb34ddf
Merge branch 'Azure:main' into main
AlexanderSehr Nov 25, 2023
3d4f5c6
Added pipeline to main for testing
AlexanderSehr Nov 26, 2023
70154f3
Merge branch 'Azure:main' into main
AlexanderSehr Nov 27, 2023
18bd2ad
Merge branch 'Azure:main' into main
AlexanderSehr Nov 27, 2023
940b34f
Merge branch 'Azure:main' into main
AlexanderSehr Nov 28, 2023
fbb840f
Merge branch 'Azure:main' into main
AlexanderSehr Nov 29, 2023
381e366
Merge branch 'Azure:main' into main
AlexanderSehr Nov 29, 2023
06bcda3
Merge branch 'Azure:main' into main
AlexanderSehr Dec 1, 2023
0858beb
Merge branch 'Azure:main' into main
AlexanderSehr Dec 1, 2023
72b5fbb
Merge branch 'Azure:main' into main
AlexanderSehr Dec 1, 2023
917a761
TEst disable pipe
AlexanderSehr Dec 4, 2023
1b89452
Merge branch 'Azure:main' into main
AlexanderSehr Dec 4, 2023
feb981e
Update to latest
AlexanderSehr Dec 4, 2023
dda85a8
Merge branch 'Azure:main' into main
AlexanderSehr Dec 4, 2023
0373f46
Merge branch 'Azure:main' into main
AlexanderSehr Dec 6, 2023
80247e4
Merge branch 'Azure:main' into main
AlexanderSehr Dec 9, 2023
2b5a791
Merge branch 'Azure:main' into main
AlexanderSehr Dec 10, 2023
f1bab34
Merge branch 'Azure:main' into main
AlexanderSehr Dec 19, 2023
ef12ee5
Merge branch 'Azure:main' into main
AlexanderSehr Dec 21, 2023
ec1722c
Merge branch 'Azure:main' into main
AlexanderSehr Dec 21, 2023
f4136ec
Added SA workflow
AlexanderSehr Dec 22, 2023
e55e732
Added workflow
AlexanderSehr Jan 1, 2024
5c6aa5e
Update to latest
AlexanderSehr Jan 1, 2024
086c1a8
Merge branch 'Azure:main' into main
AlexanderSehr Jan 2, 2024
a9821fb
Merge branch 'Azure:main' into main
AlexanderSehr Jan 3, 2024
62b326f
Merge branch 'Azure:main' into main
AlexanderSehr Jan 3, 2024
c159269
Merge branch 'Azure:main' into main
AlexanderSehr Jan 4, 2024
6e1f59a
Merge branch 'Azure:main' into main
AlexanderSehr Jan 5, 2024
fb7befc
Merge branch 'Azure:main' into main
AlexanderSehr Jan 5, 2024
cb72681
Merge branch 'Azure:main' into main
AlexanderSehr Jan 8, 2024
f3befb7
Merge branch 'Azure:main' into main
AlexanderSehr Jan 10, 2024
f938cd8
Merge branch 'Azure:main' into main
AlexanderSehr Jan 12, 2024
d0924b6
Merge branch 'Azure:main' into main
AlexanderSehr Jan 14, 2024
315522f
Merge branch 'Azure:main' into main
AlexanderSehr Jan 17, 2024
4012fdd
Update to latest
AlexanderSehr Jan 18, 2024
b18ab70
Merge branch 'Azure:main' into main
AlexanderSehr Jan 20, 2024
686dc83
Merge branch 'Azure:main' into main
AlexanderSehr Jan 22, 2024
3f225f9
Removed outdated metadata
AlexanderSehr Jan 23, 2024
f2bd197
Update to latest
AlexanderSehr Jan 23, 2024
4cd0a6f
Merge branch 'Azure:main' into main
AlexanderSehr Jan 26, 2024
01f3a38
Merged latest main
AlexanderSehr Jan 26, 2024
18c794a
Merge branch 'Azure:main' into users/alsehr/testCleanup
AlexanderSehr Jan 26, 2024
732a605
Merge branch 'main' into users/alsehr/testCleanup
AlexanderSehr Jan 29, 2024
c0105fe
Merge branch 'Azure:main' into main
AlexanderSehr Jan 29, 2024
c7d09f2
Merge branch 'main' into users/alsehr/testCleanup
AlexanderSehr Jan 29, 2024
bea9408
Merge branch 'users/alsehr/testCleanup' of https://github.com/Alexand…
AlexanderSehr Jan 29, 2024
9d063ce
Refereshed docs
AlexanderSehr Jan 29, 2024
db61282
Merge branch 'main' into users/alsehr/testCleanup
AlexanderSehr Jan 29, 2024
4ec79f8
Merge branch 'Azure:main' into main
AlexanderSehr Jan 29, 2024
c26b307
Merge branches 'users/alsehr/testCleanup' and 'main' of https://githu…
AlexanderSehr Jan 29, 2024
e3759a8
Merge branch 'Azure:main' into main
AlexanderSehr Feb 2, 2024
86869a1
Merge branch 'main' of https://github.com/AlexanderSehr/bicep-registr…
AlexanderSehr Feb 2, 2024
f8da6b9
Merge branch 'Azure:main' into main
AlexanderSehr Feb 4, 2024
ece4faa
Merge branch 'main' of https://github.com/AlexanderSehr/bicep-registr…
AlexanderSehr Feb 4, 2024
8884290
Merge branch 'Azure:main' into main
AlexanderSehr Feb 9, 2024
6ed614f
Merge branch 'Azure:main' into main
AlexanderSehr Feb 10, 2024
e307d2a
Merge branch 'Azure:main' into main
AlexanderSehr Feb 11, 2024
96589bb
Merge branch 'Azure:main' into main
AlexanderSehr Feb 12, 2024
75ade55
Merge branch 'Azure:main' into main
AlexanderSehr Feb 13, 2024
56e7afb
Merge branch 'Azure:main' into main
AlexanderSehr Feb 21, 2024
f89b946
Merge branch 'Azure:main' into main
AlexanderSehr Feb 21, 2024
c861111
Merge branch 'Azure:main' into main
AlexanderSehr Feb 22, 2024
9511716
Merge branch 'Azure:main' into main
AlexanderSehr Feb 26, 2024
f28816d
Merge branch 'Azure:main' into main
AlexanderSehr Feb 27, 2024
79b4e78
Merge branch 'Azure:main' into main
AlexanderSehr Mar 5, 2024
31a3f76
Merge branch 'Azure:main' into main
AlexanderSehr Mar 7, 2024
e6975de
Merge branch 'Azure:main' into main
AlexanderSehr Mar 9, 2024
005581f
Update to latest
AlexanderSehr Mar 9, 2024
15a7ed5
Update to latest
AlexanderSehr Mar 9, 2024
922fd79
Update to latest
AlexanderSehr Mar 9, 2024
d861c45
Update to latest
AlexanderSehr Mar 9, 2024
a4d71e7
Merge branch 'main' into users/alsehr/e2eTestCheck
AlexanderSehr Mar 10, 2024
033baab
Merge branch 'Azure:main' into main
AlexanderSehr Mar 11, 2024
c46abd0
Merge branch 'main' of https://github.com/AlexanderSehr/bicep-registr…
AlexanderSehr Mar 11, 2024
5b35a3f
Merge branch 'Azure:main' into main
AlexanderSehr Mar 13, 2024
0012def
Merge branch 'Azure:main' into main
AlexanderSehr Mar 17, 2024
13f0450
Merge branch 'Azure:main' into main
AlexanderSehr Mar 21, 2024
4dcee53
Merge branch 'Azure:main' into main
AlexanderSehr Mar 23, 2024
88e2bea
Merge branch 'Azure:main' into main
AlexanderSehr Mar 25, 2024
776bed8
Retired / refactored workflows
AlexanderSehr Mar 25, 2024
0ab044d
Merge branch 'Azure:main' into main
AlexanderSehr Mar 26, 2024
d4c3794
Merge branch 'Azure:main' into main
AlexanderSehr Mar 26, 2024
e51366b
Merge branch 'Azure:main' into main
AlexanderSehr Mar 31, 2024
06ad8d7
Merge branch 'main' into users/workflowRetire
AlexanderSehr Mar 31, 2024
aaf0d22
Merge branch 'main' into users/workflowRetire
AlexanderSehr Mar 31, 2024
a4c516d
Applied suggestion
AlexanderSehr Mar 31, 2024
16899f2
Removed scripts
AlexanderSehr Mar 31, 2024
29f60ed
Merge branch 'Azure:main' into main
AlexanderSehr Apr 1, 2024
74783f1
Merge branch 'main' into users/workflowRetire
AlexanderSehr Apr 2, 2024
7888d41
Merge branch 'Azure:main' into main
AlexanderSehr Apr 3, 2024
666a545
Merge branch 'Azure:main' into main
AlexanderSehr Apr 3, 2024
a7aea77
Merge branch 'Azure:main' into main
AlexanderSehr Apr 8, 2024
5c05401
Merge branch 'Azure:main' into main
AlexanderSehr Apr 8, 2024
2ba34a4
Merge branch 'Azure:main' into main
AlexanderSehr Apr 10, 2024
f61b688
Updated encr
AlexanderSehr Apr 12, 2024
5032da5
Merge branch 'Azure:main' into main
AlexanderSehr Apr 12, 2024
ba3e41d
Merge branch 'main' of https://github.com/AlexanderSehr/bicep-registr…
AlexanderSehr Apr 12, 2024
1c658d3
Merge branch 'Azure:main' into main
AlexanderSehr Apr 15, 2024
2192861
Merge branch 'main' of https://github.com/AlexanderSehr/bicep-registr…
AlexanderSehr Apr 15, 2024
10339d4
Merged latest main
AlexanderSehr Apr 15, 2024
825468e
Merge branch 'users/workflowRetire' of https://github.com/AlexanderSe…
AlexanderSehr Apr 15, 2024
7ab22c1
Merge branch 'Azure:main' into main
AlexanderSehr Apr 17, 2024
98b4bbc
Merge branches 'users/workflowRetire' and 'main' of https://github.co…
AlexanderSehr Apr 18, 2024
391dec3
Merge branch 'Azure:main' into main
AlexanderSehr Apr 20, 2024
cd4d559
Update to latest
AlexanderSehr Apr 20, 2024
7ae8786
Undid changes that should be in branch in main
AlexanderSehr Apr 20, 2024
86ed73b
Merge branch 'Azure:main' into main
AlexanderSehr Apr 27, 2024
42f7fe9
Merge branch 'Azure:main' into main
AlexanderSehr Apr 29, 2024
d20afeb
Added workflow
AlexanderSehr Apr 29, 2024
157adb5
Merge pull request #4 from AlexanderSehr/users/alsehr/deploymentRemoval
AlexanderSehr Apr 29, 2024
2157079
Update to latest
AlexanderSehr Apr 29, 2024
e64d2f2
Merge branch 'main' into users/alsehr/deploymentRemoval
AlexanderSehr Apr 29, 2024
2bd3129
Small fix
AlexanderSehr Apr 29, 2024
8570dba
Merge branch 'Azure:main' into main
AlexanderSehr Apr 29, 2024
71307c0
Merge branch 'Azure:main' into main
AlexanderSehr Apr 30, 2024
71c34e4
Update to latest
AlexanderSehr May 2, 2024
9620e7a
Merge branch 'Azure:main' into main
AlexanderSehr May 7, 2024
cdbc081
Merge branch 'Azure:main' into main
AlexanderSehr May 7, 2024
669b083
Update to latest
AlexanderSehr May 12, 2024
c7d6bcd
Merge branch 'Azure:main' into main
AlexanderSehr May 15, 2024
88ce9d9
Merge branch 'Azure:main' into main
AlexanderSehr May 20, 2024
dd2c463
Merge branch 'Azure:main' into main
AlexanderSehr Jun 5, 2024
a96e8f7
Update to latest
AlexanderSehr Jun 5, 2024
e5932f4
Merge branch 'Azure:main' into main
AlexanderSehr Jun 7, 2024
e709ecb
Merge branch 'main' of https://github.com/AlexanderSehr/bicep-registr…
AlexanderSehr Jun 7, 2024
8778d07
Merge branch 'Azure:main' into main
AlexanderSehr Jun 13, 2024
8dcc44e
Merge branch 'main' of https://github.com/AlexanderSehr/bicep-registr…
AlexanderSehr Jun 13, 2024
06ef484
Initial replace
AlexanderSehr Jun 13, 2024
9643122
More files
AlexanderSehr Jun 13, 2024
58ee526
Applied formatter to all files
AlexanderSehr Jun 13, 2024
8f62742
Update to latest
AlexanderSehr Jun 13, 2024
af3826a
Update to latest
AlexanderSehr Jun 13, 2024
eae864d
Updated API
AlexanderSehr Jun 13, 2024
b6527df
Update to latest
AlexanderSehr Jun 13, 2024
339a953
Update to latest
AlexanderSehr Jun 13, 2024
23f282a
Update to latest
AlexanderSehr Jun 13, 2024
e2a71bf
Update to latest
AlexanderSehr Jun 14, 2024
d32aa81
Update to latest
AlexanderSehr Jun 14, 2024
d708836
Update to latest
AlexanderSehr Jun 14, 2024
0a82ebc
Update to latest
AlexanderSehr Jun 14, 2024
27eee63
Update to latest
AlexanderSehr Jun 14, 2024
73fa0b6
Merge branch 'Azure:main' into main
AlexanderSehr Jun 14, 2024
a27b3f3
Merge branch 'main' of https://github.com/AlexanderSehr/bicep-registr…
AlexanderSehr Jun 14, 2024
39ee9c0
Resolved conflicts
AlexanderSehr Jun 14, 2024
7787a19
Merge branch 'Azure:main' into main
AlexanderSehr Jun 14, 2024
091541f
Merge branch 'main' of https://github.com/AlexanderSehr/bicep-registr…
AlexanderSehr Jun 14, 2024
a724e0b
Merge branch 'main' into users/alsehr/telemetryModuleTest_attempt2
maldineh Jun 15, 2024
47f239c
Merge branch 'Azure:main' into main
AlexanderSehr Jun 16, 2024
324f9b8
Merge branch 'main' of https://github.com/AlexanderSehr/bicep-registr…
AlexanderSehr Jun 16, 2024
6c2449a
Merge branch 'Azure:main' into main
AlexanderSehr Jun 18, 2024
668d68b
Merge branches 'users/alsehr/telemetryModuleTest_attempt2' and 'users…
AlexanderSehr Jun 18, 2024
d7e1d12
Update to latest
AlexanderSehr Jun 18, 2024
f34cd0a
Merge branch 'Azure:main' into main
AlexanderSehr Jun 18, 2024
7cbc621
Merge branch 'Azure:main' into main
AlexanderSehr Jun 20, 2024
19f41b3
Merge branch 'Azure:main' into main
AlexanderSehr Jun 20, 2024
aa595fb
Merge branch 'Azure:main' into main
AlexanderSehr Jul 2, 2024
68c08d2
Merge branch 'Azure:main' into main
AlexanderSehr Jul 4, 2024
5b91ba2
Merge branch 'Azure:main' into main
AlexanderSehr Jul 13, 2024
91695ee
Merge branch 'Azure:main' into main
AlexanderSehr Jul 15, 2024
e694809
Merge branch 'Azure:main' into main
AlexanderSehr Jul 17, 2024
9d36a87
Merge branch 'Azure:main' into main
AlexanderSehr Jul 19, 2024
051a6ce
Added utl to regex
AlexanderSehr Jul 19, 2024
c11bc1a
Added folder creation
AlexanderSehr Jul 19, 2024
b109470
Added dummy module
AlexanderSehr Jul 19, 2024
ff09aa5
Small updates
AlexanderSehr Jul 19, 2024
af6f6e0
Further updates
AlexanderSehr Jul 19, 2024
0c31d4f
build template
AlexanderSehr Jul 19, 2024
b2f560d
Update to latest
AlexanderSehr Jul 19, 2024
604f4f3
Successfully generated readme
AlexanderSehr Jul 19, 2024
94b2c7a
Added support for non-outputs, non-resource-types and non-parameters
AlexanderSehr Jul 19, 2024
41212da
Update to latest
AlexanderSehr Jul 19, 2024
19ae54a
Update to latest
AlexanderSehr Jul 20, 2024
dcfa8bf
Enabled push trigger
AlexanderSehr Jul 20, 2024
94b9070
Fixed paths
AlexanderSehr Jul 20, 2024
733f439
Update to latest
AlexanderSehr Jul 20, 2024
c12cbd1
Update to latest
AlexanderSehr Jul 20, 2024
f82a7fb
Added no param case handling to test
AlexanderSehr Jul 20, 2024
0aaa12b
Update to latest
AlexanderSehr Jul 20, 2024
b106dc2
Update to latest
AlexanderSehr Jul 20, 2024
40edcb8
Further test exclusion handling
AlexanderSehr Jul 21, 2024
b823075
Update to latest
AlexanderSehr Jul 21, 2024
974cc6b
Added alternate utility module
AlexanderSehr Jul 21, 2024
4943c39
Update to latest
AlexanderSehr Jul 21, 2024
3e2f8eb
Merge branch 'Azure:main' into main
AlexanderSehr Jul 22, 2024
74995e6
Update to latest
AlexanderSehr Jul 22, 2024
dcd4f17
Resolved conflicts
AlexanderSehr Jul 22, 2024
95660d0
Improved error handling
AlexanderSehr Jul 22, 2024
a95428c
Update to latest
AlexanderSehr Jul 22, 2024
31c4f2d
Update to latest
AlexanderSehr Jul 22, 2024
80c3a11
Update to latest
AlexanderSehr Jul 22, 2024
833f955
Re-enabled all static tests
AlexanderSehr Jul 22, 2024
4304aad
Removed duplicated test
AlexanderSehr Jul 22, 2024
9bcb4a3
Updated side-files
AlexanderSehr Jul 28, 2024
c850c26
Update to latest
AlexanderSehr Jul 28, 2024
be7fbb6
Update to latest
AlexanderSehr Jul 28, 2024
10ae47b
Update to latest
AlexanderSehr Jul 28, 2024
acab5f6
Update to latest
AlexanderSehr Jul 28, 2024
158b22c
Update to latest
AlexanderSehr Jul 28, 2024
41537db
Update to latest
AlexanderSehr Jul 28, 2024
dc66295
Update to latest
AlexanderSehr Jul 28, 2024
e0535fa
Update to latest
AlexanderSehr Jul 28, 2024
c43731c
Merge branch 'Azure:main' into main
AlexanderSehr Jul 28, 2024
406673b
Merged latest main
AlexanderSehr Jul 28, 2024
b7526d8
Update to latest
AlexanderSehr Jul 28, 2024
cc8b99f
Disabled all but deploy test
AlexanderSehr Jul 28, 2024
8c345be
Reenabled full pipeline
AlexanderSehr Jul 28, 2024
59d0523
Update to latest
AlexanderSehr Jul 28, 2024
da81cdd
Update to latest
AlexanderSehr Jul 28, 2024
7f75383
Update to latest
AlexanderSehr Jul 28, 2024
2221b2b
Regen remaining readmes
AlexanderSehr Jul 28, 2024
4a3b20a
Update to latest
AlexanderSehr Jul 28, 2024
0cd5776
Update to latest
AlexanderSehr Jul 28, 2024
46e7620
Fixed telemetry link identification
AlexanderSehr Jul 29, 2024
749f54a
Fixed telemetry link identification
AlexanderSehr Jul 29, 2024
e1a3e03
Removed temp modules again
AlexanderSehr Jul 29, 2024
88012f1
Added missing res modules
AlexanderSehr Jul 30, 2024
2779eb7
Added more comments
AlexanderSehr Jul 30, 2024
d1667ca
Update to latest
AlexanderSehr Jul 30, 2024
ddd5b31
Update to latest
AlexanderSehr Jul 30, 2024
fcf8b0b
Update to latest
AlexanderSehr Jul 30, 2024
b98d889
Update to latest
AlexanderSehr Jul 30, 2024
e08f254
Updated regex
AlexanderSehr Jul 31, 2024
9128f67
Merge branch 'main' into users/alsehr/utl
AlexanderSehr Aug 2, 2024
100025c
Merge branch 'Azure:main' into main
AlexanderSehr Aug 3, 2024
7367a20
Merge branch 'Azure:main' into main
AlexanderSehr Aug 6, 2024
e983042
Refreshed all readmes
AlexanderSehr Aug 6, 2024
90f4f3b
Refresh
AlexanderSehr Aug 6, 2024
ba942d9
Merge branch 'main' into users/alsehr/utl
AlexanderSehr Sep 5, 2024
4131329
Regenerated docs
AlexanderSehr Sep 5, 2024
8784d6a
Merge branch 'main' into users/alsehr/utl
AlexanderSehr Sep 6, 2024
2152749
Merge branch 'main' into users/alsehr/utl
AlexanderSehr Sep 7, 2024
34058fe
Update avm/utilities/pipelines/platform/Sync-AvmModulesList.ps1
AlexanderSehr Sep 9, 2024
112d8d3
Update avm/utilities/pipelines/platform/Sync-AvmModulesList.ps1
AlexanderSehr Sep 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/avm.template.module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:
job_publish_module: # 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: "Publishing"
runs-on: ubuntu-latest
# Note: Below always() required in condition due to psrule jobs being skipped for ptn modules not having defaults or waf-aligned folders
# Note: Below always() required in condition due to psrule jobs being skipped for ptn & utl modules not having defaults or waf-aligned folders
if: github.ref == 'refs/heads/main' &&
github.repository == 'Azure/bicep-registry-modules' &&
always() &&
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/platform.toggle-avm-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
type: string
description: "RegEx which workflows are included"
required: false
default: "avm\\.(?:res|ptn)"
default: "avm\\.(?:res|ptn|utl)"
excludePattern:
type: string
description: "RegEx which workflows are excluded"
Expand Down
2 changes: 0 additions & 2 deletions avm/ptn/azd/container-apps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ module containerApps 'br/public:avm/ptn/azd/container-apps:<version>' = {
</details>
<p>


## Parameters

**Required parameters**
Expand Down Expand Up @@ -338,7 +337,6 @@ Zone redundancy setting.
- Type: bool
- Default: `True`


## Outputs

| Output | Type | Description |
Expand Down
4 changes: 2 additions & 2 deletions avm/res/container-registry/registry/cache-rule/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Cache for Azure Container Registry (Preview) feature allows users to cache conta

| Parameter | Type | Description |
| :-- | :-- | :-- |
| [`name`](#parameter-name) | string | The name of the cache rule. Will be dereived from the source repository name if not defined. |
| [`name`](#parameter-name) | string | The name of the cache rule. Will be derived from the source repository name if not defined. |
| [`targetRepository`](#parameter-targetrepository) | string | Target repository specified in docker pull command. E.g.: docker pull myregistry.azurecr.io/{targetRepository}:{tag}. |

### Parameter: `credentialSetResourceId`
Expand All @@ -54,7 +54,7 @@ Source repository pulled from upstream.

### Parameter: `name`

The name of the cache rule. Will be dereived from the source repository name if not defined.
The name of the cache rule. Will be derived from the source repository name if not defined.

- Required: No
- Type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata owner = 'Azure/module-maintainers'
@description('Required. The name of the parent registry. Required if the template is used in a standalone deployment.')
param registryName string

@description('Optional. The name of the cache rule. Will be dereived from the source repository name if not defined.')
@description('Optional. The name of the cache rule. Will be derived from the source repository name if not defined.')
param name string = replace(replace(sourceRepository, '/', '-'), '.', '-')

@description('Required. Source repository pulled from upstream.')
Expand Down
4 changes: 2 additions & 2 deletions avm/res/container-registry/registry/cache-rule/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.29.47.4906",
"templateHash": "4294329625336671928"
"templateHash": "14369419482171687857"
},
"name": "Container Registries Cache",
"description": "Cache for Azure Container Registry (Preview) feature allows users to cache container images in a private container registry. Cache for ACR, is a preview feature available in Basic, Standard, and Premium service tiers ([ref](https://learn.microsoft.com/en-us/azure/container-registry/tutorial-registry-cache)).",
Expand All @@ -22,7 +22,7 @@
"type": "string",
"defaultValue": "[replace(replace(parameters('sourceRepository'), '/', '-'), '.', '-')]",
"metadata": {
"description": "Optional. The name of the cache rule. Will be dereived from the source repository name if not defined."
"description": "Optional. The name of the cache rule. Will be derived from the source repository name if not defined."
}
},
"sourceRepository": {
Expand Down
4 changes: 2 additions & 2 deletions avm/res/container-registry/registry/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,7 @@
"_generator": {
"name": "bicep",
"version": "0.29.47.4906",
"templateHash": "4294329625336671928"
"templateHash": "14369419482171687857"
},
"name": "Container Registries Cache",
"description": "Cache for Azure Container Registry (Preview) feature allows users to cache container images in a private container registry. Cache for ACR, is a preview feature available in Basic, Standard, and Premium service tiers ([ref](https://learn.microsoft.com/en-us/azure/container-registry/tutorial-registry-cache)).",
Expand All @@ -1496,7 +1496,7 @@
"type": "string",
"defaultValue": "[replace(replace(parameters('sourceRepository'), '/', '-'), '.', '-')]",
"metadata": {
"description": "Optional. The name of the cache rule. Will be dereived from the source repository name if not defined."
"description": "Optional. The name of the cache rule. Will be derived from the source repository name if not defined."
}
},
"sourceRepository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function Get-AvailableResourceLocation {
. (Join-Path $RepoRoot 'avm' 'utilities' 'pipelines' 'sharedScripts' 'helper' 'Get-SpecsAlignedResourceName.ps1')

# Configure Resource Type
$fullModuleIdentifier = ($ModuleRoot -split '[\/|\\]{0,1}avm[\/|\\]{1}(res|ptn)[\/|\\]{1}')[2] -replace '\\', '/'
$fullModuleIdentifier = ($ModuleRoot -split '[\/|\\]{0,1}avm[\/|\\]{1}(res|ptn|utl)[\/|\\]{1}')[2] -replace '\\', '/'

if ($ModuleRoot -like 'avm/res*') {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#region helper
#region helper
<#
.SYNOPSIS
Get all deployment operations at a given scope
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function Invoke-AvmJsonModuleIndexGeneration {
$anyErrorsOccurred = $false
$moduleIndexData = @()

foreach ($avmModuleRoot in @('avm/res', 'avm/ptn')) {
foreach ($avmModuleRoot in @('avm/res', 'avm/ptn', 'avm/utl')) {
$avmModuleGroups = (Get-ChildItem -Path $avmModuleRoot -Directory).Name

foreach ($moduleGroup in $avmModuleGroups) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function Set-AvmGitHubIssueOwnerConfig {
$issue = gh issue view $IssueUrl.Replace('api.', '').Replace('repos/', '') --json 'author,title,url,body,comments' --repo $Repo | ConvertFrom-Json -Depth 100

if ($issue.title.StartsWith('[AVM Module Issue]')) {
$moduleName = ($issue.body.Split("`n") -match 'avm/(?:res|ptn)')[0].Trim().Replace(' ', '')
$moduleName = ($issue.body.Split("`n") -match 'avm/(?:res|ptn|utl)')[0].Trim().Replace(' ', '')

if ([string]::IsNullOrEmpty($moduleName)) {
throw 'No valid module name was found in the issue.'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function Set-AvmGithubIssueForWorkflow {
> @Azure/avm-core-team-technical-bicep, the workflow for the ``$moduleName`` module has failed. Please investigate the failed workflow run.
"@

if ($workflowRun.workflowName -match 'avm.(?:res|ptn)') {
if ($workflowRun.workflowName -match 'avm.(?:res|ptn|utl)') {
$moduleIndex = $moduleName.StartsWith('avm/res') ? 'Bicep-Resource' : 'Bicep-Pattern'
# get CSV data
$module = Get-AvmCsvData -ModuleIndex $moduleIndex | Where-Object ModuleName -EQ $moduleName
Expand Down
6 changes: 3 additions & 3 deletions avm/utilities/pipelines/platform/Switch-WorkflowState.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Mandatory. The owning organization of the repository. For example, 'MyOrg'.
Optional. The name of the repository. Defaults to 'bicep-registry-modules'.

.PARAMETER IncludePattern
Optional. A regex pattern to match against the workflow names. Defaults to 'avm\.(?:res|ptn)' - avm.res & avm.ptn.
Optional. A regex pattern to match against the workflow names. Defaults to 'avm\.(?:res|ptn|utl)' - avm.res, avm.ptn & avm.utl.

.PARAMETER ExlcudePattern
Optional. A regex pattern that should not match against the workflow names. Defaults to '^$' - empty.
Expand All @@ -26,7 +26,7 @@ Optional. The GitHub PAT token to use for authentication when interacting with G
.EXAMPLE
Switch-WorkflowState -RepositoryOwner 'Paul' -RepositoryName 'bicep-registry-modules' -TargetState 'enable' -GitHubToken ('iAmAToken' | ConvertTo-SecureString -AsPlainText -Force)

Enable any AVM res/ptn workflow in the [Paul/bicep-registry-modules] repository that is not in state 'active' using a custom GitHub PAT token.
Enable any AVM res/ptn/utl workflow in the [Paul/bicep-registry-modules] repository that is not in state 'active' using a custom GitHub PAT token.

.EXAMPLE
Switch-WorkflowState -RepositoryOwner 'Paul' -RepositoryName 'bicep-registry-modules' -TargetState 'disable'
Expand Down Expand Up @@ -58,7 +58,7 @@ function Switch-WorkflowState {
[string] $RepositoryName = 'bicep-registry-modules',

[Parameter(Mandatory = $false)]
[string] $IncludePattern = 'avm\.(?:res|ptn)',
[string] $IncludePattern = 'avm\.(?:res|ptn|utl)',

[Parameter(Mandatory = $false)]
[string] $ExlcudePattern = '^$',
Expand Down
58 changes: 56 additions & 2 deletions avm/utilities/pipelines/platform/Sync-AvmModulesList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function Sync-AvmModulesList {
# get CSV data
$targetModules = Get-AvmCsvData -ModuleIndex 'Bicep-Resource' | Where-Object { ($_.ModuleStatus -eq 'Available :green_circle:') -or ($_.ModuleStatus -eq 'Orphaned :eyes:') } | Select-Object -ExpandProperty 'ModuleName' | Sort-Object
$targetPatterns = Get-AvmCsvData -ModuleIndex 'Bicep-Pattern' | Where-Object { ($_.ModuleStatus -eq 'Available :green_circle:') -or ($_.ModuleStatus -eq 'Orphaned :eyes:') } | Select-Object -ExpandProperty 'ModuleName' | Sort-Object
$targetUtilities = Get-AvmCsvData -ModuleIndex 'Bicep-Utility' | Where-Object { ($_.ModuleStatus -eq 'Available :green_circle:') -or ($_.ModuleStatus -eq 'Orphaned :eyes:') } | Select-Object -ExpandProperty 'ModuleName' | Sort-Object

$issueTemplatePath = Join-Path $RepoRoot '.github' 'ISSUE_TEMPLATE' 'avm_module_issue.yml'
$issueTemplateContent = Get-Content $issueTemplatePath
Expand All @@ -51,14 +52,21 @@ function Sync-AvmModulesList {

$listedModules = $issueTemplateContent[$startIndex..$endIndex] | Where-Object { -not $_.Contains('#') } | ForEach-Object { $_ -replace '.*- "(avm\/.*)".*', '$1' } | Where-Object { $_ -match 'avm\/res\/.*' }
$listedPatterns = $issueTemplateContent[$startIndex..$endIndex] | Where-Object { -not $_.Contains('#') } | ForEach-Object { $_ -replace '.*- "(avm\/.*)".*', '$1' } | Where-Object { $_ -match 'avm\/ptn\/.*' }
$listedUtilities = $issueTemplateContent[$startIndex..$endIndex] | Where-Object { -not $_.Contains('#') } | ForEach-Object { $_ -replace '.*- "(avm\/.*)".*', '$1' } | Where-Object { $_ -match 'avm\/utl\/.*' }

$body = ''

$missingModules = $targetModules | Where-Object { $listedModules -NotContains $_ }
$unexpectedModules = $listedModules | Where-Object { $targetModules -NotContains $_ }
$unexpectedPatterns = $listedPatterns | Where-Object { $targetPatterns -NotContains $_ }

$missingPatterns = $targetPatterns | Where-Object { $listedPatterns -NotContains $_ }
$unexpectedPatterns = $listedPatterns | Where-Object { $targetPatterns -NotContains $_ }

$missingUtilities = $targetUtilities | Where-Object { $listedUtilities -NotContains $_ }
$unexpectedUtilities = $listedUtilities | Where-Object { $targetUtilities -NotContains $_ }

# Resource modules
# ----------------
if ($missingModules.Count -gt 0) {
$body += @"
**Missing resource modules:**
Expand All @@ -77,6 +85,8 @@ $([Environment]::NewLine)
"@
}

# Patterns
# --------
if ($missingPatterns.Count -gt 0) {
$body += @"
**Missing pattern modules:**
Expand All @@ -95,6 +105,29 @@ $([Environment]::NewLine)
"@
}

# Utilities
# ---------
if ($missingUtilities.Count -gt 0) {
$body += @"
**Missing utility modules:**

$($missingUtilities -join ([Environment]::NewLine))
$([Environment]::NewLine)
"@
}

if ($unexpectedUtilities.Count -gt 0) {
$body += @"
**Unexpected utility modules:**

$($unexpectedUtilities -join ([Environment]::NewLine))
$([Environment]::NewLine)
"@
}


# Resource modules
# ----------------
# Should be at correct location
$incorrectModuleLines = @()
foreach ($finding in (Compare-Object $listedModules ($listedModules | Sort-Object) -SyncWindow 0)) {
Expand All @@ -113,6 +146,8 @@ $([Environment]::NewLine)
"@
}

# Patterns
# --------
$incorrectPatternLines = @()
foreach ($finding in (Compare-Object $listedPatterns ($listedPatterns | Sort-Object) -SyncWindow 0)) {
if ($finding.SideIndicator -eq '<=') {
Expand All @@ -130,6 +165,25 @@ $([Environment]::NewLine)
"@
}

# Utilities
# ---------
$incorrectUtilityLines = @()
foreach ($finding in (Compare-Object $listedUtilities ($listedUtilities | Sort-Object) -SyncWindow 0)) {
if ($finding.SideIndicator -eq '<=') {
$incorrectUtilityLines += $finding.InputObject
}
}
$incorrectUtilityLines = $incorrectUtilityLines | Sort-Object -Unique

if ($incorrectUtilityLines.Count -gt 0) {
$body += @"
**Utility modules that are not correctly sorted:**

$($incorrectUtilityLines -join ([Environment]::NewLine))
$([Environment]::NewLine)
"@
}

$issuesFound = $body -ne ''

$title = '[AVM core] AVM Module Issue template is not in sync with published resource modules and pattern modules list'
Expand All @@ -138,7 +192,7 @@ $([Environment]::NewLine)

$body = @"
> [!IMPORTANT]
> The file [avm_module_issue.yml](https://github.com/Azure/bicep-registry-modules/blob/main/.github/ISSUE_TEMPLATE/avm_module_issue.yml?plain=1) which lists all modules when creating a new issue, is not in sync with the CSV files, that can be found under [resource modules](https://aka.ms/avm/index/bicep/res/csv) and [pattern modules](https://aka.ms/avm/index/bicep/ptn/csv). These CSV files are the single source of truth regarding published modules. Please update the ``avm_module_issue.yml`` accordingly. Please see the following differences that were found.
> The file [avm_module_issue.yml](https://github.com/Azure/bicep-registry-modules/blob/main/.github/ISSUE_TEMPLATE/avm_module_issue.yml?plain=1) which lists all modules when creating a new issue, is not in sync with the CSV files, that can be found under [resource modules](https://aka.ms/avm/index/bicep/res/csv), [pattern modules](https://aka.ms/avm/index/bicep/ptn/csv) and [utility modules](https://aka.ms/avm/index/bicep/utl/csv). These CSV files are the single source of truth regarding published modules. Please update the ``avm_module_issue.yml`` accordingly. Please see the following differences that were found.
$([Environment]::NewLine)
"@ + $body

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ function Get-ModuleReadmeLink {
[string] $RegistryBaseUri = 'https://github.com/Azure/bicep-registry-modules/tree'
)

$ModuleRelativeFolderPath = ('avm/{0}' -f ($ModuleFolderPath -split '[\/|\\]avm[\/|\\]')[-1]) -replace '\\', '/'
$ModuleRelativeFolderPath = (($ModuleFolderPath -split '[\/|\\](avm)[\/|\\](res|ptn|utl)[\/|\\]')[-3..-1] -join '/') -replace '\\', '/'
return (('{0}/{1}/{2}/README.md' -f $RegistryBaseUri, $TagName, $ModuleRelativeFolderPath) -replace '\\', '/')
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Get-ModuleTargetPatchVersion {
[string] $MajMinVersion
)

$ModuleRelativeFolderPath = ('avm/{0}' -f ($ModuleFolderPath -split '[\/|\\]avm[\/|\\]')[-1]) -replace '\\', '/'
$ModuleRelativeFolderPath = (($ModuleFolderPath -split '[\/|\\](avm)[\/|\\](res|ptn|utl)[\/|\\]')[-3..-1] -join '/') -replace '\\', '/'

# Get all released module tags (using upstream specifically to work in forks)
$existingTagList = git ls-remote --tag 'https://github.com/Azure/bicep-registry-modules.git' "$ModuleRelativeFolderPath/$MajMinVersion*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function Get-TemplateFileToPublish {
[string[]] $PathsToInclude = @()
)

$ModuleRelativeFolderPath = ('avm/{0}' -f ($ModuleFolderPath -split '[\/|\\]avm[\/|\\]')[-1]) -replace '\\', '/'
$ModuleRelativeFolderPath = (($ModuleFolderPath -split '[\/|\\](avm)[\/|\\](res|ptn|utl)[\/|\\]')[-3..-1] -join '/') -replace '\\', '/'
$ModifiedFiles = Get-ModifiedFileList -Verbose
Write-Verbose "Looking for modified files under: [$ModuleRelativeFolderPath]" -Verbose
$modifiedModuleFiles = $ModifiedFiles.FullName | Where-Object { $_ -like "*$ModuleFolderPath*" }
Expand All @@ -110,7 +110,7 @@ function Get-TemplateFileToPublish {

Write-Verbose ('Modified modules found: [{0}]' -f $TemplateFilesToPublish.count) -Verbose
$TemplateFilesToPublish | ForEach-Object {
$RelPath = ('avm/{0}' -f ($_ -split '[\/|\\]avm[\/|\\]')[-1]) -replace '\\', '/'
$RelPath = (($_ -split '[\/|\\](avm)[\/|\\](res|ptn|utl)[\/|\\]')[-3..-1] -join '/') -replace '\\', '/'
$RelPath = $RelPath.Split('/main.')[0]
Write-Verbose " - [$RelPath]" -Verbose
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function New-ModuleReleaseTag {
[string] $TargetVersion
)

$ModuleRelativeFolderPath = ('avm/{0}' -f ($ModuleFolderPath -split '[\/|\\]avm[\/|\\]')[-1]) -replace '\\', '/'
$ModuleRelativeFolderPath = (($ModuleFolderPath -split '[\/|\\](avm)[\/|\\](res|ptn|utl)[\/|\\]')[-3..-1] -join '/') -replace '\\', '/'

# 1 Build Tag
$tagName = '{0}/{1}' -f $ModuleRelativeFolderPath, $TargetVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ function Get-BRMRepositoryName {
[string] $TemplateFilePath
)

$moduleIdentifier = (Split-Path $TemplateFilePath -Parent) -split '[\/|\\]avm[\/|\\](res|ptn)[\/|\\]'
$moduleIdentifier = (Split-Path $TemplateFilePath -Parent) -split '[\/|\\]avm[\/|\\](res|ptn|utl)[\/|\\]'
return ('avm/{0}/{1}' -f $moduleIdentifier[1], $moduleIdentifier[2]) -replace '\\', '/'
}
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function Get-CrossReferencedModuleList {
[string] $Path = (Get-Item $PSScriptRoot).Parent.Parent.Parent.Parent
)

$repoRoot = ($Path -split '[\/|\\]{1}avm[\/|\\]{1}')[0]
$repoRoot = ($Path -split '[\/|\\]avm[\/|\\](res|ptn|utl)[\/|\\]')[0]
$resultSet = [ordered]@{}

# Collect data
Expand Down Expand Up @@ -176,7 +176,7 @@ function Get-CrossReferencedModuleList {

$moduleFolderPath = Split-Path $moduleTemplatePath -Parent
## avm/res/<provider>/<resourceType>
$resourceTypeIdentifier = ($moduleFolderPath -split '[\/|\\]{1}avm[\/|\\]{1}(res|ptn)[\/|\\]{1}')[2] -replace '\\', '/'
$resourceTypeIdentifier = ($moduleFolderPath -split '[\/|\\]avm[\/|\\](res|ptn|utl)[\/|\\]')[2] -replace '\\', '/'

$providerNamespace = ($resourceTypeIdentifier -split '[\/|\\]')[0]
$resourceType = $resourceTypeIdentifier -replace "$providerNamespace[\/|\\]", ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function Set-PesterGitHubOutput {
Write-Verbose ('Formatting [{0}] skipped tests' -f $skippedTests.Count)
Write-Verbose ('Formatting [{0}] tests with explicit warnings' -f $warnings.Count)

$moduleSplitRegex = '[\/|\\]avm[\/|\\](res|ptn)[\/|\\]'
$moduleSplitRegex = '[\/|\\]avm[\/|\\](res|ptn|utl)[\/|\\]'

######################
# Set output content #
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ function Resolve-ReadMeParameterList {

$parameterSet = @{}

if (-not $Properties) {
if (-not $Properties -and -not $TemplateFileContent.parameters) {
AlexanderSehr marked this conversation as resolved.
Show resolved Hide resolved
# no Parameters / properties on this level or in the template
return $parameterSet
} elseif (-not $Properties) {
# Top-level invocation
# Add name as property for later reference
$TemplateFileContent.parameters.Keys | ForEach-Object { $TemplateFileContent.parameters[$_]['name'] = $_ }
Expand Down
Loading