Open akinsriv opened 2 years ago
In my testing, I am not even able to get a KV linked resource to show up in data factory when deployed with Terraform using the documentation example code. Is the resource itself working correctly?
Running the az cli command it does indeed show up, but I'm not aware of how to tell which mode it is (also, not showing up as a linked service in adf.azure.com)
az datafactory linked-service list --factory-name "testdf1234754324" --resource-group "example-resources"
[
{
"etag": "<eTag>",
"id": "/subscriptions/<sub-ID>/resourceGroups/example-resources/providers/Microsoft.DataFactory/factories/testdf1234754324/linkedservices/linked_kv",
"name": "linked_kv",
"properties": {
"additionalProperties": null,
"annotations": null,
"baseUrl": "https://dfkeyvault1269492.vault.azure.net/",
"connectVia": null,
"credential": null,
"description": "",
"parameters": null,
"type": "AzureKeyVault"
},
"resourceGroup": "example-resources",
"type": "Microsoft.DataFactory/factories/linkedservices"
}
]
In my testing, I am not even able to get a KV linked resource to show up in data factory when deployed with Terraform using the documentation example code. Is the resource itself working correctly?
Running the az cli command it does indeed show up, but I'm not aware of how to tell which mode it is (also, not showing up as a linked service in adf.azure.com)
az datafactory linked-service list --factory-name "testdf1234754324" --resource-group "example-resources"
[ { "etag": "<eTag>", "id": "/subscriptions/<sub-ID>/resourceGroups/example-resources/providers/Microsoft.DataFactory/factories/testdf1234754324/linkedservices/linked_kv", "name": "linked_kv", "properties": { "additionalProperties": null, "annotations": null, "baseUrl": "https://dfkeyvault1269492.vault.azure.net/", "connectVia": null, "credential": null, "description": "", "parameters": null, "type": "AzureKeyVault" }, "resourceGroup": "example-resources", "type": "Microsoft.DataFactory/factories/linkedservices" } ]
Thanks @mkprizzle. However, the above terraform code does create a Key Vault Linked service for me. The given code has mentions of some name coded modules and data reference to Key Vault from where it fetched ID. Also, once successfully executed it does take a minute or two for resource to show up in Azure Data Factory Studio.
For the latter question, if you navigate to Azure portal you can look up if your resource is created in "Live Mode" or "Git Mode", such as below, if haven't already tried:
Hi @akinsriv ,
Thanks for taking time to report this issue.
I'm not sure whether I understand this correctly, but from the image you attached, it says Switch to live mode
which means currently it's in git mode
?
Hi @akinsriv ,
Thanks for taking time to report this issue.
I'm not sure whether I understand this correctly, but from the image you attached, it says
Switch to live mode
which means currently it's ingit mode
?
I have posted that image, to show mkprizzle where to switch between the modes. Basically, I only see the Data Linked Service deployed when I go to Live Mode
, i.e, Data Mode
, however I want it to be visible under Git Mode
. By portal I can do it but not via Terraform.
Authoring directly with the Data Factory service is disabled in the Azure Data Factory UX when a Git repository is configured. Changes made via PowerShell or an SDK are published directly to the Data Factory service, and are not entered into Git.
From the official document, it's not impossible for terraform to support this feature.
Ref: https://docs.microsoft.com/en-us/azure/data-factory/source-control
When in GIT
mode, all linked services definitions are read from the template files in the GIT branch that was configured for this factory. Thus, terraform definitions will only be visible in live
mode.
Authoring directly with the Data Factory service is disabled in the Azure Data Factory UX when a Git repository is configured. Changes made via PowerShell or an SDK are published directly to the Data Factory service, and are not entered into Git.
From the official document, it's not impossible for terraform to support this feature.
Ref: https://docs.microsoft.com/en-us/azure/data-factory/source-control
It looks like this is still true, but can someone point out where in the linked documentation this is stated?
Is there an existing issue for this?
Community Note
Terraform Version
1.1.7
AzureRM Provider Version
3.0.2
Affected Resource(s)/Data Source(s)
azurerm_data_factory_linked_service_key_vault
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The linked service must be created in GIT Mode.
Actual Behaviour
The linked service must be created in Live Mode.
Steps to Reproduce
No response
Important Factoids
No response
References
No response