We are trying to create an Azure Data Factory Linked Service for an Azure Batch account using Terraform. However, there is no native resource available in Terraform documentation for creating an Azure Batch Linked Service directly. To work around this, we attempted to use a custom-linked service. But, we are encountering an "Invalid Payload" error with the type "AzureBatch." We need assistance in resolving this issue and successfully creating the Azure Batch Linked Service using Terraform. Any guidance or solutions would be highly appreciated.
2
Answers
According to the sample template from terraform registry, I checked your code and tried to create Azure Batch linked service in my environment using
azurerm_data_factory_linked_custom_service
resource and was able to run it successfully as follows.Initialized & validated the configuration:
Executed
terraform plan
:Executed
terraform apply
:Deployed successfully:
The error
is Invalid linked service payload, the "typeProperties" nested in payload is null..
shows that you have an issue with"connectionString":"${data.azurerm_storage_account.example.primary_connection_string}"
config line.Please double check that you have needed
azurerm_storage_account
, anddata.azurerm_storage_account.example.primary_connection_string
return correct connection string.