Skip to content

Commit

Permalink
Update best practice with location definiton
Browse files Browse the repository at this point in the history
Update best practice with location definiton
  • Loading branch information
Melony Q authored Jun 29, 2018
1 parent e2a4f03 commit 17d655a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion 1-CONTRIBUTION-GUIDE/best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,18 @@ The following example shows how to use the reference function for the `storageUr
```
* Other values in a template configured with a public endpoint, must use the reference function.

* All resources should use the `parameters('location')` expression for the `location` property for all resources. Other expressions may be used for resources that need to be placed in alternate locations, for example a geo-redundant application. Location values must never be hard-coded or use `resourceGroup().location` directly for the location property.
* All resources should use the `parameters('location')` expression for the `location` property for all resources. Other expressions may be used for resources that need to be placed in alternate locations, for example a geo-redundant application. Location values must never be hard-coded or use `resourceGroup().location` directly for the location property.Recommended definition in 'parameters' element as the following :

```json
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Location for all resources."
}
}
```


* A literal value must not be used for all or part of an endpoint, for example, the following is **never** allowed:
```json
Expand Down

0 comments on commit 17d655a

Please sign in to comment.