param location string = 'westeurope'
param principalName string

resource mi 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
  name: principalName
  location: location
}

output principalId string = mi.properties.principalId
output id string = mi.id
