Skip to content

Commit c6bccde

Browse files
Merge pull request #267703 from mumian/0229-reference-function
Add more details for the reference function
2 parents 838accc + a1d0acf commit c6bccde

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ The possible uses of `list*` are shown in the following table.
295295
| Microsoft.BatchAI/workspaces/experiments/jobs | listoutputfiles |
296296
| Microsoft.BotService/botServices/channels | [listChannelWithKeys](https://github.com/Azure/azure-rest-api-specs/blob/master/specification/botservice/resource-manager/Microsoft.BotService/stable/2020-06-02/botservice.json#L553) |
297297
| Microsoft.Cache/redis | [listKeys](/rest/api/redis/redis/list-keys) |
298-
| Microsoft.CognitiveServices/accounts | [listKeys](/rest/api/cognitiveservices/accountmanagement/accounts/listkeys) |
298+
| Microsoft.CognitiveServices/accounts | [listKeys](/rest/api/aiservices/accountmanagement/accounts/list-keys) |
299299
| Microsoft.ContainerRegistry/registries | [listBuildSourceUploadUrl](/rest/api/containerregistry/registries%20(tasks)/get-build-source-upload-url) |
300300
| Microsoft.ContainerRegistry/registries | [listCredentials](/rest/api/containerregistry/registries/listcredentials) |
301301
| Microsoft.ContainerRegistry/registries | [listUsages](/rest/api/containerregistry/registries/listusages) |
@@ -496,7 +496,7 @@ Namespace: [az](bicep-functions.md#namespaces-for-functions).
496496

497497
`reference(resourceName or resourceIdentifier, [apiVersion], ['Full'])`
498498

499-
Returns an object representing a resource's runtime state.
499+
Returns an object representing a resource's runtime state. The output and behavior of the `reference` function highly relies on how each resource provider (RP) implements its PUT and GET responses.
500500

501501
Namespace: [az](bicep-functions.md#namespaces-for-functions).
502502

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

Lines changed: 3 additions & 3 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 (ARM template) to retrieve values about resources.
44
ms.topic: conceptual
5-
ms.date: 08/22/2023
5+
ms.date: 03/18/2024
66
ms.custom: devx-track-arm-template
77
---
88

@@ -143,7 +143,7 @@ The possible uses of `list*` are shown in the following table.
143143
| Microsoft.BatchAI/workspaces/experiments/jobs | listoutputfiles |
144144
| Microsoft.BotService/botServices/channels | [listChannelWithKeys](https://github.com/Azure/azure-rest-api-specs/blob/master/specification/botservice/resource-manager/Microsoft.BotService/stable/2020-06-02/botservice.json#L553) |
145145
| Microsoft.Cache/redis | [listKeys](/rest/api/redis/redis/list-keys) |
146-
| Microsoft.CognitiveServices/accounts | [listKeys](/rest/api/cognitiveservices/accountmanagement/accounts/listkeys) |
146+
| Microsoft.CognitiveServices/accounts | [listKeys](/rest/api/aiservices/accountmanagement/accounts/list-keys) |
147147
| Microsoft.ContainerRegistry/registries | [listBuildSourceUploadUrl](/rest/api/containerregistry/registries%20(tasks)/get-build-source-upload-url) |
148148
| Microsoft.ContainerRegistry/registries | [listCredentials](/rest/api/containerregistry/registries/listcredentials) |
149149
| Microsoft.ContainerRegistry/registries | [listUsages](/rest/api/containerregistry/registries/listusages) |
@@ -414,7 +414,7 @@ In the templates with [symbolic names](./resource-declaration.md#use-symbolic-na
414414

415415
`reference(symbolicName or resourceIdentifier, [apiVersion], ['Full'])`
416416

417-
Returns an object representing a resource's runtime state. To return an array of objects representing a resource collections's runtime states, see [references](#references).
417+
Returns an object representing a resource's runtime state. The output and behavior of the `reference` function highly relies on how each resource provider (RP) implements its PUT and GET responses. To return an array of objects representing a resource collections's runtime states, see [references](#references).
418418

419419
Bicep provide the reference function, but in most cases, the reference function isn't required. It's recommended to use the symbolic name for the resource instead. See [reference](../bicep/bicep-functions-resource.md#reference).
420420

0 commit comments

Comments
 (0)