Skip to content

Commit

Permalink
Merge pull request #50 from dfe-analytical-services/EES-4765_Correct_…
Browse files Browse the repository at this point in the history
…resource_name

EES-4765 Correct resource name and add tags to managed identities
  • Loading branch information
benoutram authored Dec 21, 2023
2 parents b657b96 + 439958e commit 3ea7162
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions infra/app/api.bicep
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
param location string = resourceGroup().location
param tags object = {}

param identityName string

resource apiIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
name: identityName
location: location
tags: tags
}
4 changes: 3 additions & 1 deletion infra/app/web.bicep
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
param location string = resourceGroup().location
param tags object = {}

param identityName string

resource apiIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
resource webIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
name: identityName
location: location
tags: tags
}
2 changes: 2 additions & 0 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ module api './app/api.bicep' = {
name: 'api'
params: {
location: location
tags: tags
identityName: '${resourceGroupName}-${abbrs.managedIdentityUserAssignedIdentities}api'
}
scope: rg
Expand All @@ -91,6 +92,7 @@ module web './app/web.bicep' = {
name: 'web'
params: {
location: location
tags: tags
identityName: '${resourceGroupName}-${abbrs.managedIdentityUserAssignedIdentities}web'
}
scope: rg
Expand Down

0 comments on commit 3ea7162

Please sign in to comment.