Skip to content

Commit a44a2f2

Browse files
committed
update
1 parent 3ea2a78 commit a44a2f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/azure-resource-manager/templates/templates-cloud-consistency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ In general, avoid hardcoded endpoints in a template. The best practice is to use
444444
The following reference template function retrieves the endpoint namespace from the storage resource provider:
445445

446446
```json
447-
"diskUri":"[concat(reference(resourceId('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))).primaryEndpoints.blob, 'container/myosdisk.vhd')]"
447+
"diskUri":"[concat(reference(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))).primaryEndpoints.blob, 'container/myosdisk.vhd')]"
448448
```
449449

450450
By replacing the hardcoded value of the storage account endpoint with the `reference` template function, you can use the same template to deploy to different environments successfully without making any changes to the endpoint reference.

0 commit comments

Comments
 (0)