diff --git a/README.md b/README.md
index 8493cf7..ab45273 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,7 @@ No resources.
| [route\_tables](#input\_route\_tables) | Set of unique strings to create Route Tables full names | `set(string)` | `[]` | no |
| [storage\_accounts](#input\_storage\_accounts) | Set of unique strings to create Storage Accounts full names | `set(string)` | `[]` | no |
| [subnets](#input\_subnets) | Set of unique strings to create Subnets full names | `set(string)` | `[]` | no |
+| [user\_assigned\_identities](#input\_user\_assigned\_identities) | Set of unique strings to create User Assigned Identities full names | `set(string)` | `[]` | no |
| [virtual\_networks](#input\_virtual\_networks) | Set of unique strings to create Virtual Network full names | `set(string)` | `[]` | no |
| [workbooks](#input\_workbooks) | Set of unique strings to create Workbooks full names | `set(string)` | `[]` | no |
@@ -105,6 +106,8 @@ No resources.
| [storage\_accounts](#output\_storage\_accounts) | Built name of multiple Storage Accounts with unique particle |
| [subnet](#output\_subnet) | Built name of single Subnet |
| [subnets](#output\_subnets) | Built name of multiple Subnets with unique particle |
+| [user\_assigned\_identities](#output\_user\_assigned\_identities) | Built name of multiple User Assigned Identities with unique particle |
+| [user\_assigned\_identity](#output\_user\_assigned\_identity) | Built name of single User Assigned Identity |
| [virtual\_network](#output\_virtual\_network) | Built name of single Virtual Network |
| [virtual\_networks](#output\_virtual\_networks) | Built name of multiple Virtual Networks with unique particle |
| [workbook](#output\_workbook) | Built name of single Workbook |
diff --git a/main.tf b/main.tf
index e90cb21..95875b2 100644
--- a/main.tf
+++ b/main.tf
@@ -86,14 +86,18 @@ locals {
# Purview
purview = substr(join("-", compact(["pvw", var.project, var.environment, var.location, var.instance_number])), 0, 63)
purviews = { for item in var.purviews : item => substr(join("-", compact(["pvw", var.project, item, var.environment, var.location, var.instance_number])), 0, 63) }
-
+
# Dashboard
dashboard = substr(join("-", compact(["dsb", var.project, var.environment, var.location, var.instance_number])), 0, 63)
dashboards = { for item in var.dashboards : item => substr(join("-", compact(["dsb", var.project, item, var.environment, var.location, var.instance_number])), 0, 63) }
-
+
# Dashboard
workbook = substr(join("-", compact(["wbk", var.project, var.environment, var.location, var.instance_number])), 0, 63)
workbooks = { for item in var.workbooks : item => substr(join("-", compact(["wbk", var.project, item, var.environment, var.location, var.instance_number])), 0, 63) }
+
+ # User Assigned Identity
+ user_assigned_identity = substr(join("-", compact(["id", var.project, var.environment, var.location, var.instance_number])), 0, 63)
+ user_assigned_identities = { for item in var.user_assigned_identities : item => substr(join("-", compact(["id", var.project, item, var.environment, var.location, var.instance_number])), 0, 63) }
}
locals {
diff --git a/outputs.tf b/outputs.tf
index 0a08dd1..2684aa0 100644
--- a/outputs.tf
+++ b/outputs.tf
@@ -261,3 +261,14 @@ output "workbooks" {
description = "Built name of multiple Workbooks with unique particle"
value = local.workbooks
}
+
+# User Assigned Identity
+output "user_assigned_identity" {
+ description = "Built name of single User Assigned Identity"
+ value = local.user_assigned_identity
+}
+
+output "user_assigned_identities" {
+ description = "Built name of multiple User Assigned Identities with unique particle"
+ value = local.user_assigned_identities
+}
diff --git a/variables.tf b/variables.tf
index 8ce6a4a..dfa0ab5 100644
--- a/variables.tf
+++ b/variables.tf
@@ -162,3 +162,9 @@ variable "workbooks" {
description = "Set of unique strings to create Workbooks full names"
default = []
}
+
+variable "user_assigned_identities" {
+ type = set(string)
+ description = "Set of unique strings to create User Assigned Identities full names"
+ default = []
+}