diff --git a/azurerm/data_source_user_assigned_identity.go b/azurerm/data_source_user_assigned_identity.go index 9d6e08269875..bca2688e49a1 100644 --- a/azurerm/data_source_user_assigned_identity.go +++ b/azurerm/data_source_user_assigned_identity.go @@ -17,7 +17,7 @@ func dataSourceArmUserAssignedIdentity() *schema.Resource { "name": { Type: schema.TypeString, Required: true, - ValidateFunc: validation.StringLenBetween(1, 24), + ValidateFunc: validation.StringLenBetween(3, 128), }, "resource_group_name": azure.SchemaResourceGroupNameForDataSource(), diff --git a/azurerm/resource_arm_user_assigned_identity.go b/azurerm/resource_arm_user_assigned_identity.go index d4355e20ccc4..6973e204e1a7 100644 --- a/azurerm/resource_arm_user_assigned_identity.go +++ b/azurerm/resource_arm_user_assigned_identity.go @@ -27,7 +27,7 @@ func resourceArmUserAssignedIdentity() *schema.Resource { Type: schema.TypeString, Required: true, ForceNew: true, - ValidateFunc: validation.StringLenBetween(1, 24), + ValidateFunc: validation.StringLenBetween(3, 128), }, "resource_group_name": azure.SchemaResourceGroupName(),