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
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/template-user-defined-functions.md
+45-15Lines changed: 45 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: User-defined functions in templates
3
3
description: Describes how to define and use user-defined functions in an Azure Resource Manager template.
4
4
ms.topic: conceptual
5
-
ms.date: 09/05/2019
5
+
ms.date: 03/09/2020
6
6
---
7
7
# User-defined functions in Azure Resource Manager template
8
8
@@ -12,7 +12,7 @@ This article describes how to add user-defined functions in your Azure Resource
12
12
13
13
## Define the function
14
14
15
-
Your functions require a namespace value to avoid naming conflicts with template functions. The following example shows a function that returns a storage account name:
15
+
Your functions require a namespace value to avoid naming conflicts with template functions. The following example shows a function that returns a unique name:
16
16
17
17
```json
18
18
"functions": [
@@ -38,23 +38,53 @@ Your functions require a namespace value to avoid naming conflicts with template
38
38
39
39
## Use the function
40
40
41
-
The following example shows how to call your function.
41
+
The following example shows a template that includes a user-defined function. It uses that function to get a unique name for a storage account. The template has a parameter named **storageNamePrefix** that it passes as a parameter to the function.
0 commit comments