Unable to create a nested folder structure more than 2 levels deep

Unable to create a nested folder structure more than 2 levels deep

** Terraform v0.12.18

  • provider.azurerm v2.16.0
  • provider.random v2.3.0**

Not able to create a Nested Directory On Azure Storage account. It accepts 1 level deep, but for more than 2 it throws the following error:

**name must contain only uppercase and lowercase alphanumeric characters, numbers and hyphens. It must start and end with a letter and end only with a number or letter

on terraform.tf line 180, in resource “azurerm_storage_share_directory” “example”:
180: resource “azurerm_storage_share_directory” “example” {**