Skip to content

Commit 9b0aa9c

Browse files
authored
Merge pull request #110461 from tfitzmac/0406ref
update reference function
2 parents c7870a0 + 9c7906a commit 9b0aa9c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Template functions - resources
33
description: Describes the functions to use in an Azure Resource Manager template to retrieve values about resources.
44
ms.topic: conceptual
5-
ms.date: 03/31/2020
5+
ms.date: 04/06/2020
66
---
77
# Resource functions for ARM templates
88

@@ -490,7 +490,9 @@ Use `'Full'` when you need resource values that aren't part of the properties sc
490490

491491
### Valid uses
492492

493-
The reference function can only be used in the properties of a resource definition and the outputs section of a template or deployment. When used with [property iteration](copy-properties.md), you can use the reference function for `input` because the expression is assigned to the resource property. You can't use it with `count` because the count must be determined before the reference function is resolved.
493+
The reference function can only be used in the properties of a resource definition and the outputs section of a template or deployment. When used with [property iteration](copy-properties.md), you can use the reference function for `input` because the expression is assigned to the resource property.
494+
495+
You can't use the reference function to set the value of the `count` property in a copy loop. You can use to set other properties in the loop. Reference is blocked for the count property because that property must be determined before the reference function is resolved.
494496

495497
You can't use the reference function in the outputs of a [nested template](linked-templates.md#nested-template) to return a resource you've deployed in the nested template. Instead, use a [linked template](linked-templates.md#linked-template).
496498

0 commit comments

Comments
 (0)