diff --git a/infra/app/api.bicep b/infra/app/api.bicep index cef3fc0..9208be7 100644 --- a/infra/app/api.bicep +++ b/infra/app/api.bicep @@ -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 } diff --git a/infra/app/web.bicep b/infra/app/web.bicep index cef3fc0..743b0dc 100644 --- a/infra/app/web.bicep +++ b/infra/app/web.bicep @@ -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 } diff --git a/infra/main.bicep b/infra/main.bicep index c83956f..1038d0e 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -81,6 +81,7 @@ module api './app/api.bicep' = { name: 'api' params: { location: location + tags: tags identityName: '${resourceGroupName}-${abbrs.managedIdentityUserAssignedIdentities}api' } scope: rg @@ -91,6 +92,7 @@ module web './app/web.bicep' = { name: 'web' params: { location: location + tags: tags identityName: '${resourceGroupName}-${abbrs.managedIdentityUserAssignedIdentities}web' } scope: rg