Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PostgreSQL module #1355

Merged
merged 8 commits into from
Feb 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
param name string
param location string = resourceGroup().location
param tags object = {}

param sku object
param storage object

param databaseName string
param administratorLogin string
@secure()
param administratorLoginPassword string

// PostgreSQL version
@allowed(['11', '12', '13', '14', '15'])
weikanglim marked this conversation as resolved.
Show resolved Hide resolved
param version string
weikanglim marked this conversation as resolved.
Show resolved Hide resolved

resource postgresServer 'Microsoft.DBforPostgreSQL/flexibleServers@2022-01-20-preview' = {
weikanglim marked this conversation as resolved.
Show resolved Hide resolved
location: location
tags: tags
name: name
sku: sku
properties: {
version: version
administratorLogin: administratorLogin
administratorLoginPassword: administratorLoginPassword
storage: storage
highAvailability: {
mode: 'Disabled'
}
}

resource database 'databases' = {
name: databaseName
}

resource firewall 'firewallRules' = {
name: 'AllowAllWindowsAzureIps'
properties: {
startIpAddress: '0.0.0.0'
endIpAddress: '0.0.0.0'
}
}
}