From 300eb11f5915d6dc11c16f238d637b4b9da2df48 Mon Sep 17 00:00:00 2001 From: Igor Shenederchuk Date: Thu, 15 Aug 2019 15:13:27 +0300 Subject: [PATCH 1/2] Increases name lenght limit for user_assigned_identity from 1-24 to 3-128 --- azurerm/data_source_user_assigned_identity.go | 2 +- azurerm/resource_arm_user_assigned_identity.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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..7f4d3bcb16b4 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, 128da), }, "resource_group_name": azure.SchemaResourceGroupName(), From f0426f836c6d0b82b849cb9d99edfb8729e3a7e2 Mon Sep 17 00:00:00 2001 From: Igor Shenederchuk Date: Thu, 15 Aug 2019 15:21:23 +0300 Subject: [PATCH 2/2] Fixes typo in arm_user_assigned_identity validation length --- azurerm/resource_arm_user_assigned_identity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/resource_arm_user_assigned_identity.go b/azurerm/resource_arm_user_assigned_identity.go index 7f4d3bcb16b4..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(3, 128da), + ValidateFunc: validation.StringLenBetween(3, 128), }, "resource_group_name": azure.SchemaResourceGroupName(),