Azure / Azure/Azure-DataFactory

Export script generates incomplete ARM template

Open
#455 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
529
Forks
623
PR merge metrics
No merged PRs in 30d

Description

The export script is generating an incomplete ARM template for our factory, content:

```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": "factory-name"
}
},
"variables": {
"factoryId": "[concat('Microsoft.DataFactory/factories/', parameters('factoryName'))]"
},
"resources": [
{
"name": "[concat(parameters('factoryName'), '/default')]",
"type": "Microsoft.DataFactory/factories/globalparameters",
"apiVersion": "2018-06-01",
"properties": {},
"dependsOn": []
}
]
}
```

This template should at least contain 1 copy data activity, 2 datasets, 2 linkedServices, 1 trigger, but they all are missing.

Similar to https://github.com/Azure/Azure-DataFactory/issues/288,
We are getting warnings that `@microsoft/azure-data-factory-utilities` cannot find models for types 'ipeline', 'inkedService', 'rigger', 'ataset', with these warnings occurring the same number of times per type as we have resources for them, so for example 2 times for our linkedServices, etc., which seems oddly related.

```sh
WARNING === ModelService: synchronizeInternal - Failed to find model for the resource, ignoring this resource. Error: {"stack":"Error: Not able to find model for type - ipeline and subType - undefined\n at e.getModelByResourceType (C:\\path\\to\\project\\downloads\\main.js:2:4235306)\n at e. (C:\\path\\to\\project\\downloads\\main.js:2:2715827)\n at C:\\path\\to\\project\\downloads\\main.js:2:6852515\n at Object.next (C:\\path\\to\\project\\downloads\\main.js:2:6852620)\n at C:\\path\\to\\project\\downloads\\main.js:2:6851557\n at new Promise ()\n at c (C:\\path\\to\\project\\downloads\\main.js:2:6851302)\n at e._createAndFetchEntities (C:\\path\\to\\project\\downloads\\main.js:2:2715207)\n at e. (C:\\path\\to\\project\\downloads\\main.js:2:2715060)\n at C:\\path\\to\\project\\downloads\\main.js:2:6852515","message":"Not able to find model for type - ipeline and subType - undefined"}
```

OS: Win11
Node.js: v18.9.0
`@microsoft/azure-data-factory-utilities`: v1.0.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.