I'm writing an Azure Resource Manager template automating the creation of a PostgreSQL database. I have successfully added a firewall rule with the following:
{
"type": "firewallRules"
"apiVersion": "2017-12-01",
"dependsOn": [
"[concat('Microsoft.DBforPostgreSQL/servers/', variables('serverName'))]"
],
"location": "[parameters('location')]",
"name": "[concat(variables('serverName'),'firewall')]",
"properties": {
"startIpAddress": "[parameters('firewallStartIpAddress')]",
"endIpAddress": "[parameters('firewallEndIpAddress')]"
}
}
However, what if I wanted to add a VNET rule instead? There doesn't appear to be any mention of this within the documentation here.
I have researched this and discovered this documentation but it is in regards to the 'Microsoft.Sql' resource, not the 'Microsoft.DBforPostgreSQL' resource.