// User Managed Identity module @description('The environment name (DEV, IAT, Prod)') param environment string @description('The location for the managed identity') param location string @description('Tags to apply to resources') param tags object @description('Unique token for resource naming') param resourceToken string var managedIdentityName = 'id-dbplanet-${toLower(environment)}-${resourceToken}' resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2024-11-30' = { name: managedIdentityName location: location tags: tags } output managedIdentityName string = managedIdentity.name output managedIdentityId string = managedIdentity.id output managedIdentityPrincipalId string = managedIdentity.properties.principalId output managedIdentityClientId string = managedIdentity.properties.clientId