@@ -14,7 +14,8 @@ import (
1414 "github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2025-07-01/endpoints"
1515 "github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2025-07-01/storagemovers"
1616 "github.com/hashicorp/terraform-provider-azurerm/internal/sdk"
17- "github.com/hashicorp/terraform-provider-azurerm/internal/services/storagemover/validate"
17+ "github.com/hashicorp/terraform-provider-azurerm/internal/services/storage/validate"
18+ storageMoverValidate "github.com/hashicorp/terraform-provider-azurerm/internal/services/storagemover/validate"
1819 "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
1920 "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
2021)
@@ -49,7 +50,7 @@ func (r StorageMoverNfsFileShareEndpointResource) Arguments() map[string]*plugin
4950 Type : pluginsdk .TypeString ,
5051 Required : true ,
5152 ForceNew : true ,
52- ValidateFunc : validate .EndpointName ,
53+ ValidateFunc : storageMoverValidate .EndpointName ,
5354 },
5455
5556 "storage_mover_id" : {
@@ -70,13 +71,13 @@ func (r StorageMoverNfsFileShareEndpointResource) Arguments() map[string]*plugin
7071 Type : pluginsdk .TypeString ,
7172 Required : true ,
7273 ForceNew : true ,
73- ValidateFunc : validation . StringIsNotEmpty ,
74+ ValidateFunc : validate . StorageShareName ,
7475 },
7576
7677 "description" : {
7778 Type : pluginsdk .TypeString ,
7879 Optional : true ,
79- ValidateFunc : validation .StringIsNotEmpty ,
80+ ValidateFunc : validation .StringLenBetween ( 0 , 1024 ) ,
8081 },
8182 }
8283}
@@ -157,7 +158,7 @@ func (r StorageMoverNfsFileShareEndpointResource) Update() sdk.ResourceFunc {
157158
158159 properties := resp .Model
159160 if properties == nil {
160- return fmt .Errorf ("retrieving %s: model was nil" , * id )
161+ return fmt .Errorf ("retrieving %s: ` model` was nil" , * id )
161162 }
162163
163164 if metadata .ResourceData .HasChange ("description" ) {
0 commit comments