-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathazuredeploy.json
79 lines (79 loc) · 2.78 KB
/
azuredeploy.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"time": {
"type": "string",
"defaultValue": "[utcNow()]",
"metadata": {
"description": "This returns the current UTC time of deployment. This function may only be used in the defaultValue of a parameter."
}
},
"date": {
"type": "string",
"defaultValue": "[utcNow('dd-MM-yy')]",
"metadata": {
"description": "Standard dateTime format strings are supported: https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings"
}
},
"guid": {
"type": "string",
"defaultValue": "[newGuid()]",
"metadata": {
"description": "This will generate a new GUID each time this template is deployed. This function may only be used in the defaultValue of a parameter."
}
},
"trulyUnique": {
"type": "string",
"defaultValue": "[uniqueString(newGuid())]",
"metadata": {
"description": "This will generate a new uniqueString() each time this template is deployed. This is not idempotent, use with care."
}
},
"trulyUniqueGuid": {
"type": "string",
"defaultValue": "[guid(newGuid())]",
"metadata": {
"description": "This will generate a new guid each time this template is deployed. The guid() function can be idempotent, used this way it is not."
}
},
"monthlyUnique": {
"type": "string",
"defaultValue": "[uniqueString(utcNow('MM'))]",
"metadata": {
"description": "This will generate the same uniqueString() when it's deployed within the same month."
}
}
},
"resources": [],
"outputs": {
"time": {
"type": "string",
"value": "[parameters('time')]"
},
"date": {
"type": "string",
"value": "[parameters('date')]"
},
"guid": {
"type": "string",
"value": "[parameters('guid')]"
},
"trulyUnique": {
"type": "string",
"value": "[parameters('trulyUnique')]"
},
"trulyUniqueGuid": {
"type": "string",
"value": "[parameters('trulyUniqueGuid')]"
},
"fancy": {
"type": "array",
"value": "[split(parameters('time'), 'T')]"
},
"monthly": {
"type": "string",
"value": "[parameters('monthlyUnique')]"
}
}
}