/
serviceOne.template.json
60 lines (60 loc) · 2.18 KB
/
serviceOne.template.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
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"storageAccountConfig": {
"type": "object",
"metadata": {
"description": "Storage account configuration in JSON object."
}
},
"storageAccountType": {
"type": "string",
"defaultValue": "Standard_GRS",
"allowedValues": [
"Standard_GRS",
"Standard_RAGRS",
"Standard_GZRS",
"Standard_RAGZRS"
]
},
"timeStamp": {
"type": "string",
"metadata": {
"description": "A timestamp string autogenerated from utcNow() function. Do not overwrite."
},
"defaultValue": "[utcNow()]"
}
},
"functions": [],
"variables": {
"templateLibraryRG": "contoso-template-library-prod-rg",
"storageSpecName": "contosoStorage",
"storageSpecVersion": "1.0",
"storageDeploymentName": "[concat(variables('storageSpecName'), '-templateSpec-deployment-', parameters('timeStamp'))]",
"storageTemplateLinkId": "[resourceId(variables('templateLibraryRG'), 'Microsoft.Resources/templateSpecs/versions', variables('storageSpecName'), variables('storageSpecVersion'))]"
},
"resources": [
{
// Deploys a storage account compliant with Corp IT policies
"name": "[variables('storageDeploymentName')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"properties": {
"mode": "Incremental",
"templateLink": {
"id": "[variables('storageTemplateLinkId')]"
},
"parameters": {
"storageAccountConfig": {
"value": "[parameters('storageAccountConfig')]"
},
"storageAccountType": {
"value": "[parameters('storageAccountType')]"
}
}
}
}
],
"outputs": {}
}