You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/postgresql/flexible-server/connect-azure-cli.md
+32-24Lines changed: 32 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,43 +22,42 @@ This quickstart demonstrates how to connect to an Azure Database for PostgreSQL
22
22
23
23
24
24
## Prerequisites
25
-
- An Azure account. If you don't have one, [get a free trial](https://azure.microsoft.com/free/).
26
-
- Install [Azure CLI](/cli/azure/install-azure-cli) latest version (2.20.0 or above)
27
-
- Log in using Azure CLI with `az login` command
28
-
- Turn on parameter persistence with `az config param-persist on`. Parameter persistence will help you use local context without having to repeat numerous arguments like resource group or location.
25
+
- An Azure account with an active subscription. If you don't have one, [get a free trial](https://azure.microsoft.com/free/).
-(optional) Turn on an experimental parameter persistence with `az config param-persist on`. Parameter persistence will help you use local context without having to repeat numerous arguments like resource group or location.
29
29
30
30
## Create Azure Database for PostgreSQL flexible server instance
31
31
32
32
The first thing to create is a managed Azure Database for PostgreSQL flexible server instance. In [Azure Cloud Shell](https://shell.azure.com/), run the following script and make a note of the **server name**, **username** and **password** generated from this command.
33
33
34
-
```azurecli
34
+
```azurecli-interactive
35
35
az postgres flexible-server create --public-access <your-ip-address>
36
36
```
37
37
You can provide more arguments for this command to customize it. See all arguments for [az postgres flexible-server create](/cli/azure/postgres/flexible-server#az-postgres-flexible-server-create).
38
38
39
39
## View all the arguments
40
40
You can view all the arguments for this command with `--help` argument.
41
41
42
-
```azurecli
42
+
```azurecli-interactive
43
43
az postgres flexible-server connect --help
44
44
```
45
45
46
46
## Test database server connection
47
47
You can test and validate the connection to the database from your development environment using the command.
0 commit comments