You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/template-functions-resource.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,15 +106,15 @@ The following example returns the resource ID for a resource group lock.
106
106
list{Value}(resourceName or resourceIdentifier, apiVersion, functionValues)
107
107
```
108
108
109
-
The syntax for this function varies by name of the list operations. Each implementation returns values for the resource type that supports a list operation. The operation name must start with `list`. Some common usages are `listKeys` and `listSecrets`.
109
+
The syntax for this function varies by name of the list operations. Each implementation returns values for the resource type that supports a list operation. The operation name must start with `list`. Some common usages are `listKeys` and `listSecrets`.
110
110
111
111
### Parameters
112
112
113
113
| Parameter | Required | Type | Description |
114
114
|:--- |:--- |:--- |:--- |
115
115
| resourceName or resourceIdentifier |Yes |string |Unique identifier for the resource. |
116
116
| apiVersion |Yes |string |API version of resource runtime state. Typically, in the format, **yyyy-mm-dd**. |
117
-
| functionValues |No |object | An object that has values for the function. Only provide this object for functions that support receiving an object with parameter values, such as **listAccountSas** on a storage account. An example of passing function values is shown in this article. |
117
+
| functionValues |No |object | An object that has values for the function. Only provide this object for functions that support receiving an object with parameter values, such as **listAccountSas** on a storage account. An example of passing function values is shown in this article. |
118
118
119
119
### Valid uses
120
120
@@ -148,7 +148,7 @@ The possible uses of list* are shown in the following table.
@@ -281,7 +281,7 @@ If you use a **list** function in a resource that is conditionally deployed, the
281
281
282
282
### List example
283
283
284
-
The following [example template](https://github.com/Azure/azure-docs-json-samples/blob/master/azure-resource-manager/functions/listkeys.json) shows how to return the primary and secondary keys from a storage account in the outputs section. It also returns a SAS token for the storage account.
284
+
The following [example template](https://github.com/Azure/azure-docs-json-samples/blob/master/azure-resource-manager/functions/listkeys.json) shows how to return the primary and secondary keys from a storage account in the outputs section. It also returns a SAS token for the storage account.
285
285
286
286
To get the SAS token, pass an object for the expiry time. The expiry time must be in the future. This example is intended to show how you use the list functions. Typically, you would use the SAS token in a resource value rather than return it as an output value. Output values are stored in the deployment history and aren't secure.
287
287
@@ -365,7 +365,7 @@ Returns information about a resource provider and its supported resource types.
365
365
366
366
### Return value
367
367
368
-
Each supported type is returned in the following format:
368
+
Each supported type is returned in the following format:
369
369
370
370
```json
371
371
{
@@ -454,11 +454,11 @@ Typically, you use the **reference** function to return a particular value from
When constructing a fully qualified reference to a resource, the order to combine segments from the type and name isn't simply a concatenation of the two. Instead, after the namespace, use a sequence of *type/name* pairs from least specific to most specific:
@@ -550,7 +550,7 @@ The following [example template](https://github.com/Azure/azure-docs-json-sample
Returns the unique identifier of a resource. You use this function when the resource name is ambiguous or not provisioned within the same template.
750
+
Returns the unique identifier of a resource. You use this function when the resource name is ambiguous or not provisioned within the same template.
751
751
752
752
### Parameters
753
753
@@ -898,7 +898,7 @@ The output from the preceding example with the default values is:
898
898
subscription()
899
899
```
900
900
901
-
Returns details about the subscription for the current deployment.
901
+
Returns details about the subscription for the current deployment.
902
902
903
903
### Return value
904
904
@@ -919,7 +919,7 @@ When using nested templates to deploy to multiple subscriptions, you can specify
919
919
920
920
### Subscription example
921
921
922
-
The following [example template](https://github.com/Azure/azure-docs-json-samples/blob/master/azure-resource-manager/functions/subscription.json) shows the subscription function called in the outputs section.
922
+
The following [example template](https://github.com/Azure/azure-docs-json-samples/blob/master/azure-resource-manager/functions/subscription.json) shows the subscription function called in the outputs section.
0 commit comments