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
10. Select the **storageName** variable. Add the right bracket. The following example shows the outputs section:
170
+
10. Select the **storageName** variable. Your code now looks like:
171
+
172
+
```json
173
+
"storageUri": {
174
+
"type": "string",
175
+
"value": "[reference(variables('storageName'))"
176
+
}
177
+
```
178
+
179
+
11. The preceding code won't work because `reference` returns an object, but your output value is set to *string*. You need to specify one of the values on that object. The reference function can be used with any resource type, so VS Code doesn't suggest properties for the object. Instead, you can find that one value [returned for a storage account](/rest/api/storagerp/storageaccounts/getproperties) is `.primaryEndpoints.blob`.
180
+
181
+
Add that property after the last parenthesis. Add the right bracket. The following example shows the outputs section:
171
182
172
183
```json
173
184
"outputs": {
@@ -177,7 +188,7 @@ This article builds on the template you created in [Create and deploy your first
You are ready to deploy this template. You use either PowerShell or Azure CLI to create a resource group. Then, you deploy a storage account to that resource group.
267
+
You're ready to deploy this template. You use either PowerShell or Azure CLI to create a resource group. Then, you deploy a storage account to that resource group.
257
268
258
269
* For PowerShell, use the following commands from the folder containing the template:
0 commit comments