{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "metadata": {
    "_generator": {
      "name": "bicep",
      "version": "0.10.61.36676",
      "templateHash": "8074447630975889785"
    }
  },
  "resources": [
    {
      "type": "Microsoft.DBforPostgreSQL/servers",
      "apiVersion": "2017-12-01",
      "name": "myPostgreSQLServer",
      "location": "westus",
      "identity": {
        "type": "SystemAssigned"
      },
      "properties": {
        "administratorLogin": "myadmin",
        "administratorLoginPassword": "myadminpassword",
        "version": "9.6",
        "sslEnforcement": "Enabled",
        "storageProfile": {
          "storageMB": 5120
        },
        "createMode": "Default",
        "minimalTlsVersion": "1.2",
        "publicNetworkAccess": "Enabled",
        "FirewallRules": [
          {
            "name": "AllowAllAzureIps",
            "startIpAddress": "0.0.0.0/0"
          }
        ]
      }
    },
    {
      "type": "Microsoft.DBforPostgreSQL/servers/configurations",
      "apiVersion": "2017-12-01",
      "name": "[format('{0}/{1}', 'myPostgreSQLServer', 'connection_throttling')]",
      "properties": {
        "value": "OFF"
      },
      "dependsOn": [
        "[resourceId('Microsoft.DBforPostgreSQL/servers', 'myPostgreSQLServer')]"
      ]
    },
    {
      "type": "Microsoft.DBforPostgreSQL/servers/configurations",
      "apiVersion": "2017-12-01",
      "name": "[format('{0}/{1}', 'myPostgreSQLServer', 'log_checkpoints')]",
      "properties": {
        "value": "OFF"
      },
      "dependsOn": [
        "[resourceId('Microsoft.DBforPostgreSQL/servers', 'myPostgreSQLServer')]"
      ]
    },
    {
      "type": "Microsoft.DBforPostgreSQL/servers/configurations",
      "apiVersion": "2017-12-01",
      "name": "[format('{0}/{1}', 'myPostgreSQLServer', 'log_connections')]",
      "properties": {
        "value": "OFF"
      },
      "dependsOn": [
        "[resourceId('Microsoft.DBforPostgreSQL/servers', 'myPostgreSQLServer')]"
      ]
    }
  ]
}