Skip to content

Commit bac0438

Browse files
committed
update
1 parent dd8d7c0 commit bac0438

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

articles/azure-resource-manager/templates/create-multiple-instances.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ The resource to create several times takes the following format:
6565
"name": "Standard_LRS"
6666
},
6767
"kind": "Storage",
68-
"properties": {},
6968
"copy": {
7069
"name": "storagecopy",
7170
"count": 3
72-
}
71+
},
72+
"properties": {}
7373
}
7474
],
7575
"outputs": {}
@@ -151,13 +151,13 @@ For example, to serially deploy storage accounts two at a time, use:
151151
"name": "Standard_LRS"
152152
},
153153
"kind": "Storage",
154-
"properties": {},
155154
"copy": {
156155
"name": "storagecopy",
157156
"count": 4,
158157
"mode": "serial",
159158
"batchSize": 2
160-
}
159+
},
160+
"properties": {}
161161
}
162162
],
163163
"outputs": {}
@@ -433,11 +433,11 @@ You specify that a resource is deployed after another resource by using the `dep
433433
"name": "Standard_LRS"
434434
},
435435
"kind": "Storage",
436-
"properties": {},
437436
"copy": {
438437
"name": "storagecopy",
439438
"count": 3
440-
}
439+
},
440+
"properties": {}
441441
},
442442
{
443443
"type": "Microsoft.Compute/virtualMachines",

articles/azure-resource-manager/templates/define-resource-dependency.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ In the following example, a CDN endpoint explicitly depends on the CDN profile,
118118
"type": "endpoints",
119119
"location": "[resourceGroup().location]",
120120
"dependsOn": [
121-
"[variables('profileName')]"
121+
"[variables('profileName')]"
122122
],
123123
"properties": {
124-
"originHostHeader": "[reference(variables('webAppName')).hostNames[0]]",
125-
...
124+
"originHostHeader": "[reference(variables('webAppName')).hostNames[0]]",
125+
...
126126
}
127127
```
128128

articles/azure-resource-manager/templates/linked-templates.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ To nest a template, add a [deployments resource](/azure/templates/microsoft.reso
2828
"variables": {},
2929
"resources": [
3030
{
31-
"apiVersion": "2017-05-10",
3231
"name": "nestedTemplate1",
32+
"apiVersion": "2017-05-10",
3333
"type": "Microsoft.Resources/deployments",
3434
"properties": {
3535
"mode": "Incremental",
@@ -71,10 +71,10 @@ The following example deploys a storage account through a nested template.
7171
"apiVersion": "2019-04-01",
7272
"name": "[parameters('storageAccountName')]",
7373
"location": "West US",
74-
"kind": "StorageV2",
7574
"sku": {
7675
"name": "Standard_LRS"
77-
}
76+
},
77+
"kind": "StorageV2"
7878
}
7979
]
8080
}
@@ -386,10 +386,10 @@ The following example template shows how to use copy with a nested template.
386386
"apiVersion": "2019-04-01",
387387
"name": "[concat(variables('storageName'), copyIndex())]",
388388
"location": "West US",
389-
"kind": "StorageV2",
390389
"sku": {
391390
"name": "Standard_LRS"
392-
}
391+
},
392+
"kind": "StorageV2"
393393
// Copy works here when scope is inner
394394
// But, when scope is default or outer, you get an error
395395
//"copy":{

articles/azure-resource-manager/templates/template-syntax.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,6 @@ You define resources with the following structure:
185185
"name": "<name-of-the-resource>",
186186
"comments": "<your-reference-notes>",
187187
"location": "<location-of-resource>",
188-
"copy": {
189-
"name": "<name-of-copy-loop>",
190-
"count": <number-of-iterations>,
191-
"mode": "<serial-or-parallel>",
192-
"batchSize": <number-to-deploy-serially>
193-
},
194188
"dependsOn": [
195189
"<array-of-related-resource-names>"
196190
],
@@ -206,6 +200,12 @@ You define resources with the following structure:
206200
"capacity": <sku-capacity>
207201
},
208202
"kind": "<type-of-resource>",
203+
"copy": {
204+
"name": "<name-of-copy-loop>",
205+
"count": <number-of-iterations>,
206+
"mode": "<serial-or-parallel>",
207+
"batchSize": <number-to-deploy-serially>
208+
},
209209
"plan": {
210210
"name": "<plan-name>",
211211
"promotionCode": "<plan-promotion-code>",
@@ -240,9 +240,9 @@ You define resources with the following structure:
240240
| location |Varies |Supported geo-locations of the provided resource. You can select any of the available locations, but typically it makes sense to pick one that is close to your users. Usually, it also makes sense to place resources that interact with each other in the same region. Most resource types require a location, but some types (such as a role assignment) don't require a location. See [Set resource location](resource-location.md). |
241241
| dependsOn |No |Resources that must be deployed before this resource is deployed. Resource Manager evaluates the dependencies between resources and deploys them in the correct order. When resources aren't dependent on each other, they're deployed in parallel. The value can be a comma-separated list of a resource names or resource unique identifiers. Only list resources that are deployed in this template. Resources that aren't defined in this template must already exist. Avoid adding unnecessary dependencies as they can slow your deployment and create circular dependencies. For guidance on setting dependencies, see [Defining dependencies in Azure Resource Manager templates](define-resource-dependency.md). |
242242
| tags |No |Tags that are associated with the resource. Apply tags to logically organize resources across your subscription. |
243-
| copy |No |If more than one instance is needed, the number of resources to create. The default mode is parallel. Specify serial mode when you don't want all or the resources to deploy at the same time. For more information, see [Create several instances of resources in Azure Resource Manager](create-multiple-instances.md). |
244243
| sku | No | Some resources allow values that define the SKU to deploy. For example, you can specify the type of redundancy for a storage account. |
245244
| kind | No | Some resources allow a value that defines the type of resource you deploy. For example, you can specify the type of Cosmos DB to create. |
245+
| copy |No |If more than one instance is needed, the number of resources to create. The default mode is parallel. Specify serial mode when you don't want all or the resources to deploy at the same time. For more information, see [Create several instances of resources in Azure Resource Manager](create-multiple-instances.md). |
246246
| plan | No | Some resources allow values that define the plan to deploy. For example, you can specify the marketplace image for a virtual machine. |
247247
| properties |No |Resource-specific configuration settings. The values for the properties are the same as the values you provide in the request body for the REST API operation (PUT method) to create the resource. You can also specify a copy array to create several instances of a property. To determine available values, see [template reference](/azure/templates/). |
248248
| resources |No |Child resources that depend on the resource being defined. Only provide resource types that are permitted by the schema of the parent resource. Dependency on the parent resource isn't implied. You must explicitly define that dependency. See [Set name and type for child resources](child-resource-name-type.md). |

0 commit comments

Comments
 (0)