-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdeployAll.bicep
37 lines (33 loc) · 946 Bytes
/
deployAll.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
param serverName string = '<sql server name>'
param databaseName string = 'aworks'
param location string = 'westeurope'
param adminLogin string = 'SqlAdmin'
param adminPassword string = 'ChangeYourAdminPassword1'
resource sqlServer 'Microsoft.Sql/servers@2021-02-01-preview' = {
name: serverName
location: location
identity: {
type: 'SystemAssigned'
}
properties: {
administratorLogin: adminLogin
administratorLoginPassword: adminPassword
}
}
resource sqlServerFirewallRules 'Microsoft.Sql/servers/firewallRules@2020-11-01-preview' = {
parent: sqlServer
name: 'Allow Azure Services'
properties: {
startIpAddress: '0.0.0.0'
endIpAddress: '255.255.255.255'
}
}
resource sqlDatabase 'Microsoft.Sql/servers/databases@2021-02-01-preview' = {
name: databaseName
parent: sqlServer
location: location
properties: {
collation: 'SQL_Latin1_General_CP1_CI_AS'
sampleName: 'AdventureWorksLT'
}
}