-
Notifications
You must be signed in to change notification settings - Fork 1
/
prereqs.bicep
42 lines (39 loc) · 909 Bytes
/
prereqs.bicep
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
// Location for all resources.
param location string = resourceGroup().location
param cacheAccountName string
resource cacheAccount 'Microsoft.Storage/storageAccounts@2019-06-01' = {
name: cacheAccountName
location: location
tags: {
displayName: 'Storage Account'
}
sku: {
name: 'Premium_LRS'
}
kind: 'Storage'
properties: {
encryption: {
services: {
blob: {
enabled: false
}
}
keySource: 'Microsoft.Storage'
}
}
}
resource diagsAccount 'Microsoft.Storage/storageAccounts@2019-06-01' = {
name: 'diags${uniqueString(resourceGroup().id)}'
location: location
tags: {
displayName: 'Storage Account'
}
sku: {
name: 'Standard_LRS'
}
kind: 'Storage'
properties: {}
}
output diagAccountId string = diagsAccount.id
output cacheAccountName string = cacheAccount.name
output cacheAccountId string = cacheAccount.id