diff --git a/internal/services/iothub/iothub_endpoint_storage_container_resource.go b/internal/services/iothub/iothub_endpoint_storage_container_resource.go index 19e930617706..81c2480c5279 100644 --- a/internal/services/iothub/iothub_endpoint_storage_container_resource.go +++ b/internal/services/iothub/iothub_endpoint_storage_container_resource.go @@ -63,9 +63,9 @@ func resourceIotHubEndpointStorageContainer() *pluginsdk.Resource { }, "file_name_format": { - Type: pluginsdk.TypeString, - Optional: true, - Default: false, + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: iothubValidate.FileNameFormat, }, "batch_frequency_in_seconds": {