Skip to content

Commit 4753feb

Browse files
committed
added links
1 parent 5e64426 commit 4753feb

File tree

4 files changed

+19
-49
lines changed

4 files changed

+19
-49
lines changed

articles/azure-resource-manager/resource-group-authoring-templates.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Describes the structure and properties of Azure Resource Manager te
44
author: tfitzmac
55
ms.service: azure-resource-manager
66
ms.topic: conceptual
7-
ms.date: 08/29/2019
7+
ms.date: 09/13/2019
88
ms.author: tomfitz
99
---
1010

@@ -79,6 +79,8 @@ The available properties for a parameter are:
7979
| maxLength |No |The maximum length for string, secure string, and array type parameters, this value is inclusive. |
8080
| description |No |Description of the parameter that is displayed to users through the portal. For more information, see [Comments in templates](#comments). |
8181

82+
For examples of how to use parameters, see [Parameters in Azure Resource Manager templates](template-parameters.md).
83+
8284
## Variables
8385

8486
In the variables section, you construct values that can be used throughout your template. You don't need to define variables, but they often simplify your template by reducing complex expressions.
@@ -112,6 +114,8 @@ The following example shows the available options for defining a variable:
112114

113115
For information about using `copy` to create several values for a variable, see [Variable iteration](resource-group-create-multiple.md#variable-iteration).
114116

117+
For examples of how to use variables, see [Variables in Azure Resource Manager template](template-variables.md).
118+
115119
## Functions
116120

117121
Within your template, you can create your own functions. These functions are available for use in your template. Typically, you define complicated expression that you don't want to repeat throughout your template. You create the user-defined functions from expressions and [functions](resource-group-template-functions.md) that are supported in templates.
@@ -155,6 +159,8 @@ When defining a user function, there are some restrictions:
155159
| output-type |Yes |Type of the output value. Output values support the same types as function input parameters. |
156160
| output-value |Yes |Template language expression that is evaluated and returned from the function. |
157161

162+
For examples of how to use custom functions, see [User-defined functions in Azure Resource Manager template](template-user-defined-functions.md).
163+
158164
## Resources
159165

160166
In the resources section, you define the resources that are deployed or updated.
@@ -255,6 +261,8 @@ The following example shows the structure of an output definition:
255261
| type |Yes |Type of the output value. Output values support the same types as template input parameters. If you specify **securestring** for the output type, the value isn't displayed in the deployment history and can't be retrieved from another template. To use a secret value in more than one template, store the secret in a Key Vault and reference the secret in the parameter file. For more information, see [Use Azure Key Vault to pass secure parameter value during deployment](resource-manager-keyvault-parameter.md). |
256262
| value |Yes |Template language expression that is evaluated and returned as output value. |
257263

264+
For examples of how to use outputs, see [Outputs in Azure Resource Manager template](template-outputs.md).
265+
258266
<a id="comments" />
259267

260268
## Comments and metadata

articles/azure-resource-manager/resource-group-template-functions-deployment.md

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Describes the functions to use in an Azure Resource Manager templat
44
author: tfitzmac
55
ms.service: azure-resource-manager
66
ms.topic: conceptual
7-
ms.date: 01/03/2019
7+
ms.date: 09/13/2019
88
ms.author: tomfitz
99

1010
---
@@ -20,8 +20,6 @@ To get values from resources, resource groups, or subscriptions, see [Resource f
2020

2121
<a id="deployment" />
2222

23-
[!INCLUDE [updated-for-az](../../includes/updated-for-az.md)]
24-
2523
## deployment
2624
`deployment()`
2725

@@ -131,18 +129,6 @@ The preceding example returns the following object:
131129
}
132130
```
133131

134-
To deploy this example template with Azure CLI, use:
135-
136-
```azurecli-interactive
137-
az group deployment create -g functionexamplegroup --template-uri https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/azure-resource-manager/functions/deployment.json
138-
```
139-
140-
To deploy this example template with PowerShell, use:
141-
142-
```powershell
143-
New-AzResourceGroupDeployment -ResourceGroupName functionexamplegroup -TemplateUri https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/azure-resource-manager/functions/deployment.json
144-
```
145-
146132
For a subscription-level template that uses the deployment function, see [subscription deployment function](https://github.com/Azure/azure-docs-json-samples/blob/master/azure-resource-manager/functions/deploymentsubscription.json). It's deployed with either `az deployment create` or `New-AzDeployment` commands.
147133

148134
<a id="parameters" />
@@ -249,17 +235,7 @@ The output from the preceding example with the default values is:
249235
| arrayOutput | Array | [1, 2, 3] |
250236
| crossOutput | String | option 1 |
251237

252-
To deploy this example template with Azure CLI, use:
253-
254-
```azurecli-interactive
255-
az group deployment create -g functionexamplegroup --template-uri https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/azure-resource-manager/functions/parameters.json
256-
```
257-
258-
To deploy this example template with PowerShell, use:
259-
260-
```powershell
261-
New-AzResourceGroupDeployment -ResourceGroupName functionexamplegroup -TemplateUri https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/azure-resource-manager/functions/parameters.json
262-
```
238+
For more information about using parameters, see [Parameters in Azure Resource Manager template](template-parameters.md).
263239

264240
<a id="variables" />
265241

@@ -351,17 +327,7 @@ The output from the preceding example with the default values is:
351327
| exampleOutput3 | String | myVariable |
352328
| exampleOutput4 | Object | {"property1": "value1", "property2": "value2"} |
353329

354-
To deploy this example template with Azure CLI, use:
355-
356-
```azurecli-interactive
357-
az group deployment create -g functionexamplegroup --template-uri https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/azure-resource-manager/functions/variables.json
358-
```
359-
360-
To deploy this example template with PowerShell, use:
361-
362-
```powershell
363-
New-AzResourceGroupDeployment -ResourceGroupName functionexamplegroup -TemplateUri https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/azure-resource-manager/functions/variables.json
364-
```
330+
For more information about using variables, see [Variables in Azure Resource Manager template](template-variables.md).
365331

366332
## Next steps
367333
* For a description of the sections in an Azure Resource Manager template, see [Authoring Azure Resource Manager templates](resource-group-authoring-templates.md).

articles/azure-resource-manager/resource-manager-parameter-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,6 @@ If your template includes a parameter with the same name as one of the parameter
199199

200200
## Next steps
201201

202-
- To understand how to define parameters in your template, see [Understand the structure and syntax of Azure Resource Manager templates](resource-group-authoring-templates.md).
202+
- To understand how to define parameters in your template, see [Parameters in Azure Resource Manager templates](template-parameters.md).
203203
- For more information about using values from a key vault, see [Use Azure Key Vault to pass secure parameter value during deployment](resource-manager-keyvault-parameter.md).
204-
204+
- For more information about parameters, see [Parameters in Azure Resource Manager templates](template-parameters.md).

articles/azure-resource-manager/template-best-practices.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
---
22
title: Best practices for Azure Resource Manager templates
33
description: Describes recommended approaches for authoring Azure Resource Manager templates. Offers suggestions to avoid common problems when using templates.
4-
services: azure-resource-manager
5-
documentationcenter: na
64
author: tfitzmac
75
ms.service: azure-resource-manager
8-
ms.devlang: na
96
ms.topic: conceptual
10-
ms.tgt_pltfrm: na
11-
ms.workload: na
12-
ms.date: 08/16/2019
7+
ms.date: 09/12/2019
138
ms.author: tomfitz
149
---
1510
# Azure Resource Manager template best practices
@@ -41,7 +36,8 @@ When you deploy resources to a resource group, the resource group stores metadat
4136
If the resource group's region is temporarily unavailable, you can't update resources in the resource group because the metadata is unavailable. The resources in other regions will still function as expected, but you can't update them. To minimize risk, locate your resource group and resources in the same region.
4237

4338
## Parameters
44-
The information in this section can be helpful when you work with [parameters](resource-group-authoring-templates.md#parameters).
39+
40+
The information in this section can be helpful when you work with [parameters](template-parameters.md).
4541

4642
### General recommendations for parameters
4743

@@ -143,7 +139,7 @@ The information in this section can be helpful when you work with [parameters](r
143139

144140
## Variables
145141

146-
The following information can be helpful when you work with [variables](resource-group-authoring-templates.md#variables):
142+
The following information can be helpful when you work with [variables](template-variables.md):
147143

148144
* Use camel case for variable names.
149145

@@ -280,7 +276,7 @@ The following information can be helpful when you work with [resources](resource
280276
281277
## Outputs
282278

283-
If you use a template to create public IP addresses, include an [outputs section](resource-group-authoring-templates.md#outputs) that returns details of the IP address and the fully qualified domain name (FQDN). You can use output values to easily retrieve details about public IP addresses and FQDNs after deployment.
279+
If you use a template to create public IP addresses, include an [outputs section](template-outputs.md) that returns details of the IP address and the fully qualified domain name (FQDN). You can use output values to easily retrieve details about public IP addresses and FQDNs after deployment.
284280

285281
```json
286282
"outputs": {

0 commit comments

Comments
 (0)