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
@@ -171,7 +171,7 @@ You can call a list function for any resource type with an operation that starts
171
171
172
172
The syntax for this function varies by the name of the list operation. The returned values also vary by operation. Bicep doesn't currently support completions and validation for `list*` functions.
173
173
174
-
With **Bicep version 0.4.412 or later**, you call the list function by using the [accessor operator](operators-access.md#function-accessor). For example, `stg.listKeys()`.
174
+
With **Bicep version 0.4.412 or later**, you call the list function by using the [accessor operator](operators-access.md#function-accessor). For example, `storageAccount.listKeys()`.
175
175
176
176
A [namespace qualifier](bicep-functions.md#namespaces-for-functions) isn't needed because the function is used with a resource type.
177
177
@@ -218,7 +218,7 @@ Other `list` functions have different return formats. To see the format of a fun
218
218
The following example deploys a storage account and then calls `listKeys` on that storage account. The key is used when setting a value for [deployment scripts](../templates/deployment-script-template.md).
If you attempt to reference a resource that doesn't exist, you get the `NotFound` error and your deployment fails.
526
+
To reference a resource that is nested inside a parent resource, use the [nested accessor](operators-access.md#nested-resource-accessor) (`::`). You only use this syntax when you're accessing the nested resource from outside of the parent resource.
527
+
528
+
```bicep
529
+
vNet1::subnet1.properties.addressPrefix
530
+
```
527
531
528
-
For more information, see [Reference resources](./compare-template-syntax.md#reference-resources) and the [JSON template reference function](../templates/template-functions-resource.md#reference).
532
+
If you attempt to reference a resource that doesn't exist, you get the `NotFound` error and your deployment fails.
0 commit comments