Skip to content

Commit 60b3378

Browse files
authored
Update copy-resources.md
1 parent 669f3bd commit 60b3378

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

articles/azure-resource-manager/templates/copy-resources.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,21 +194,26 @@ You can't use a copy loop for a child resource. To create more than one instance
194194
For example, suppose you typically define a dataset as a child resource within a data factory.
195195

196196
```json
197-
"resources": [
198197
{
199-
"type": "Microsoft.DataFactory/factories",
200-
"name": "exampleDataFactory",
201-
...
202198
"resources": [
203199
{
204-
"type": "datasets",
205-
"name": "exampleDataSet",
206-
"dependsOn": [
207-
"exampleDataFactory"
208-
],
200+
"type": "Microsoft.DataFactory/factories",
201+
"name": "exampleDataFactory",
202+
...
203+
"resources": [
204+
{
205+
"type": "datasets",
206+
"name": "exampleDataSet",
207+
"dependsOn": [
208+
"exampleDataFactory"
209+
],
210+
...
211+
}
212+
]
209213
...
210214
}
211215
]
216+
}
212217
```
213218

214219
To create more than one data set, move it outside of the data factory. The dataset must be at the same level as the data factory, but it's still a child resource of the data factory. You preserve the relationship between data set and data factory through the type and name properties. Since type can no longer be inferred from its position in the template, you must provide the fully qualified type in the format: `{resource-provider-namespace}/{parent-resource-type}/{child-resource-type}`.

0 commit comments

Comments
 (0)