This template provides a way to deploy an Azure database for PostgreSQL with VNet integration.
{"type": "microsoft.dbforpostgresql/servers", "apiversion": "2017-12-01", "name": "[variables('servername')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('databaseskuname')]", "tier": "[parameters('databaseskutier')]", "capacity": "[parameters('databaseskucapacity')]", "size": "[parameters('databaseskusizemb')]", "family": "[parameters('databaseskufamily')]"}, "resources": [{"type": "firewallrules", "apiversion": "2017-12-01", "name": "[concat(variables('servername'),"firewall')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.dbforpostgresql/servers",variables('servername'))]"], "properties": {"startipaddress": "0.0.0.0", "endipaddress": "255.255.255.255"}}, {"type": "databases", "apiversion": "2017-12-01", "name": "[variables('databasename')]", "dependson": ["[resourceid('microsoft.dbforpostgresql/servers",variables('servername'))]"], "properties": {"charset": "utf8", "collation": "english_united states.1252"}}], "properties": {"version": "[parameters('postgresqlversion')]", "administratorlogin": "[parameters('administratorlogin')]", "administratorloginpassword": "[parameters('administratorloginpassword')]", "storagemb": "[parameters('databaseskusizemb')]"}} 