-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazuredeploy.json
50 lines (50 loc) · 1.89 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
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": { // an optional section where you define values that are provided during deployment
"storageName": {
"type": "string",
"minLength": 3,
"maxLength": 24,
"metadata": {
"description": "The name of the Azure storage resource"
}
},
"storageSKU": {
"type": "string",
"defaultValue": "Standard_LRS",
"allowedValues": [
"Standard_LRS",
"Standard_GRS",
"Standard_RAGRS",
"Standard_ZRS",
"Premium_LRS",
"Premium_ZRS",
"Standard_GZRS",
"Standard_RAGZRS"
]
}
},
"functions": [],
"variables": {},
"resources": [{ // defines the actual items we want to deploy or update in a resource group or a subscription.
"name": "[parameters('storageName')]", // gets the value from deployment command
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2021-04-01",
"tags": {
"displayName": "[parameters('storageName')]" // gets the value from deployment command
},
"location": "[resourceGroup().location]", //sets the location of the resource group where it will be deployed
"kind": "StorageV2",
"sku": {
"name": "[parameters('storageSKU')]", // gets the value from deployment command
"tier": "Standard"
}
}],
"outputs": { // an optional section where you specify the values that will be returned at the end of the deployment
"storageEndpoint": {
"type": "object",
"value": "[reference(parameters('storageName')).primaryEndpoints]"
}
}
}