Skip to content

Commit 6089676

Browse files
committed
Remove Bicep module names
These became optional in Bicep v.0.34.1
1 parent b61879e commit 6089676

File tree

5 files changed

+0
-21
lines changed

5 files changed

+0
-21
lines changed

infra/main.bicep

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ resource resourceGroup 'Microsoft.Resources/resourceGroups@2024-07-01' = {
110110
}
111111

112112
module keyVault 'modules/services/key-vault.bicep' = {
113-
name: 'keyVault'
114113
scope: resourceGroup
115114
params: {
116115
location: location
@@ -120,7 +119,6 @@ module keyVault 'modules/services/key-vault.bicep' = {
120119
}
121120

122121
module storageAccount 'modules/services/storage-account.bicep' = {
123-
name: 'storageAccount'
124122
scope: resourceGroup
125123
params: {
126124
location: location
@@ -130,7 +128,6 @@ module storageAccount 'modules/services/storage-account.bicep' = {
130128
}
131129

132130
module appInsights 'modules/services/app-insights.bicep' = {
133-
name: 'appInsights'
134131
scope: resourceGroup
135132
params: {
136133
location: location
@@ -140,7 +137,6 @@ module appInsights 'modules/services/app-insights.bicep' = {
140137
}
141138

142139
module eventHubsNamespace 'modules/services/event-hubs-namespace.bicep' = if (eventHubSettings != null) {
143-
name: 'eventHubsNamespace'
144140
scope: resourceGroup
145141
params: {
146142
location: location
@@ -150,7 +146,6 @@ module eventHubsNamespace 'modules/services/event-hubs-namespace.bicep' = if (ev
150146
}
151147

152148
module serviceBus 'modules/services/service-bus.bicep' = if (serviceBusSettings != null) {
153-
name: 'serviceBus'
154149
scope: resourceGroup
155150
params: {
156151
location: location
@@ -160,7 +155,6 @@ module serviceBus 'modules/services/service-bus.bicep' = if (serviceBusSettings
160155
}
161156

162157
module apiManagement 'modules/services/api-management.bicep' = if (apiManagementSettings != null) {
163-
name: 'apiManagement'
164158
scope: resourceGroup
165159
params: {
166160
location: location
@@ -181,7 +175,6 @@ module apiManagement 'modules/services/api-management.bicep' = if (apiManagement
181175
}
182176

183177
module functionApp 'modules/services/function-app.bicep' = if (functionAppSettings != null) {
184-
name: 'functionApp'
185178
scope: resourceGroup
186179
params: {
187180
location: location
@@ -204,7 +197,6 @@ module functionApp 'modules/services/function-app.bicep' = if (functionAppSettin
204197
}
205198

206199
module logicApp 'modules/services/logic-app.bicep' = if (logicAppSettings != null) {
207-
name: 'logicApp'
208200
scope: resourceGroup
209201
params: {
210202
location: location
@@ -227,7 +219,6 @@ module logicApp 'modules/services/logic-app.bicep' = if (logicAppSettings != nul
227219
}
228220

229221
module assignRolesToDeployer 'modules/shared/assign-roles-to-principal.bicep' = {
230-
name: 'assignRolesToDeployer'
231222
scope: resourceGroup
232223
params: {
233224
principalId: deployer().objectId
@@ -251,7 +242,6 @@ module assignRolesToDeployer 'modules/shared/assign-roles-to-principal.bicep' =
251242
//=============================================================================
252243

253244
module applicationResources 'modules/application/application.bicep' = if (includeApplicationInfraResources) {
254-
name: 'applicationResources'
255245
scope: resourceGroup
256246
params: {
257247
apiManagementSettings: apiManagementSettings

infra/modules/application/application.bicep

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,13 @@ param storageAccountName string
3333
//=============================================================================
3434

3535
module sampleApi 'sample-api/sample-api.bicep' = if (apiManagementSettings != null) {
36-
name: 'sampleApi'
3736
params: {
3837
apiManagementServiceName: apiManagementSettings!.serviceName
3938
serviceBusSettings: serviceBusSettings
4039
}
4140
}
4241

4342
module topicsAndSubscriptions 'service-bus/topics-and-subscriptions.bicep' = if (serviceBusSettings != null) {
44-
name: 'topicsAndSubscriptions'
4543
params: {
4644
serviceBusSettings: serviceBusSettings!
4745
functionAppSettings: functionAppSettings
@@ -50,7 +48,6 @@ module topicsAndSubscriptions 'service-bus/topics-and-subscriptions.bicep' = if
5048
}
5149

5250
module storageAccount 'storage-account/storage-account.bicep' = {
53-
name: 'storageAccount'
5451
params: {
5552
storageAccountName: storageAccountName
5653
}

infra/modules/services/api-management.bicep

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ resource apimIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2024-11-
7575
}
7676

7777
module assignRolesToApimUserAssignedIdentity '../shared/assign-roles-to-principal.bicep' = {
78-
name: 'assignRolesToApimUserAssignedIdentity'
7978
params: {
8079
principalId: apimIdentity.properties.principalId
8180
principalType: 'ServicePrincipal'
@@ -111,7 +110,6 @@ resource apiManagementService 'Microsoft.ApiManagement/service@2024-06-01-previe
111110
// Assign roles to system-assigned identity of API Management
112111

113112
module assignRolesToApimSystemAssignedIdentity '../shared/assign-roles-to-principal.bicep' = {
114-
name: 'assignRolesToApimSystemAssignedIdentity'
115113
params: {
116114
principalId: apiManagementService.identity.principalId
117115
principalType: 'ServicePrincipal'

infra/modules/services/function-app.bicep

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ resource functionAppIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2
116116
}
117117

118118
module assignRolesToFunctionAppUserAssignedIdentity '../shared/assign-roles-to-principal.bicep' = {
119-
name: 'assignRolesToFunctionAppUserAssignedIdentity'
120119
params: {
121120
principalId: functionAppIdentity.properties.principalId
122121
principalType: 'ServicePrincipal'
@@ -171,7 +170,6 @@ resource functionApp 'Microsoft.Web/sites@2024-04-01' = {
171170
// Assign roles to system-assigned identity of Function App
172171

173172
module assignRolesToFunctionAppSystemAssignedIdentity '../shared/assign-roles-to-principal.bicep' = {
174-
name: 'assignRolesToFunctionAppSystemAssignedIdentity'
175173
params: {
176174
principalId: functionApp.identity.principalId
177175
principalType: 'ServicePrincipal'
@@ -188,7 +186,6 @@ module assignRolesToFunctionAppSystemAssignedIdentity '../shared/assign-roles-to
188186
// to prevent other (manually) created app settings from being removed.
189187

190188
module setFunctionAppSettings '../shared/merge-app-settings.bicep' = {
191-
name: 'setFunctionAppSettings'
192189
params: {
193190
siteName: functionAppSettings.functionAppName
194191
currentAppSettings: list('${functionApp.id}/config/appsettings', functionApp.apiVersion).properties

infra/modules/services/logic-app.bicep

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ resource logicAppIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2024
119119
}
120120

121121
module assignRolesToLogicAppUserAssignedIdentity '../shared/assign-roles-to-principal.bicep' = {
122-
name: 'assignRolesToLogicAppUserAssignedIdentity'
123122
params: {
124123
principalId: logicAppIdentity.properties.principalId
125124
principalType: 'ServicePrincipal'
@@ -176,7 +175,6 @@ resource logicApp 'Microsoft.Web/sites@2024-04-01' = {
176175
// Assign roles to system-assigned identity of Logic App
177176

178177
module assignRolesToLogicAppSystemAssignedIdentity '../shared/assign-roles-to-principal.bicep' = {
179-
name: 'assignRolesToLogicAppSystemAssignedIdentity'
180178
params: {
181179
principalId: logicApp.identity.principalId
182180
principalType: 'ServicePrincipal'
@@ -193,7 +191,6 @@ module assignRolesToLogicAppSystemAssignedIdentity '../shared/assign-roles-to-pr
193191
// to prevent other (manually) created app settings from being removed.
194192

195193
module setLogicAppSettings '../shared/merge-app-settings.bicep' = {
196-
name: 'setLogicAppSettings'
197194
params: {
198195
siteName: logicAppSettings.logicAppName
199196
currentAppSettings: list('${logicApp.id}/config/appsettings', logicApp.apiVersion).properties

0 commit comments

Comments
 (0)