Azurerm datafactory binarydataset parameters definition

Hey All,

I’ve been trying to define an azurerm_data_factory_dataset_binary dataset that contains parameters to use for dynamic content.

Now I’ve been facing some issue when it comes to defining them the error I’m getting is:

│ Error: Incorrect attribute value type
│
│   on datafactory.tf line 69, in resource "azurerm_data_factory_dataset_binary" "madison_dataset_source":
│   69:     parameters = <<PARAMETERS
│   70:     {
│   71:         "fileSystem": {
│   72:             "type": "string"
│   73:         },
│   74:         "directory":{
│   75:             "type": "string"
│   76:         }
│   77:     }
│   78:     PARAMETERS
│
│ Inappropriate value for attribute "parameters": map of string required.

My definition of the resource is as followed:

resource "azurerm_data_factory_dataset_binary" "madison_dataset_source" {
    name = join("", [var.config.name, "_storageacount_dataset_source"])
    resource_group_name = var.common.resource_group_name
    linked_service_name = azurerm_data_factory_linked_service_data_lake_storage_gen2.madison_storageacount_linkedservice_source.name
    data_factory_name =  var.config.datafactory_name

    parameters = <<PARAMETERS
    {
        "fileSystem": {
            "type": "string"
        },
        "directory":{
            "type": "string"
        }
    }
    PARAMETERS

    azure_blob_storage_location {
        container = "@dataset().fileSystem"
        path = "@dataset().directory"
        filename = "/"
    }
}

Is my definition of parameters wrong? The only exampel I was able of finding was in https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/policy_assignment

But using this formating still gives the above mentioned error. Any one got advice?

Thanks in advance!