Skip to content

Commit

Permalink
[Modules] Updated tags to AVM standard - Batch 3 (#4161)
Browse files Browse the repository at this point in the history
* Third batch

* Updated tags
  • Loading branch information
AlexanderSehr authored Oct 31, 2023
1 parent 598f20f commit 522bfbc
Show file tree
Hide file tree
Showing 107 changed files with 392 additions and 288 deletions.
1 change: 0 additions & 1 deletion modules/operational-insights/workspace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,6 @@ LAW custom tables to be deployed.
Tags of the resource.
- Required: No
- Type: object
- Default: `{object}`

### Parameter: `useResourcePermissions`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ Severities to configure when kind is LinuxSyslog.
Tags to configure in the resource.
- Required: No
- Type: object
- Default: `{object}`


## Outputs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ param name string
param kind string = 'AzureActivityLog'

@description('Optional. Tags to configure in the resource.')
param tags object = {}
param tags object?

@description('Optional. Resource ID of the resource to be linked.')
param linkedResourceId string = ''
Expand Down
24 changes: 17 additions & 7 deletions modules/operational-insights/workspace/data-source/main.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"languageVersion": "2.0",
"contentVersion": "1.0.0.0",
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.22.6.54827",
"templateHash": "7994060758159745935"
"templateHash": "13903182753870680383"
},
"name": "Log Analytics Workspace Datasources",
"description": "This module deploys a Log Analytics Workspace Data Source.",
Expand Down Expand Up @@ -43,7 +44,7 @@
},
"tags": {
"type": "object",
"defaultValue": {},
"nullable": true,
"metadata": {
"description": "Optional. Tags to configure in the resource."
}
Expand Down Expand Up @@ -133,8 +134,8 @@
}
}
},
"resources": [
{
"resources": {
"defaultTelemetry": {
"condition": "[parameters('enableDefaultTelemetry')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
Expand All @@ -148,7 +149,13 @@
}
}
},
{
"workspace": {
"existing": true,
"type": "Microsoft.OperationalInsights/workspaces",
"apiVersion": "2022-10-01",
"name": "[parameters('logAnalyticsWorkspaceName')]"
},
"dataSource": {
"type": "Microsoft.OperationalInsights/workspaces/dataSources",
"apiVersion": "2020-08-01",
"name": "[format('{0}/{1}', parameters('logAnalyticsWorkspaceName'), parameters('name'))]",
Expand All @@ -166,9 +173,12 @@
"syslogName": "[if(and(not(empty(parameters('kind'))), equals(parameters('kind'), 'LinuxSyslog')), parameters('syslogName'), null())]",
"syslogSeverities": "[if(and(not(empty(parameters('kind'))), or(equals(parameters('kind'), 'LinuxSyslog'), equals(parameters('kind'), 'LinuxPerformanceObject'))), parameters('syslogSeverities'), null())]",
"performanceCounters": "[if(and(not(empty(parameters('kind'))), equals(parameters('kind'), 'LinuxPerformanceObject')), parameters('performanceCounters'), null())]"
}
},
"dependsOn": [
"workspace"
]
}
],
},
"outputs": {
"resourceId": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ The resource ID of the resource that will be linked to the workspace. This shoul
Tags to configure in the resource.
- Required: No
- Type: object
- Default: `{object}`

### Parameter: `writeAccessResourceId`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ param resourceId string = ''
param writeAccessResourceId string = ''

@description('Optional. Tags to configure in the resource.')
param tags object = {}
param tags object?

@description('Optional. Enable telemetry via a Globally Unique Identifier (GUID).')
param enableDefaultTelemetry bool = true
Expand Down
24 changes: 17 additions & 7 deletions modules/operational-insights/workspace/linked-service/main.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"languageVersion": "2.0",
"contentVersion": "1.0.0.0",
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.22.6.54827",
"templateHash": "15022791045507209174"
"templateHash": "9970744617970664745"
},
"name": "Log Analytics Workspace Linked Services",
"description": "This module deploys a Log Analytics Workspace Linked Service.",
Expand Down Expand Up @@ -40,7 +41,7 @@
},
"tags": {
"type": "object",
"defaultValue": {},
"nullable": true,
"metadata": {
"description": "Optional. Tags to configure in the resource."
}
Expand All @@ -53,8 +54,8 @@
}
}
},
"resources": [
{
"resources": {
"defaultTelemetry": {
"condition": "[parameters('enableDefaultTelemetry')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
Expand All @@ -68,17 +69,26 @@
}
}
},
{
"workspace": {
"existing": true,
"type": "Microsoft.OperationalInsights/workspaces",
"apiVersion": "2022-10-01",
"name": "[parameters('logAnalyticsWorkspaceName')]"
},
"linkedService": {
"type": "Microsoft.OperationalInsights/workspaces/linkedServices",
"apiVersion": "2020-08-01",
"name": "[format('{0}/{1}', parameters('logAnalyticsWorkspaceName'), parameters('name'))]",
"tags": "[parameters('tags')]",
"properties": {
"resourceId": "[parameters('resourceId')]",
"writeAccessResourceId": "[if(empty(parameters('writeAccessResourceId')), null(), parameters('writeAccessResourceId'))]"
}
},
"dependsOn": [
"workspace"
]
}
],
},
"outputs": {
"name": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion modules/operational-insights/workspace/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ param lock lockType
param roleAssignments roleAssignmentType

@description('Optional. Tags of the resource.')
param tags object = {}
param tags object?

@description('Optional. Enable telemetry via a Globally Unique Identifier (GUID).')
param enableDefaultTelemetry bool = true
Expand Down
83 changes: 60 additions & 23 deletions modules/operational-insights/workspace/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.22.6.54827",
"templateHash": "12796424281221754385"
"templateHash": "1028542190363116097"
},
"name": "Log Analytics Workspaces",
"description": "This module deploys a Log Analytics Workspace.",
Expand Down Expand Up @@ -409,7 +409,7 @@
},
"tags": {
"type": "object",
"defaultValue": {},
"nullable": true,
"metadata": {
"description": "Optional. Tags of the resource."
}
Expand Down Expand Up @@ -567,12 +567,13 @@
},
"template": {
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"languageVersion": "2.0",
"contentVersion": "1.0.0.0",
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.22.6.54827",
"templateHash": "6643427484780531502"
"templateHash": "13014071648331654478"
},
"name": "Log Analytics Workspace Storage Insight Configs",
"description": "This module deploys a Log Analytics Workspace Storage Insight Config.",
Expand Down Expand Up @@ -614,7 +615,7 @@
},
"tags": {
"type": "object",
"defaultValue": {},
"nullable": true,
"metadata": {
"description": "Optional. Tags to configure in the resource."
}
Expand All @@ -627,8 +628,8 @@
}
}
},
"resources": [
{
"resources": {
"defaultTelemetry": {
"condition": "[parameters('enableDefaultTelemetry')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
Expand All @@ -642,7 +643,19 @@
}
}
},
{
"storageAccount": {
"existing": true,
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2022-09-01",
"name": "[last(split(parameters('storageAccountResourceId'), '/'))]"
},
"workspace": {
"existing": true,
"type": "Microsoft.OperationalInsights/workspaces",
"apiVersion": "2022-10-01",
"name": "[parameters('logAnalyticsWorkspaceName')]"
},
"storageinsightconfig": {
"type": "Microsoft.OperationalInsights/workspaces/storageInsightConfigs",
"apiVersion": "2020-08-01",
"name": "[format('{0}/{1}', parameters('logAnalyticsWorkspaceName'), parameters('name'))]",
Expand All @@ -654,9 +667,13 @@
"id": "[parameters('storageAccountResourceId')]",
"key": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', last(split(parameters('storageAccountResourceId'), '/'))), '2022-09-01').keys[0].value]"
}
}
},
"dependsOn": [
"storageAccount",
"workspace"
]
}
],
},
"outputs": {
"resourceId": {
"type": "string",
Expand Down Expand Up @@ -714,12 +731,13 @@
},
"template": {
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"languageVersion": "2.0",
"contentVersion": "1.0.0.0",
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.22.6.54827",
"templateHash": "15022791045507209174"
"templateHash": "9970744617970664745"
},
"name": "Log Analytics Workspace Linked Services",
"description": "This module deploys a Log Analytics Workspace Linked Service.",
Expand Down Expand Up @@ -754,7 +772,7 @@
},
"tags": {
"type": "object",
"defaultValue": {},
"nullable": true,
"metadata": {
"description": "Optional. Tags to configure in the resource."
}
Expand All @@ -767,8 +785,8 @@
}
}
},
"resources": [
{
"resources": {
"defaultTelemetry": {
"condition": "[parameters('enableDefaultTelemetry')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
Expand All @@ -782,17 +800,26 @@
}
}
},
{
"workspace": {
"existing": true,
"type": "Microsoft.OperationalInsights/workspaces",
"apiVersion": "2022-10-01",
"name": "[parameters('logAnalyticsWorkspaceName')]"
},
"linkedService": {
"type": "Microsoft.OperationalInsights/workspaces/linkedServices",
"apiVersion": "2020-08-01",
"name": "[format('{0}/{1}', parameters('logAnalyticsWorkspaceName'), parameters('name'))]",
"tags": "[parameters('tags')]",
"properties": {
"resourceId": "[parameters('resourceId')]",
"writeAccessResourceId": "[if(empty(parameters('writeAccessResourceId')), null(), parameters('writeAccessResourceId'))]"
}
},
"dependsOn": [
"workspace"
]
}
],
},
"outputs": {
"name": {
"type": "string",
Expand Down Expand Up @@ -1314,12 +1341,13 @@
},
"template": {
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"languageVersion": "2.0",
"contentVersion": "1.0.0.0",
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.22.6.54827",
"templateHash": "7994060758159745935"
"templateHash": "13903182753870680383"
},
"name": "Log Analytics Workspace Datasources",
"description": "This module deploys a Log Analytics Workspace Data Source.",
Expand Down Expand Up @@ -1357,7 +1385,7 @@
},
"tags": {
"type": "object",
"defaultValue": {},
"nullable": true,
"metadata": {
"description": "Optional. Tags to configure in the resource."
}
Expand Down Expand Up @@ -1447,8 +1475,8 @@
}
}
},
"resources": [
{
"resources": {
"defaultTelemetry": {
"condition": "[parameters('enableDefaultTelemetry')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
Expand All @@ -1462,7 +1490,13 @@
}
}
},
{
"workspace": {
"existing": true,
"type": "Microsoft.OperationalInsights/workspaces",
"apiVersion": "2022-10-01",
"name": "[parameters('logAnalyticsWorkspaceName')]"
},
"dataSource": {
"type": "Microsoft.OperationalInsights/workspaces/dataSources",
"apiVersion": "2020-08-01",
"name": "[format('{0}/{1}', parameters('logAnalyticsWorkspaceName'), parameters('name'))]",
Expand All @@ -1480,9 +1514,12 @@
"syslogName": "[if(and(not(empty(parameters('kind'))), equals(parameters('kind'), 'LinuxSyslog')), parameters('syslogName'), null())]",
"syslogSeverities": "[if(and(not(empty(parameters('kind'))), or(equals(parameters('kind'), 'LinuxSyslog'), equals(parameters('kind'), 'LinuxPerformanceObject'))), parameters('syslogSeverities'), null())]",
"performanceCounters": "[if(and(not(empty(parameters('kind'))), equals(parameters('kind'), 'LinuxPerformanceObject')), parameters('performanceCounters'), null())]"
}
},
"dependsOn": [
"workspace"
]
}
],
},
"outputs": {
"resourceId": {
"type": "string",
Expand Down
Loading

0 comments on commit 522bfbc

Please sign in to comment.