I’m trying to deploy a data factory pipeline that contains a Fail Activity as one of its activities. I’m defining the activities as a block of json included in the resource as a template file, with the fail activity defined as follows:
{
"name": "fail-if-table-absent",
"type": "Fail",
"dependsOn": [],
"userProperties": [],
"typeProperties": {
"message": {
"value": "Requested table @{pipeline().parameters.table_name} does not exist",
"type": "Expression"
},
"errorCode": "1"
}
}
When I deploy this however, the Fail activity gets replaced by an activity with "type" = "activity"
instead, which isn’t valid. I’ve taken a scan through the source code, and suspect that the Fail activity just isn’t supported at present. Is anyone please able to confirm this, and/or suggest a workaround?
Many thanks!
There’s already an option issue for that.
opened 08:11AM - 29 Nov 21 UTC
question
service/data-factory
sdk/not-yet-supported
<!---
Please note the following potential times when an issue might be in Terra… form core:
* [Configuration Language](https://www.terraform.io/docs/configuration/index.html) or resource ordering issues
* [State](https://www.terraform.io/docs/state/index.html) and [State Backend](https://www.terraform.io/docs/backends/index.html) issues
* [Provisioner](https://www.terraform.io/docs/provisioners/index.html) issues
* [Registry](https://registry.terraform.io/) issues
* Spans resources across multiple providers
If you are running into one of these scenarios, we recommend opening an issue in the [Terraform core repository](https://github.com/hashicorp/terraform/) instead.
--->
### Community Note
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment
### Terraform (and AzureRM Provider) Version
### Affected Resource(s)
* `azurerm_2.87.0`
### Terraform Configuration Files
```hcl
resource "azurerm_data_factory_pipeline" "failPipeline" {
name = "Test fail"
resource_group_name = azurerm_resource_group.resource_group.name
data_factory_name = azurerm_data_factory.data_factory.name
variables = {}
depends_on = []
activities_json = <<JSON
[
{
"name": "Test Fail",
"type": "Fail",
"dependsOn": [],
"userProperties": [],
"typeProperties": {
"message": "Failed testing testing",
"errorCode": "500"
}
}
]
JSON
}
```
### Debug Output
<!---
Please provide a link to a GitHub Gist containing the complete debug output. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
To obtain the debug output, see the [Terraform documentation on debugging](https://www.terraform.io/docs/internals/debugging.html).
--->
### Panic Output
### Expected Behaviour
### Actual Behaviour
### Steps to Reproduce
1. `terraform apply`
### Important Factoids
### References
<!---
Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests
Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Such as vendor documentation?
--->
* #0000
Many thanks, I hadn’t found that.