-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharm-deploy-multi-rg.json
87 lines (87 loc) · 3.44 KB
/
arm-deploy-multi-rg.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
80
81
82
83
84
85
86
87
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"deploymentRG": {
"type": "array",
"defaultValue": [
"RG1",
"RG2",
"RG3"
]
},
"resourceNamePrefix": {
"type": "array",
"defaultValue": [
"app1",
"app2",
"app3"
]
},
"envName": {
"type": "array",
"defaultValue": [
"dev"
]
}
},
"resources": [
{
"type": "Microsoft.Resources/deployments",
"copy": {
"name": "nestedDeployments",
"count": "[length(parameters('resourceNamePrefix'))]"
},
"apiVersion": "2021-04-01",
"name": "[concat(parameters('resourceNamePrefix')[copyIndex()],'metrc',parameters('envName')[0],'st01')]",
"resourceGroup": "[parameters('deploymentRG')[copyIndex()]]",
"properties": {
"mode": "Incremental",
"template": {
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2021-04-01",
"name": "[concat(parameters('resourceNamePrefix')[copyIndex()],'metrc',parameters('envName')[0],'st01')]",
"location": "westus",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"kind": "StorageV2",
"properties": {
"minimumTlsVersion": "TLS1_2",
"allowBlobPublicAccess": false,
"allowSharedKeyAccess": true,
"isHnsEnabled": true,
"networkAcls": {
"bypass": "AzureServices",
"virtualNetworkRules": [],
"ipRules": [],
"defaultAction": "Allow"
},
"supportsHttpsTrafficOnly": true,
"encryption": {
"services": {
"file": {
"keyType": "Account",
"enabled": true
},
"blob": {
"keyType": "Account",
"enabled": true
}
},
"keySource": "Microsoft.Storage"
},
"accessTier": "Hot"
}
}
]
}
}
}
]
}