Skip to content

Commit

Permalink
First batch
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr committed Oct 28, 2023
1 parent adde087 commit 3f7d61e
Show file tree
Hide file tree
Showing 209 changed files with 1,340 additions and 1,932 deletions.
1 change: 0 additions & 1 deletion modules/aad/domain-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,6 @@ The value is to enable on-premises users to authenticate against managed domain.
Tags of the resource.
- Required: No
- Type: object
- Default: `{object}`

### Parameter: `tlsV1`

Expand Down
2 changes: 1 addition & 1 deletion modules/aad/domain-service/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ param ldaps string = 'Enabled'
param diagnosticSettings diagnosticSettingType

@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
4 changes: 2 additions & 2 deletions modules/aad/domain-service/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": "3764501671926247856"
"templateHash": "10052117540394396974"
},
"name": "Azure Active Directory Domain Services",
"description": "This module deploys an Azure Active Directory Domain Services (AADDS).",
Expand Down Expand Up @@ -390,7 +390,7 @@
},
"tags": {
"type": "object",
"defaultValue": {},
"nullable": true,
"metadata": {
"description": "Optional. Tags of the resource."
}
Expand Down
1 change: 0 additions & 1 deletion modules/analysis-services/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,6 @@ The SKU name of the Azure Analysis Services server to create.
Tags of the resource.
- Required: No
- Type: object
- Default: `{object}`


## Outputs
Expand Down
2 changes: 1 addition & 1 deletion modules/analysis-services/server/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,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
4 changes: 2 additions & 2 deletions modules/analysis-services/server/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": "7051724089747387450"
"templateHash": "17464709928355207715"
},
"name": "Analysis Services Servers",
"description": "This module deploys an Analysis Services Server.",
Expand Down Expand Up @@ -275,7 +275,7 @@
},
"tags": {
"type": "object",
"defaultValue": {},
"nullable": true,
"metadata": {
"description": "Optional. Tags of the resource."
}
Expand Down
1 change: 0 additions & 1 deletion modules/api-management/service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,6 @@ Enables system assigned managed identity on the resource.
Tags of the resource.
- Required: No
- Type: object
- Default: `{object}`

### Parameter: `userAssignedIdentities`

Expand Down
4 changes: 2 additions & 2 deletions modules/api-management/service/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ param skuCount int = 1
param subnetResourceId string = ''

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

@description('Optional. The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only.')
@allowed([
Expand Down Expand Up @@ -333,7 +333,7 @@ module service_namedValues 'named-value/main.bicep' = [for (namedValue, index) i
displayName: namedValue.displayName
keyVault: contains(namedValue, 'keyVault') ? namedValue.keyVault : {}
name: namedValue.name
tags: contains(namedValue, 'tags') ? namedValue.tags : []
tags: namedValue.?tags ?? tags
secret: contains(namedValue, 'secret') ? namedValue.secret : false
value: contains(namedValue, 'value') ? namedValue.value : newGuidValue
enableDefaultTelemetry: enableReferencedModulesTelemetry
Expand Down
8 changes: 5 additions & 3 deletions modules/api-management/service/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": "5480824753048175780"
"templateHash": "11509133074003638198"
},
"name": "API Management Services",
"description": "This module deploys an API Management Service.",
Expand Down Expand Up @@ -368,7 +368,7 @@
},
"tags": {
"type": "object",
"defaultValue": {},
"nullable": true,
"metadata": {
"description": "Optional. Tags of the resource."
}
Expand Down Expand Up @@ -2043,7 +2043,9 @@
"name": {
"value": "[parameters('namedValues')[copyIndex()].name]"
},
"tags": "[if(contains(parameters('namedValues')[copyIndex()], 'tags'), createObject('value', parameters('namedValues')[copyIndex()].tags), createObject('value', createArray()))]",
"tags": {
"value": "[coalesce(tryGet(parameters('namedValues')[copyIndex()], 'tags'), parameters('tags'))]"
},
"secret": "[if(contains(parameters('namedValues')[copyIndex()], 'secret'), createObject('value', parameters('namedValues')[copyIndex()].secret), createObject('value', false()))]",
"value": "[if(contains(parameters('namedValues')[copyIndex()], 'value'), createObject('value', parameters('namedValues')[copyIndex()].value), createObject('value', parameters('newGuidValue')))]",
"enableDefaultTelemetry": {
Expand Down
1 change: 0 additions & 1 deletion modules/app-configuration/configuration-store/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,6 @@ Enables system assigned managed identity on the resource.
Tags of the resource.
- Required: No
- Type: object
- Default: `{object}`

### Parameter: `userAssignedIdentities`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ Name of the key.
Tags of the resource.
- Required: No
- Type: object
- Default: `{object}`

### Parameter: `value`

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

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

@description('Optional. Enable telemetry via a Globally Unique Identifier (GUID).') // update all the descriptions
param enableDefaultTelemetry bool = true
Expand Down
24 changes: 17 additions & 7 deletions modules/app-configuration/configuration-store/key-value/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": "16264229277476024063"
"templateHash": "5336531799585402354"
},
"name": "App Configuration Stores Key Values",
"description": "This module deploys an App Configuration Store Key Value.",
Expand Down Expand Up @@ -39,7 +40,7 @@
},
"tags": {
"type": "object",
"defaultValue": {},
"nullable": true,
"metadata": {
"description": "Optional. Tags of the resource."
}
Expand All @@ -52,8 +53,8 @@
}
}
},
"resources": [
{
"resources": {
"defaultTelemetry": {
"condition": "[parameters('enableDefaultTelemetry')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
Expand All @@ -67,17 +68,26 @@
}
}
},
{
"appConfiguration": {
"existing": true,
"type": "Microsoft.AppConfiguration/configurationStores",
"apiVersion": "2023-03-01",
"name": "[parameters('appConfigurationName')]"
},
"keyValues": {
"type": "Microsoft.AppConfiguration/configurationStores/keyValues",
"apiVersion": "2023-03-01",
"name": "[format('{0}/{1}', parameters('appConfigurationName'), parameters('name'))]",
"properties": {
"contentType": "[parameters('contentType')]",
"tags": "[parameters('tags')]",
"value": "[parameters('value')]"
}
},
"dependsOn": [
"appConfiguration"
]
}
],
},
"outputs": {
"name": {
"type": "string",
Expand Down
4 changes: 2 additions & 2 deletions modules/app-configuration/configuration-store/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,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 Expand Up @@ -157,7 +157,7 @@ module configurationStore_keyValues 'key-value/main.bicep' = [for (keyValue, ind
name: keyValue.name
value: keyValue.value
contentType: contains(keyValue, 'contentType') ? keyValue.contentType : ''
tags: contains(keyValue, 'tags') ? keyValue.tags : {}
tags: keyValue.?tags ?? tags
enableDefaultTelemetry: enableReferencedModulesTelemetry
}
}]
Expand Down
32 changes: 22 additions & 10 deletions modules/app-configuration/configuration-store/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": "1654739294339670098"
"templateHash": "17677049567783290624"
},
"name": "App Configuration Stores",
"description": "This module deploys an App Configuration Store.",
Expand Down Expand Up @@ -500,7 +500,7 @@
},
"tags": {
"type": "object",
"defaultValue": {},
"nullable": true,
"metadata": {
"description": "Optional. Tags of the resource."
}
Expand Down Expand Up @@ -689,19 +689,22 @@
"value": "[parameters('keyValues')[copyIndex()].value]"
},
"contentType": "[if(contains(parameters('keyValues')[copyIndex()], 'contentType'), createObject('value', parameters('keyValues')[copyIndex()].contentType), createObject('value', ''))]",
"tags": "[if(contains(parameters('keyValues')[copyIndex()], 'tags'), createObject('value', parameters('keyValues')[copyIndex()].tags), createObject('value', createObject()))]",
"tags": {
"value": "[coalesce(tryGet(parameters('keyValues')[copyIndex()], 'tags'), parameters('tags'))]"
},
"enableDefaultTelemetry": {
"value": "[variables('enableReferencedModulesTelemetry')]"
}
},
"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": "16264229277476024063"
"templateHash": "5336531799585402354"
},
"name": "App Configuration Stores Key Values",
"description": "This module deploys an App Configuration Store Key Value.",
Expand Down Expand Up @@ -735,7 +738,7 @@
},
"tags": {
"type": "object",
"defaultValue": {},
"nullable": true,
"metadata": {
"description": "Optional. Tags of the resource."
}
Expand All @@ -748,8 +751,8 @@
}
}
},
"resources": [
{
"resources": {
"defaultTelemetry": {
"condition": "[parameters('enableDefaultTelemetry')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
Expand All @@ -763,17 +766,26 @@
}
}
},
{
"appConfiguration": {
"existing": true,
"type": "Microsoft.AppConfiguration/configurationStores",
"apiVersion": "2023-03-01",
"name": "[parameters('appConfigurationName')]"
},
"keyValues": {
"type": "Microsoft.AppConfiguration/configurationStores/keyValues",
"apiVersion": "2023-03-01",
"name": "[format('{0}/{1}', parameters('appConfigurationName'), parameters('name'))]",
"properties": {
"contentType": "[parameters('contentType')]",
"tags": "[parameters('tags')]",
"value": "[parameters('value')]"
}
},
"dependsOn": [
"appConfiguration"
]
}
],
},
"outputs": {
"name": {
"type": "string",
Expand Down
1 change: 0 additions & 1 deletion modules/app/container-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,6 @@ Enables system assigned managed identity on the resource.
Tags of the resource.
- Required: No
- Type: object
- Default: `{object}`

### Parameter: `trafficLabel`

Expand Down
2 changes: 1 addition & 1 deletion modules/app/container-app/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ param environmentId string
param lock lockType

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

@description('Optional. Collection of private container registry credentials for containers used by the Container app.')
param registries array = []
Expand Down
4 changes: 2 additions & 2 deletions modules/app/container-app/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": "15975254087801616307"
"templateHash": "14361298924386104580"
},
"name": "Container Apps",
"description": "This module deploys a Container App.",
Expand Down Expand Up @@ -199,7 +199,7 @@
},
"tags": {
"type": "object",
"defaultValue": {},
"nullable": true,
"metadata": {
"description": "Optional. Tags of the resource."
}
Expand Down
1 change: 0 additions & 1 deletion modules/app/managed-environment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ Managed environment SKU.
Tags of the resource.
- Required: No
- Type: object
- Default: `{object}`

### Parameter: `workloadProfiles`

Expand Down
2 changes: 1 addition & 1 deletion modules/app/managed-environment/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ param logAnalyticsWorkspaceResourceId string
param location string = resourceGroup().location

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

@description('Optional. Array of role assignment objects that contain the \'roleDefinitionIdOrName\' and \'principalId\' to define RBAC role assignments on this resource. In the roleDefinitionIdOrName attribute, you can provide either the display name of the role definition, or its fully qualified ID in the following format: \'/providers/Microsoft.Authorization/roleDefinitions/c2f4ef07-c644-48eb-af81-4b1b4947fb11\'.')
param roleAssignments roleAssignmentType
Expand Down
4 changes: 2 additions & 2 deletions modules/app/managed-environment/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": "12554616847424518267"
"templateHash": "5686402227763337334"
},
"name": "App ManagedEnvironments",
"description": "This module deploys an App Managed Environment (also known as a Container App Environment).",
Expand Down Expand Up @@ -127,7 +127,7 @@
},
"tags": {
"type": "object",
"defaultValue": {},
"nullable": true,
"metadata": {
"description": "Optional. Tags of the resource."
}
Expand Down
Loading

0 comments on commit 3f7d61e

Please sign in to comment.