Open piotr-gbyliczek opened 4 years ago
Any progress on this issue? I am facing similar issues.
Anyone know of a workaround in the meantime?
is there an update to this please - thank you
I have the same issue. If your factory is going to git mode then you need the IR description in JSON in the factory's repo otherwise it exists but doesn't show unless you switch back to live mode (very confusing!).
The same issue will arise if you create any other adf resources like datasets or linked services in terraform.
As workarounds:
Ideally we could do with a terraform resource maybe in azuredevops provider that you could use to check a new file into a git repo - for the use case here it's only 4 lines of JSON so could be inline in the resource definition. Something like:
resource "azuredevops_git_repository_file" "new_file" {
project_id = azuredevops_project.project.id
repository_id = azuredevops_git_repository.repo.id
content = <<CONTENT
{
"name": "myIntegrationRuntime",
"properties": {
"type": "SelfHosted"
}
}
CONTENT
}
Maybe optionally a fileURI = ...
if we didn't want the file inline in a content
key, perhaps?
And/or maybe an optional repository_file {}
block available in all the adf contained resources with the inline content or fileURI
We could create a feature request if this is useful to several folks (I'd write it myself if I knew how to do it!)
HI there and thank you for reporting this issue. As @drjwelch rightfully states - the self-hosted IR has to be present both in TF and and ADF's git (yuck). We are also doing something in the lines of what @drjwelch suggests. Unfortunately there's no other way around it from what I know.
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.12.28
Affected Resource(s)
azurerm_data_factory azurerm_data_factory_integration_runtime_self_hosted
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Integration Runtimes connection should be created in Data Factory and visible in "Azure DevOps GIT" mode, also, a connection file should be present in git repository.
Actual Behavior
Integration Runtimes connection is created in Data Factory mode, and not present in git repository as a file.
Steps to Reproduce
Create resources.
terraform apply
Important Factoids
References