Skip to content

Commit 1269520

Browse files
committed
Add Azure CLI firewall setup instructions
1 parent 4723984 commit 1269520

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,17 @@ az postgres server create \
5050
--sku-name="$dbsku"
5151
```
5252

53-
Next, find the database in the [Azure Portal](https://portal.azure.com) and
54-
enable clients to connect to the database. You can either white-list particular
55-
IPs or a range of IPs as shown in the screenshot below:
53+
Next, enable clients to connect to the database. You can either white-list particular
54+
IPs or a range of IPs:
5655

57-
![Screenshot showing Azure Databases for PostgreSQL firewall configuration](https://user-images.githubusercontent.com/1086421/36278106-c1fd7fe6-1260-11e8-8a22-8311b19f83c7.png)
56+
```sh
57+
az postgres server firewall-rule create \
58+
--server-name="${dbname}" \
59+
--resource-group="${resource_group}" \
60+
--start-ip-address="0.0.0.0" \
61+
--end-ip-address="255.255.255.255" \
62+
--name="AllowAll"
63+
```
5864

5965
### Running the application ###
6066

0 commit comments

Comments
 (0)