Skip to content

Commit 9fab85d

Browse files
authored
Merge pull request #176399 from tfitzmac/1019loops
combine loop docs
2 parents 9f3934d + d97639d commit 9fab85d

18 files changed

+557
-981
lines changed

.openpublishing.redirection.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10068,6 +10068,31 @@
1006810068
"redirect_url": "/azure/azure-resource-manager/management/extension-resource-types",
1006910069
"redirect_document_id": false
1007010070
},
10071+
{
10072+
"source_path_from_root": "/articles/azure-resource-manager/bicep/loop-modules.md",
10073+
"redirect_url": "/azure/azure-resource-manager/bicep/loops",
10074+
"redirect_document_id": false
10075+
},
10076+
{
10077+
"source_path_from_root": "/articles/azure-resource-manager/bicep/loop-outputs.md",
10078+
"redirect_url": "/azure/azure-resource-manager/bicep/loops",
10079+
"redirect_document_id": false
10080+
},
10081+
{
10082+
"source_path_from_root": "/articles/azure-resource-manager/bicep/loop-properties.md",
10083+
"redirect_url": "/azure/azure-resource-manager/bicep/loops",
10084+
"redirect_document_id": false
10085+
},
10086+
{
10087+
"source_path_from_root": "/articles/azure-resource-manager/bicep/loop-resources.md",
10088+
"redirect_url": "/azure/azure-resource-manager/bicep/loops",
10089+
"redirect_document_id": false
10090+
},
10091+
{
10092+
"source_path_from_root": "/articles/azure-resource-manager/bicep/loop-variables.md",
10093+
"redirect_url": "/azure/azure-resource-manager/bicep/loops",
10094+
"redirect_document_id": false
10095+
},
1007110096
{
1007210097
"source_path_from_root": "/articles/azure-resource-manager/templates/compare-template-syntax.md",
1007310098
"redirect_url": "/azure/azure-resource-manager/bicep/compare-template-syntax",

articles/azure-resource-manager/bicep/bicep-functions-resource.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ A [namespace qualifier](bicep-functions.md#namespaces-for-functions) isn't neede
186186

187187
The list functions can be used in the properties of a resource definition. Don't use a list function that exposes sensitive information in the outputs section of a Bicep file. Output values are stored in the deployment history and could be retrieved by a malicious user.
188188

189-
When used with [property loop](./loop-properties.md), you can use the list functions for `input` because the expression is assigned to the resource property. You can't use them with `count` because the count must be determined before the list function is resolved.
189+
When used with an [iterative loop](loops.md), you can use the list functions for `input` because the expression is assigned to the resource property. You can't use them with `count` because the count must be determined before the list function is resolved.
190190

191191
If you use a **list** function in a resource that is conditionally deployed, the function is evaluated even if the resource isn't deployed. You get an error if the **list** function refers to a resource that doesn't exist. Use the [conditional expression **?:** operator](./operators-logical.md#conditional-expression--) to make sure the function is only evaluated when the resource is being deployed.
192192

@@ -670,4 +670,4 @@ resource myPolicyAssignment 'Microsoft.Authorization/policyAssignments@2019-09-0
670670
## Next steps
671671

672672
* To get values from the current deployment, see [Deployment value functions](./bicep-functions-deployment.md).
673-
* To iterate a specified number of times when creating a type of resource, see [Deploy multiple instances of resources in Bicep](./loop-resources.md).
673+
* To iterate a specified number of times when creating a type of resource, see [Iterative loops in Bicep](loops.md).

articles/azure-resource-manager/bicep/bicep-functions-string.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,5 +1425,5 @@ The output from the preceding example with the default values is:
14251425
## Next steps
14261426

14271427
* For a description of the sections in a Bicep file, see [Understand the structure and syntax of Bicep files](./file.md).
1428-
* To iterate a specified number of times when creating a type of resource, see [Deploy multiple instances of resources in Bicep](./loop-resources.md).
1428+
* To iterate a specified number of times when creating a type of resource, see [Iterative loops in Bicep](loops.md).
14291429
* To see how to deploy the Bicep file you've created, see [Deploy resources with Bicep and Azure PowerShell](./deploy-powershell.md).

articles/azure-resource-manager/bicep/bicep-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,5 @@ Bicep provides the following functions for working with strings. All of these fu
162162
## Next steps
163163

164164
* For a description of the sections in a Bicep file, see [Understand the structure and syntax of Bicep files](./file.md).
165-
* To iterate a specified number of times when creating a type of resource, see [Deploy multiple instances of resources in Bicep](./loop-resources.md).
165+
* To iterate a specified number of times when creating a type of resource, see [Iterative loops in Bicep](loops.md).
166166
* To see how to deploy the Bicep file you've created, see [Deploy resources with Bicep and Azure PowerShell](./deploy-powershell.md).

articles/azure-resource-manager/bicep/child-resource-name-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ output childAddressPrefix string = VNet1::VNet1_Subnet1.properties.addressPrefix
8383

8484
## Outside parent resource
8585

86-
The following example shows the child resource outside of the parent resource. You might use this approach if the parent resource isn't deployed in the same template, or if want to use [a loop](loop-resources.md) to create more than one child resource. Specify the parent property on the child with the value set to the symbolic name of the parent. With this syntax you still need to declare the full resource type, but the name of the child resource is only the name of the child.
86+
The following example shows the child resource outside of the parent resource. You might use this approach if the parent resource isn't deployed in the same template, or if want to use [a loop](loops.md) to create more than one child resource. Specify the parent property on the child with the value set to the symbolic name of the parent. With this syntax you still need to declare the full resource type, but the name of the child resource is only the name of the child.
8787

8888
```bicep
8989
resource <parent-resource-symbolic-name> '<resource-type>@<api-version>' = {

articles/azure-resource-manager/bicep/conditional-resource-deployment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module dnsZone 'dnszones.bicep' = if (deployZone) {
4242
}
4343
```
4444

45-
Conditions may be used with dependency declarations. For [explicit dependencies](resource-declaration.md#set-resource-dependencies), Azure Resource Manager automatically removes it from the required dependencies when the resource isn't deployed. For implicit dependencies, referencing a property of a conditional resource is allowed but may produce a deployment error.
45+
Conditions may be used with dependency declarations. For [explicit dependencies](resource-declaration.md#dependencies), Azure Resource Manager automatically removes it from the required dependencies when the resource isn't deployed. For implicit dependencies, referencing a property of a conditional resource is allowed but may produce a deployment error.
4646

4747
## New or existing resource
4848

@@ -109,4 +109,4 @@ output mgmtStatus string = ((!empty(logAnalytics)) ? 'Enabled monitoring for VM!
109109

110110
* For a Microsoft Learn module about conditions and loops, see [Build flexible Bicep templates by using conditions and loops](/learn/modules/build-flexible-bicep-templates-conditions-loops/).
111111
* For recommendations about creating Bicep files, see [Best practices for Bicep](best-practices.md).
112-
* To create multiple instances of a resource, see [Resource iteration in Bicep](loop-resources.md).
112+
* To create multiple instances of a resource, see [Iterative loops in Bicep](loops.md).

articles/azure-resource-manager/bicep/file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ resource storageAccountResources 'Microsoft.Storage/storageAccounts@2019-06-01'
290290

291291
The `batchSize` decorator is in the [sys namespace](bicep-functions.md#namespaces-for-functions). If you need to differentiate this decorator from another item with the same name, preface the decorator with **sys**: `@sys.batchSize(2)`
292292

293-
For more information, see [Deploy in batches](loop-resources.md#deploy-in-batches).
293+
For more information, see [Deploy in batches](loops.md#deploy-in-batches).
294294

295295
## Outputs
296296

articles/azure-resource-manager/bicep/loop-modules.md

Lines changed: 0 additions & 159 deletions
This file was deleted.

0 commit comments

Comments
 (0)