Skip to content

Commit 8de572c

Browse files
committed
update
1 parent e61dc6f commit 8de572c

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

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

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ The possible uses of `list*` are shown in the following table.
221221
| Microsoft.Relay/namespaces/WcfRelays/authorizationRules | [listkeys](/rest/api/relay/wcfrelays/listkeys) |
222222
| Microsoft.Search/searchServices | [listAdminKeys](/rest/api/searchmanagement/2021-04-01-preview/admin-keys/get) |
223223
| Microsoft.Search/searchServices | [listQueryKeys](/rest/api/searchmanagement/2021-04-01-preview/query-keys/list-by-search-service) |
224-
| Microsoft.ServiceBus/namespaces/authorizationRules | [listKeys](/rest/api/servicebus/stable/namespaces-authorization-rules/list-keys) |
225-
| Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs/authorizationRules | [listKeys](/rest/api/servicebus/stable/disasterrecoveryconfigs/listkeys) |
226-
| Microsoft.ServiceBus/namespaces/queues/authorizationRules | [listKeys](/rest/api/servicebus/stable/queues-authorization-rules/list-keys) |
227-
| Microsoft.ServiceBus/namespaces/topics/authorizationRules | [listKeys](/rest/api/servicebus/stable/topics%20%E2%80%93%20authorization%20rules/list-keys) |
224+
| Microsoft.ServiceBus/namespaces/authorizationRules | [listKeys](/rest/api/servicebus/controlplane-stable/namespaces-authorization-rules/list-keys) |
225+
| Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs/authorizationRules | [listKeys](/rest/api/servicebus/controlplane-stable/disaster-recovery-configs/list-keys) |
226+
| Microsoft.ServiceBus/namespaces/queues/authorizationRules | [listKeys](/rest/api/servicebus/controlplane-stable/queues-authorization-rules/list-keys) |
227+
| Microsoft.ServiceBus/namespaces/topics/authorizationRules | [listKeys](/rest/api/servicebus/controlplane-stable/topics%20%20authorization%20rules/list-keys) |
228228
| Microsoft.SignalRService/SignalR | [listKeys](/rest/api/signalr/signalr/listkeys) |
229229
| Microsoft.Storage/storageAccounts | [listAccountSas](/rest/api/storagerp/storageaccounts/listaccountsas) |
230230
| Microsoft.Storage/storageAccounts | [listKeys](/rest/api/storagerp/storageaccounts/listkeys) |
@@ -606,15 +606,20 @@ The following example template references a storage account that isn't deployed
606606

607607
## references
608608

609-
`reference(symbolic name of the resource collection, ['Full'])`
609+
`reference(symbolic name of a resource collection, ['Full'])`
610610

611-
Returns an array of objects representing a collection of resource's runtime states. This function requires ARM template language version `1.10-experimental` and with [symbolic name](../bicep/file.md#resources) enabled:
611+
`references` works similarly as [`reference`](#reference). In stead of returning an object presenting a resource's runtime state, 'references` returns an array of objects representing a collection of resource's runtime states. This function requires ARM template language version `1.10-experimental` and with [symbolic name](../bicep/file.md#resources) enabled:
612612

613613
```json
614-
"languageVersion": "1.10-experimental",
615-
``````
614+
{
615+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
616+
"languageVersion": "1.10-experimental",
617+
"contentVersion": "1.0.0.0",
618+
...
619+
}
620+
```
616621

617-
In Bicep, there is no explicit references() function like reference(). Instead, symbolic collection usage is employed directly, and during code generation, Bicep translates it to an ARM template that utilizes the ARM template references() function.
622+
In Bicep, there is no explicit `references` function like [`reference`](../bicep/bicep-function-resource.md#reference). Instead, symbolic collection usage is employed directly, and during code generation, Bicep translates it to an ARM template that utilizes the ARM template `references` function. The forthcoming release of Bicep will include a translation feature that converts symbolic collections to ARM templates using the references() function.
618623

619624
### Parameters
620625

@@ -625,11 +630,11 @@ In Bicep, there is no explicit references() function like reference(). Instead,
625630

626631
### Return value
627632

628-
An array of a resource collection. Every resource type returns different properties for the `references` function. The function doesn't return a single, predefined format. Also, the returned value differs based on the value of the `'Full'` argument. To see the properties for a resource type, return the object in the outputs section as shown in the example.
633+
An array of the resource collection. Every resource type returns different properties for the `reference` function. Also, the returned value differs based on the value of the `'Full'` argument. For more information, see [reference](#reference).
629634

630-
The output order of `references` is always arranged in ascending order based on the copy index. Therefore, the first resource in the collection with index 0 is displayed first, followed by index 1, and so son. For instance, [worker-0, worker-1, worker-2, ...].
635+
The output order of `references` is always arranged in ascending order based on the copy index. Therefore, the first resource in the collection with index 0 is displayed first, followed by index 1, and so son. For instance, *[worker-0, worker-1, worker-2, ...]*.
631636

632-
In the preceding example, if worker-0 and worker-2 are deployed while worker-1 is not due to a false condition, the output of `references` will omit the non-deployed resource and display the deployed ones, ordered by their numbers. The output of `references` will be [worker-0, worker-2, ...]. If all of the resources are omitted, the function returns an empty array.
637+
In the preceding example, if *worker-0* and *worker-2* are deployed while *worker-1* is not due to a false condition, the output of `references` will omit the non-deployed resource and display the deployed ones, ordered by their numbers. The output of `references` will be *[worker-0, worker-2, ...]*. If all of the resources are omitted, the function returns an empty array.
633638

634639
### Valid uses
635640

0 commit comments

Comments
 (0)