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: Adjusted telemetry 'deployments' suppression (letters M-Z) #2350

Merged
Merged
Show file tree
Hide file tree
Changes from 189 commits
Commits
Show all changes
192 commits
Select commit Hold shift + click to select a range
20ac8b7
Added skeleton
AlexanderSehr Nov 7, 2023
4939b4d
Implemented first new tests
AlexanderSehr Nov 7, 2023
4e1d86f
Changed to warning
AlexanderSehr Nov 8, 2023
94fff0b
Expanded test verbosity & added additional tets
AlexanderSehr Nov 8, 2023
c18ce6b
Finalized further tests
AlexanderSehr Nov 8, 2023
a343694
Update to latest
AlexanderSehr Nov 8, 2023
3a6f0a2
Update to latest
AlexanderSehr Nov 8, 2023
4ab6a5b
Added module name + small fix
AlexanderSehr Nov 8, 2023
9bb64bd
Fixed kvlt
AlexanderSehr Nov 8, 2023
68e2bd2
Small caching fix
AlexanderSehr Nov 8, 2023
1a013c2
Small fix and enabled passthru of warnings to GH
AlexanderSehr Nov 8, 2023
1c2fc8a
More updates
AlexanderSehr Nov 8, 2023
d9c6dd5
Update to latest
AlexanderSehr Nov 8, 2023
dd0c343
Updated test names
AlexanderSehr Nov 8, 2023
2ebd458
JSON rollback
AlexanderSehr Nov 8, 2023
f6caf7e
Updated regex
AlexanderSehr Nov 8, 2023
f56f66a
Removed assertion
AlexanderSehr Nov 8, 2023
282b640
Update to latest
AlexanderSehr Nov 8, 2023
c025f52
Update avm/utilities/pipelines/staticValidation/compliance/module.tes…
AlexanderSehr Nov 9, 2023
405901a
Update avm/utilities/pipelines/staticValidation/compliance/module.tes…
AlexanderSehr Nov 9, 2023
904c82f
Merge branch 'main' into users/alsehr/testFileCompliance
AlexanderSehr Nov 9, 2023
ef24d1f
Rollback of unrelated changes
AlexanderSehr Nov 9, 2023
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
da6bcc5
Merge branch 'main' into users/alsehr/telemetryModuleTest_attempt2
ChrisSidebotham Jun 19, 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
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "5632716318105950604"
"version": "0.28.1.47646",
"templateHash": "7136569845646186437"
},
"name": "Log Analytics Workspace Data Exports",
"description": "This module deploys a Log Analytics Workspace Data Export.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "16469989668419642499"
"version": "0.28.1.47646",
"templateHash": "13864187993066263466"
},
"name": "Log Analytics Workspace Datasources",
"description": "This module deploys a Log Analytics Workspace Data Source.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "7204307644126778192"
"version": "0.28.1.47646",
"templateHash": "11327223922004680974"
},
"name": "Log Analytics Workspace Linked Services",
"description": "This module deploys a Log Analytics Workspace Linked Service.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "8359295346488843789"
"version": "0.28.1.47646",
"templateHash": "16393542404456450187"
},
"name": "Log Analytics Workspace Linked Storage Accounts",
"description": "This module deploys a Log Analytics Workspace Linked Storage Account.",
Expand Down
47 changes: 23 additions & 24 deletions avm/res/operational-insights/workspace/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -150,24 +150,24 @@ var builtInRoleNames = {
)
}

resource avmTelemetry 'Microsoft.Resources/deployments@2023-07-01' =
if (enableTelemetry) {
name: '46d3xbcp.res.operationalinsights-workspace.${replace('-..--..-', '.', '-')}.${substring(uniqueString(deployment().name, location), 0, 4)}'
properties: {
mode: 'Incremental'
template: {
'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#'
contentVersion: '1.0.0.0'
resources: []
outputs: {
telemetry: {
type: 'String'
value: 'For more information, see https://aka.ms/avm/TelemetryInfo'
}
#disable-next-line no-deployments-resources
resource avmTelemetry 'Microsoft.Resources/deployments@2024-03-01' = if (enableTelemetry) {
name: '46d3xbcp.res.operationalinsights-workspace.${replace('-..--..-', '.', '-')}.${substring(uniqueString(deployment().name, location), 0, 4)}'
properties: {
mode: 'Incremental'
template: {
'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#'
contentVersion: '1.0.0.0'
resources: []
outputs: {
telemetry: {
type: 'String'
value: 'For more information, see https://aka.ms/avm/TelemetryInfo'
}
}
}
}
}

resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2022-10-01' = {
location: location
Expand Down Expand Up @@ -343,17 +343,16 @@ module logAnalyticsWorkspace_solutions 'br/public:avm/res/operations-management/
}
]

resource logAnalyticsWorkspace_lock 'Microsoft.Authorization/locks@2020-05-01' =
if (!empty(lock ?? {}) && lock.?kind != 'None') {
name: lock.?name ?? 'lock-${name}'
properties: {
level: lock.?kind ?? ''
notes: lock.?kind == 'CanNotDelete'
? 'Cannot delete resource or child resources.'
: 'Cannot delete or modify the resource or child resources.'
}
scope: logAnalyticsWorkspace
resource logAnalyticsWorkspace_lock 'Microsoft.Authorization/locks@2020-05-01' = if (!empty(lock ?? {}) && lock.?kind != 'None') {
name: lock.?name ?? 'lock-${name}'
properties: {
level: lock.?kind ?? ''
notes: lock.?kind == 'CanNotDelete'
? 'Cannot delete resource or child resources.'
: 'Cannot delete or modify the resource or child resources.'
}
scope: logAnalyticsWorkspace
}

resource logAnalyticsWorkspace_roleAssignments 'Microsoft.Authorization/roleAssignments@2022-04-01' = [
for (roleAssignment, index) in (roleAssignments ?? []): {
Expand Down
34 changes: 17 additions & 17 deletions avm/res/operational-insights/workspace/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "12748269165141825812"
"version": "0.28.1.47646",
"templateHash": "5922198770832880671"
},
"name": "Log Analytics Workspaces",
"description": "This module deploys a Log Analytics Workspace.",
Expand Down Expand Up @@ -457,7 +457,7 @@
"avmTelemetry": {
"condition": "[parameters('enableTelemetry')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2023-07-01",
"apiVersion": "2024-03-01",
"name": "[format('46d3xbcp.res.operationalinsights-workspace.{0}.{1}', replace('-..--..-', '.', '-'), substring(uniqueString(deployment().name, parameters('location')), 0, 4))]",
"properties": {
"mode": "Incremental",
Expand Down Expand Up @@ -606,8 +606,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "8017888514977253474"
"version": "0.28.1.47646",
"templateHash": "16775981135504794519"
},
"name": "Log Analytics Workspace Storage Insight Configs",
"description": "This module deploys a Log Analytics Workspace Storage Insight Config.",
Expand Down Expand Up @@ -746,8 +746,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "7204307644126778192"
"version": "0.28.1.47646",
"templateHash": "11327223922004680974"
},
"name": "Log Analytics Workspace Linked Services",
"description": "This module deploys a Log Analytics Workspace Linked Service.",
Expand Down Expand Up @@ -868,8 +868,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "8359295346488843789"
"version": "0.28.1.47646",
"templateHash": "16393542404456450187"
},
"name": "Log Analytics Workspace Linked Storage Accounts",
"description": "This module deploys a Log Analytics Workspace Linked Storage Account.",
Expand Down Expand Up @@ -991,8 +991,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "1713932205136149020"
"version": "0.28.1.47646",
"templateHash": "18166536793397048488"
},
"name": "Log Analytics Workspace Saved Searches",
"description": "This module deploys a Log Analytics Workspace Saved Search.",
Expand Down Expand Up @@ -1151,8 +1151,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "5632716318105950604"
"version": "0.28.1.47646",
"templateHash": "7136569845646186437"
},
"name": "Log Analytics Workspace Data Exports",
"description": "This module deploys a Log Analytics Workspace Data Export.",
Expand Down Expand Up @@ -1278,8 +1278,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "16469989668419642499"
"version": "0.28.1.47646",
"templateHash": "13864187993066263466"
},
"name": "Log Analytics Workspace Datasources",
"description": "This module deploys a Log Analytics Workspace Data Source.",
Expand Down Expand Up @@ -1509,8 +1509,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "5509602447929603635"
"version": "0.28.1.47646",
"templateHash": "9332283068393802804"
},
"name": "Log Analytics Workspace Tables",
"description": "This module deploys a Log Analytics Workspace Table.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "1713932205136149020"
"version": "0.28.1.47646",
"templateHash": "18166536793397048488"
},
"name": "Log Analytics Workspace Saved Searches",
"description": "This module deploys a Log Analytics Workspace Saved Search.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "8017888514977253474"
"version": "0.28.1.47646",
"templateHash": "16775981135504794519"
},
"name": "Log Analytics Workspace Storage Insight Configs",
"description": "This module deploys a Log Analytics Workspace Storage Insight Config.",
Expand Down
4 changes: 2 additions & 2 deletions avm/res/operational-insights/workspace/table/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "5509602447929603635"
"version": "0.28.1.47646",
"templateHash": "9332283068393802804"
},
"name": "Log Analytics Workspace Tables",
"description": "This module deploys a Log Analytics Workspace Table.",
Expand Down
28 changes: 14 additions & 14 deletions avm/res/operations-management/solution/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@ param publisher string = 'Microsoft'
@description('Optional. Enable/Disable usage telemetry for module.')
param enableTelemetry bool = true

resource avmTelemetry 'Microsoft.Resources/deployments@2023-07-01' =
if (enableTelemetry) {
name: '46d3xbcp.res.operationsmanagement-solution.${replace('-..--..-', '.', '-')}.${substring(uniqueString(deployment().name, location), 0, 4)}'
properties: {
mode: 'Incremental'
template: {
'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#'
contentVersion: '1.0.0.0'
resources: []
outputs: {
telemetry: {
type: 'String'
value: 'For more information, see https://aka.ms/avm/TelemetryInfo'
}
#disable-next-line no-deployments-resources
resource avmTelemetry 'Microsoft.Resources/deployments@2024-03-01' = if (enableTelemetry) {
name: '46d3xbcp.res.operationsmanagement-solution.${replace('-..--..-', '.', '-')}.${substring(uniqueString(deployment().name, location), 0, 4)}'
properties: {
mode: 'Incremental'
template: {
'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#'
contentVersion: '1.0.0.0'
resources: []
outputs: {
telemetry: {
type: 'String'
value: 'For more information, see https://aka.ms/avm/TelemetryInfo'
}
}
}
}
}

resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2021-06-01' existing = {
name: logAnalyticsWorkspaceName
Expand Down
6 changes: 3 additions & 3 deletions avm/res/operations-management/solution/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "6056662833176375018"
"version": "0.28.1.47646",
"templateHash": "13605710277319315849"
},
"name": "Operations Management Solutions",
"description": "This module deploys an Operations Management Solution.",
Expand Down Expand Up @@ -61,7 +61,7 @@
{
"condition": "[parameters('enableTelemetry')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2023-07-01",
"apiVersion": "2024-03-01",
"name": "[format('46d3xbcp.res.operationsmanagement-solution.{0}.{1}', replace('-..--..-', '.', '-'), substring(uniqueString(deployment().name, parameters('location')), 0, 4))]",
"properties": {
"mode": "Incremental",
Expand Down
47 changes: 23 additions & 24 deletions avm/res/power-bi-dedicated/capacity/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,24 @@ var builtInRoleNames = {
)
}

resource defaultTelemetry 'Microsoft.Resources/deployments@2021-04-01' =
if (enableTelemetry) {
name: '46d3xbcp.res.powerbidedicated-capacity.${replace('-..--..-', '.', '-')}.${substring(uniqueString(deployment().name, location), 0, 4)}'
properties: {
mode: 'Incremental'
template: {
'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#'
contentVersion: '1.0.0.0'
resources: []
outputs: {
telemetry: {
type: 'String'
value: 'For more information, see https://aka.ms/avm/TelemetryInfo'
}
#disable-next-line no-deployments-resources
resource avmTelemetry 'Microsoft.Resources/deployments@2024-03-01' = if (enableTelemetry) {
name: '46d3xbcp.res.powerbidedicated-capacity.${replace('-..--..-', '.', '-')}.${substring(uniqueString(deployment().name, location), 0, 4)}'
properties: {
mode: 'Incremental'
template: {
'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#'
contentVersion: '1.0.0.0'
resources: []
outputs: {
telemetry: {
type: 'String'
value: 'For more information, see https://aka.ms/avm/TelemetryInfo'
}
}
}
}
}

resource capacity 'Microsoft.PowerBIDedicated/capacities@2021-01-01' = {
name: name
Expand All @@ -91,17 +91,16 @@ resource capacity 'Microsoft.PowerBIDedicated/capacities@2021-01-01' = {
}
}

resource capacity_lock 'Microsoft.Authorization/locks@2020-05-01' =
if (!empty(lock ?? {}) && lock.?kind != 'None') {
name: lock.?name ?? 'lock-${name}'
properties: {
level: lock.?kind ?? ''
notes: lock.?kind == 'CanNotDelete'
? 'Cannot delete resource or child resources.'
: 'Cannot delete or modify the resource or child resources.'
}
scope: capacity
resource capacity_lock 'Microsoft.Authorization/locks@2020-05-01' = if (!empty(lock ?? {}) && lock.?kind != 'None') {
name: lock.?name ?? 'lock-${name}'
properties: {
level: lock.?kind ?? ''
notes: lock.?kind == 'CanNotDelete'
? 'Cannot delete resource or child resources.'
: 'Cannot delete or modify the resource or child resources.'
}
scope: capacity
}

resource capacity_roleAssignments 'Microsoft.Authorization/roleAssignments@2022-04-01' = [
for (roleAssignment, index) in (roleAssignments ?? []): {
Expand Down
8 changes: 4 additions & 4 deletions avm/res/power-bi-dedicated/capacity/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "6849452941887309833"
"version": "0.28.1.47646",
"templateHash": "7899315276213055443"
},
"name": "Power BI Dedicated Capacities",
"description": "This module deploys a Power BI Dedicated Capacity.",
Expand Down Expand Up @@ -219,10 +219,10 @@
}
},
"resources": {
"defaultTelemetry": {
"avmTelemetry": {
"condition": "[parameters('enableTelemetry')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
"apiVersion": "2024-03-01",
"name": "[format('46d3xbcp.res.powerbidedicated-capacity.{0}.{1}', replace('-..--..-', '.', '-'), substring(uniqueString(deployment().name, parameters('location')), 0, 4))]",
"properties": {
"mode": "Incremental",
Expand Down
Loading