test/adf-simpledeployment-dev/armtemplate/ARMTemplateForFactory.json
|
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "factoryName": { "type": "string", "metadata": "Data Factory name", "defaultValue": "adf-simpledeployment-dev" }, "LS_SQL_Stackoverflow_connectionString": { "type": "secureString", "metadata": "Secure string for 'connectionString' of 'LS_SQL_Stackoverflow'" }, "LS_ADLS_properties_typeProperties_url": { "type": "string", "defaultValue": "https://storageblogdev.dfs.core.windows.net" }, "LS_AzureKeyVault_properties_typeProperties_baseUrl": { "type": "string", "defaultValue": "https://kv-blog-dev.vault.azure.net/" } }, "variables": { "factoryId": "[concat('Microsoft.DataFactory/factories/', parameters('factoryName'))]" }, "resources": [ { "name": "[concat(parameters('factoryName'), '/PL_CopyFiles')]", "type": "Microsoft.DataFactory/factories/pipelines", "apiVersion": "2018-06-01", "properties": { "activities": [ { "name": "Copy data1", "description": "comment - update #1", "type": "Copy", "dependsOn": [], "policy": { "timeout": "7.00:00:00", "retry": 0, "retryIntervalInSeconds": 30, "secureOutput": false, "secureInput": false }, "userProperties": [], "typeProperties": { "source": { "type": "BinarySource", "storeSettings": { "type": "AzureBlobFSReadSettings", "recursive": true, "wildcardFolderPath": "*", "wildcardFileName": "*.*" } }, "sink": { "type": "BinarySink", "storeSettings": { "type": "AzureBlobFSWriteSettings" } }, "enableStaging": false }, "inputs": [ { "referenceName": "Input_Binary", "type": "DatasetReference", "parameters": {} } ], "outputs": [ { "referenceName": "Output_Binary", "type": "DatasetReference", "parameters": {} } ] } ], "annotations": [] }, "dependsOn": [ "[concat(variables('factoryId'), '/datasets/Input_Binary')]", "[concat(variables('factoryId'), '/datasets/Output_Binary')]" ] }, { "name": "[concat(parameters('factoryName'), '/Input_Binary')]", "type": "Microsoft.DataFactory/factories/datasets", "apiVersion": "2018-06-01", "properties": { "linkedServiceName": { "referenceName": "LS_ADLS", "type": "LinkedServiceReference" }, "annotations": [], "type": "Binary", "typeProperties": { "location": { "type": "AzureBlobFSLocation", "fileName": "*.*", "folderPath": "police/hertfordshire/2019-01", "fileSystem": "csv" } } }, "dependsOn": [ "[concat(variables('factoryId'), '/linkedServices/LS_ADLS')]" ] }, { "name": "[concat(parameters('factoryName'), '/Output_Binary')]", "type": "Microsoft.DataFactory/factories/datasets", "apiVersion": "2018-06-01", "properties": { "linkedServiceName": { "referenceName": "LS_ADLS", "type": "LinkedServiceReference" }, "annotations": [], "type": "Binary", "typeProperties": { "location": { "type": "AzureBlobFSLocation", "folderPath": "output", "fileSystem": "csv" } } }, "dependsOn": [ "[concat(variables('factoryId'), '/linkedServices/LS_ADLS')]" ] }, { "name": "[concat(parameters('factoryName'), '/LS_ADLS')]", "type": "Microsoft.DataFactory/factories/linkedServices", "apiVersion": "2018-06-01", "properties": { "annotations": [], "type": "AzureBlobFS", "typeProperties": { "url": "[parameters('LS_ADLS_properties_typeProperties_url')]", "accountKey": { "type": "AzureKeyVaultSecret", "store": { "referenceName": "LS_AzureKeyVault", "type": "LinkedServiceReference" }, "secretName": "adls-storagekey" } } }, "dependsOn": [ "[concat(variables('factoryId'), '/linkedServices/LS_AzureKeyVault')]" ] }, { "name": "[concat(parameters('factoryName'), '/LS_AzureKeyVault')]", "type": "Microsoft.DataFactory/factories/linkedServices", "apiVersion": "2018-06-01", "properties": { "annotations": [], "type": "AzureKeyVault", "typeProperties": { "baseUrl": "[parameters('LS_AzureKeyVault_properties_typeProperties_baseUrl')]" } }, "dependsOn": [] }, { "name": "[concat(parameters('factoryName'), '/LS_SQL_Stackoverflow')]", "type": "Microsoft.DataFactory/factories/linkedServices", "apiVersion": "2018-06-01", "properties": { "annotations": [], "type": "AzureSqlDatabase", "typeProperties": { "connectionString": "[parameters('LS_SQL_Stackoverflow_connectionString')]", "password": { "type": "AzureKeyVaultSecret", "store": { "referenceName": "LS_AzureKeyVault", "type": "LinkedServiceReference" }, "secretName": "sqlplayer-sqlserver-password" } } }, "dependsOn": [ "[concat(variables('factoryId'), '/linkedServices/LS_AzureKeyVault')]" ] } ] } |