Skip to content

Commit 0ef50cf

Browse files
authored
Merge pull request #7 from ronaldbosma/releases/1.6.0
Release 1.6.0
2 parents 3b192f9 + 6089676 commit 0ef50cf

File tree

10 files changed

+10
-30
lines changed

10 files changed

+10
-30
lines changed

azure.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
name: azure-integration-services-quickstart
44
metadata:
5-
template: tdd-azure-integration-services-quickstart@1.5.0
5+
template: tdd-azure-integration-services-quickstart@1.6.0
66
hooks:
77
predown:
88
- shell: pwsh
@@ -18,4 +18,4 @@ services:
1818
host: function
1919
language: js # Logic Apps aren't natively supported by azd yet. By using js, the logic app will be zipped and deployed.
2020
requiredVersions:
21-
azd: ">= 1.12.0" # azd version 1.12.0 or later is required because of the use of the Bicep deployer() function
21+
azd: ">= 1.17.0" # azd version 1.17.0 or later is required because of the new bicep linter rule 'no-unused-imports'.

bicepconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
"no-unused-existing-resources": {
5555
"level": "error"
5656
},
57+
"no-unused-imports": {
58+
"level": "error"
59+
},
5760
"no-unused-params": {
5861
"level": "error"
5962
},

infra/functions/naming-conventions.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func removeHyphens(value string) string => replace(value, '-', '')
6060
// Sanitize the resource name by removing illegal characters and converting it to lower case.
6161
func sanitizeResourceName(value string) string => toLower(removeTrailingHyphen(removeColons(removeCommas(removeDots(removeSemicolons(removeUnderscores(removeWhiteSpaces(value))))))))
6262

63-
func removeTrailingHyphen(value string) string => endsWith(value, '-') ? substring(value, 0, length(value)-1) : value
63+
func removeTrailingHyphen(value string) string => endsWith(value, '-') ? substring(value, 0, max(0, length(value)-1)) : value
6464
func removeColons(value string) string => replace(value, ':', '')
6565
func removeCommas(value string) string => replace(value, ',', '')
6666
func removeDots(value string) string => replace(value, '.', '')

infra/main.bicep

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ targetScope = 'subscription'
1010
//=============================================================================
1111

1212
import { getResourceName, getInstanceId } from './functions/naming-conventions.bicep'
13-
import * as settings from './types/settings.bicep'
14-
1513

1614
//=============================================================================
1715
// Parameters
@@ -112,7 +110,6 @@ resource resourceGroup 'Microsoft.Resources/resourceGroups@2024-07-01' = {
112110
}
113111

114112
module keyVault 'modules/services/key-vault.bicep' = {
115-
name: 'keyVault'
116113
scope: resourceGroup
117114
params: {
118115
location: location
@@ -122,7 +119,6 @@ module keyVault 'modules/services/key-vault.bicep' = {
122119
}
123120

124121
module storageAccount 'modules/services/storage-account.bicep' = {
125-
name: 'storageAccount'
126122
scope: resourceGroup
127123
params: {
128124
location: location
@@ -132,7 +128,6 @@ module storageAccount 'modules/services/storage-account.bicep' = {
132128
}
133129

134130
module appInsights 'modules/services/app-insights.bicep' = {
135-
name: 'appInsights'
136131
scope: resourceGroup
137132
params: {
138133
location: location
@@ -142,7 +137,6 @@ module appInsights 'modules/services/app-insights.bicep' = {
142137
}
143138

144139
module eventHubsNamespace 'modules/services/event-hubs-namespace.bicep' = if (eventHubSettings != null) {
145-
name: 'eventHubsNamespace'
146140
scope: resourceGroup
147141
params: {
148142
location: location
@@ -152,7 +146,6 @@ module eventHubsNamespace 'modules/services/event-hubs-namespace.bicep' = if (ev
152146
}
153147

154148
module serviceBus 'modules/services/service-bus.bicep' = if (serviceBusSettings != null) {
155-
name: 'serviceBus'
156149
scope: resourceGroup
157150
params: {
158151
location: location
@@ -162,7 +155,6 @@ module serviceBus 'modules/services/service-bus.bicep' = if (serviceBusSettings
162155
}
163156

164157
module apiManagement 'modules/services/api-management.bicep' = if (apiManagementSettings != null) {
165-
name: 'apiManagement'
166158
scope: resourceGroup
167159
params: {
168160
location: location
@@ -183,7 +175,6 @@ module apiManagement 'modules/services/api-management.bicep' = if (apiManagement
183175
}
184176

185177
module functionApp 'modules/services/function-app.bicep' = if (functionAppSettings != null) {
186-
name: 'functionApp'
187178
scope: resourceGroup
188179
params: {
189180
location: location
@@ -206,7 +197,6 @@ module functionApp 'modules/services/function-app.bicep' = if (functionAppSettin
206197
}
207198

208199
module logicApp 'modules/services/logic-app.bicep' = if (logicAppSettings != null) {
209-
name: 'logicApp'
210200
scope: resourceGroup
211201
params: {
212202
location: location
@@ -229,7 +219,6 @@ module logicApp 'modules/services/logic-app.bicep' = if (logicAppSettings != nul
229219
}
230220

231221
module assignRolesToDeployer 'modules/shared/assign-roles-to-principal.bicep' = {
232-
name: 'assignRolesToDeployer'
233222
scope: resourceGroup
234223
params: {
235224
principalId: deployer().objectId
@@ -253,7 +242,6 @@ module assignRolesToDeployer 'modules/shared/assign-roles-to-principal.bicep' =
253242
//=============================================================================
254243

255244
module applicationResources 'modules/application/application.bicep' = if (includeApplicationInfraResources) {
256-
name: 'applicationResources'
257245
scope: resourceGroup
258246
params: {
259247
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: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ resource appInsights 'Microsoft.Insights/components@2020-02-02' existing = {
5353
name: appInsightsName
5454
}
5555

56-
resource keyVault 'Microsoft.KeyVault/vaults@2023-07-01' existing = {
56+
resource keyVault 'Microsoft.KeyVault/vaults@2024-11-01' existing = {
5757
name: keyVaultName
5858
}
5959

@@ -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'
@@ -166,7 +164,7 @@ resource apimInsightsDiagnostics 'Microsoft.ApiManagement/service/diagnostics@20
166164

167165
// Store master subscription key in Key Vault
168166

169-
resource apimMasterSubscriptionKeySecret 'Microsoft.KeyVault/vaults/secrets@2023-07-01' = {
167+
resource apimMasterSubscriptionKeySecret 'Microsoft.KeyVault/vaults/secrets@2024-11-01' = {
170168
name: 'apim-master-subscription-key'
171169
parent: keyVault
172170
properties: {

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/key-vault.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ param keyVaultName string
2525

2626
// Key Vault (see also: https://learn.microsoft.com/en-us/azure/key-vault/secrets/quick-create-bicep?tabs=CLI)
2727

28-
resource keyVault 'Microsoft.KeyVault/vaults@2023-07-01' = {
28+
resource keyVault 'Microsoft.KeyVault/vaults@2024-11-01' = {
2929
name: keyVaultName
3030
location: location
3131
tags: tags

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

infra/modules/shared/assign-roles-to-principal.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ resource eventHubsNamespace 'Microsoft.EventHub/namespaces@2024-01-01' existing
7070
name: eventHubSettings!.namespaceName
7171
}
7272

73-
resource keyVault 'Microsoft.KeyVault/vaults@2023-07-01' existing = {
73+
resource keyVault 'Microsoft.KeyVault/vaults@2024-11-01' existing = {
7474
name: keyVaultName
7575
}
7676

0 commit comments

Comments
 (0)