-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.bicep
More file actions
153 lines (141 loc) · 3.69 KB
/
app.bicep
File metadata and controls
153 lines (141 loc) · 3.69 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
// Cosmos DB Account with default settings
resource cosmosDbDefault 'Microsoft.DocumentDB/databaseAccounts@2022-03-15' = {
name: 'cosmosdb-default'
location: 'eastus'
properties: {
databaseAccountOfferType: 'Standard'
}
}
// Cosmos DB Account with geo-redundancy and multi-region write
resource cosmosDbGeo 'Microsoft.DocumentDB/databaseAccounts@2022-03-15' = {
name: 'cosmosdb-geo'
location: 'eastus'
properties: {
databaseAccountOfferType: 'Standard'
enableMultipleWriteLocations: true
locations: [
{
locationName: 'eastus'
failoverPriority: 0
isZoneRedundant: false
}
{
locationName: 'westus'
failoverPriority: 1
isZoneRedundant: true
}
]
}
}
// Cosmos DB Account with continuous backup
resource cosmosDbContinuousBackup 'Microsoft.DocumentDB/databaseAccounts@2022-03-15' = {
name: 'cosmosdb-continuous'
location: 'eastus'
properties: {
databaseAccountOfferType: 'Standard'
backupPolicy: {
type: 'Continuous'
}
}
}
// Cosmos DB Account with periodic backup and custom retention
resource cosmosDbPeriodicBackup 'Microsoft.DocumentDB/databaseAccounts@2022-03-15' = {
name: 'cosmosdb-periodic'
location: 'eastus'
properties: {
databaseAccountOfferType: 'Standard'
backupPolicy: {
type: 'Periodic'
periodicModeProperties: {
backupIntervalInMinutes: 240
backupRetentionIntervalInHours: 24
}
}
}
}
// Azure SQL Database
resource sqlDb 'Microsoft.Sql/servers@2022-02-01' = {
name: 'sqlserver1'
location: 'eastus'
properties: {
administratorLogin: 'adminuser'
administratorLoginPassword: 'P@ssw0rd!'
}
}
// Azure Cosmos DB
resource cosmosDb 'Microsoft.DocumentDB/databaseAccounts@2022-03-15' = {
name: 'cosmosdb1'
location: 'eastus'
properties: {
databaseAccountOfferType: 'Standard'
}
}
// Azure Database for PostgreSQL with geo-redundant backup and high availability
resource postgresqlDb 'Microsoft.DBforPostgreSQL/servers@2022-01-20' = {
name: 'pgserver1'
location: 'eastus'
properties: {
administratorLogin: 'pgadmin'
administratorLoginPassword: 'P@ssw0rd!'
version: '11'
backup': {
geoRedundantBackup: 'Enabled'
}
highAvailability: {
mode: 'ZoneRedundant'
}
}
}
// Azure Database for MySQL with SSL enforcement and auto-grow
resource mysqlDb 'Microsoft.DBforMySQL/servers@2022-01-20' = {
name: 'mysqlserver1'
location: 'eastus'
properties: {
administratorLogin: 'mysqladmin'
administratorLoginPassword: 'P@ssw0rd!'
version: '5.7'
sslEnforcement: 'Enabled'
storageProfile: {
storageMB: 51200
autoGrow: 'Enabled'
}
}
}
// Azure Database for MariaDB with backup retention and geo-redundancy
resource mariadbDb 'Microsoft.DBforMariaDB/servers@2018-06-01' = {
name: 'mariadbserver1'
location: 'eastus'
properties: {
administratorLogin: 'mariadbadmin'
administratorLoginPassword: 'P@ssw0rd!'
version: '10.2'
backupRetentionDays: 14
geoRedundantBackup: 'Enabled'
}
}
// Azure Data Lake Store Gen1
resource datalakeStore 'Microsoft.DataLakeStore/accounts@2016-11-01' = {
name: 'datalakestore1'
location: 'eastus'
properties: {}
}
// Azure Data Explorer (Kusto)
resource kustoCluster 'Microsoft.Kusto/Clusters@2023-05-02' = {
name: 'kustocluster1'
location: 'eastus'
properties: {
sku: {
name: 'Standard_D13_v2'
capacity: 2
}
}
}
// Azure Arc-enabled SQL Managed Instance
resource arcSqlMi 'Microsoft.AzureArcData/sqlManagedInstances@2022-03-01-preview' = {
name: 'arcsqlmi1'
location: 'eastus'
properties: {
administratorLogin: 'arcadmin'
administratorLoginPassword: 'P@ssw0rd!'
}
}