-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/328' into develop
- Loading branch information
Showing
9 changed files
with
206 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
var subnets = [ | ||
{ | ||
name: 'api' | ||
subnetPrefix: '10.144.0.0/24' | ||
} | ||
{ | ||
name: 'worker' | ||
subnetPrefix: '10.144.1.0/24' | ||
} | ||
] | ||
|
||
resource vnet 'Microsoft.Network/virtualNetworks@2018-11-01' = { | ||
name: 'vnet' | ||
location: resourceGroup().location | ||
properties: { | ||
addressSpace: { | ||
addressPrefixes: [ | ||
'10.144.0.0/20' | ||
] | ||
} | ||
subnets: [for subnet in subnets: { | ||
name: subnet.name | ||
properties: { | ||
addressPrefix: subnet.subnetPrefix | ||
} | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"functions": [], | ||
"variables": { | ||
"subnets": [ | ||
{ | ||
"name": "api", | ||
"subnetPrefix": "10.144.0.0/24" | ||
}, | ||
{ | ||
"name": "worker", | ||
"subnetPrefix": "10.144.1.0/24" | ||
} | ||
] | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Network/virtualNetworks", | ||
"apiVersion": "2018-11-01", | ||
"name": "vnet", | ||
"location": "[resourceGroup().location]", | ||
"properties": { | ||
"copy": [ | ||
{ | ||
"name": "subnets", | ||
"count": "[length(variables('subnets'))]", | ||
"input": { | ||
"name": "[variables('subnets')[copyIndex('subnets')].name]", | ||
"properties": { | ||
"addressPrefix": "[variables('subnets')[copyIndex('subnets')].subnetPrefix]" | ||
} | ||
} | ||
} | ||
], | ||
"addressSpace": { | ||
"addressPrefixes": [ | ||
"10.144.0.0/20" | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"metadata": { | ||
"_generator": { | ||
"name": "bicep", | ||
"version": "0.2.480.26409", | ||
"templateHash": "7567681426364362554" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
param storageAccountNamePrefix string | ||
|
||
var storageConfigurations = [ | ||
{ | ||
suffix: 'local' | ||
sku: 'Standard_LRS' | ||
} | ||
{ | ||
suffix: 'geo' | ||
sku: 'Standard_GRS' | ||
} | ||
] | ||
|
||
resource storageAccountResources 'Microsoft.Storage/storageAccounts@2019-06-01' = [for (config, i) in storageConfigurations: { | ||
name: storageAccountNamePrefix + config.suffix + i | ||
location: resourceGroup().location | ||
properties: { | ||
supportsHttpsTrafficOnly: true | ||
accessTier: 'Hot' | ||
encryption: { | ||
keySource: 'Microsoft.Storage' | ||
services: { | ||
blob: { | ||
enabled: true | ||
} | ||
file: { | ||
enabled: true | ||
} | ||
} | ||
} | ||
} | ||
kind: 'StorageV2' | ||
sku: { | ||
name: config.sku | ||
} | ||
}] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
resource parentResources 'Microsoft.Example/examples@2020-06-06' = [for parent in parents where parent.enabled: { | ||
name: parent.name | ||
properties: { | ||
children: [for child in parent.children where parent.includeChildren && child.enabled: { | ||
name: child.name | ||
setting: child.settingValue | ||
}] | ||
} | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// array of storage account names | ||
param storageAccounts array | ||
|
||
resource storageAccountResources 'Microsoft.Storage/storageAccounts@2019-06-01' = [for storageName in storageAccounts: { | ||
name: storageName | ||
location: resourceGroup().location | ||
properties: { | ||
supportsHttpsTrafficOnly: true | ||
accessTier: 'Hot' | ||
encryption: { | ||
keySource: 'Microsoft.Storage' | ||
services: { | ||
blob: { | ||
enabled: true | ||
} | ||
file: { | ||
enabled: true | ||
} | ||
} | ||
} | ||
} | ||
kind: 'StorageV2' | ||
sku: { | ||
name: 'Standard_LRS' | ||
} | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"storageAccounts": { | ||
"type": "array" | ||
} | ||
}, | ||
"functions": [], | ||
"resources": [ | ||
{ | ||
"copy": { | ||
"name": "storageAccountResources", | ||
"count": "[length(parameters('storageAccounts'))]" | ||
}, | ||
"type": "Microsoft.Storage/storageAccounts", | ||
"apiVersion": "2019-06-01", | ||
"name": "[parameters('storageAccounts')[copyIndex()]]", | ||
"location": "[resourceGroup().location]", | ||
"properties": { | ||
"supportsHttpsTrafficOnly": true, | ||
"accessTier": "Hot", | ||
"encryption": { | ||
"keySource": "Microsoft.Storage", | ||
"services": { | ||
"blob": { | ||
"enabled": true | ||
}, | ||
"file": { | ||
"enabled": true | ||
} | ||
} | ||
} | ||
}, | ||
"kind": "StorageV2", | ||
"sku": { | ||
"name": "Standard_LRS" | ||
} | ||
} | ||
], | ||
"metadata": { | ||
"_generator": { | ||
"name": "bicep", | ||
"version": "0.2.480.26409", | ||
"templateHash": "4721744551949130037" | ||
} | ||
} | ||
} |