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
-**serverName**: enter a name for the PostgreSQL server.
106
-
-**administratorLogin**: enter the Azure Database for PostgreSQL server's administrator account name.
107
-
-**administratorLoginPassword**: enter the administrator password.
105
+
-**serverName**: enter a unique name that identifies your Azure Database for PostgreSQL server. For example, `mydemoserver-pg`. The domain name `postgres.database.azure.com` is appended to the server name you provide. The server can contain only lowercase letters, numbers, and the hyphen (-) character. It must contain at least 3 through 63 characters.
106
+
-**administratorLogin**: enter your own login account to use when you connect to the server. For example, `myadmin`. The admin login name can't be `azure_superuser`, `azure_pg_admin`, `admin`, `administrator`, `root`, `guest`, or `public`. It can't start with `pg_`.
107
+
-**administratorLoginPassword**: enter a new password for the server admin account. It must contain between 8 and 128 characters. Your password must contain characters from three of the following categories: English uppercase letters, English lowercase letters, numbers (0 through 9), and non-alphanumeric characters (!, $, #, %, etc.).
Copy file name to clipboardExpand all lines: articles/postgresql/flexible-server/quickstart-create-server-portal.md
+21-24Lines changed: 21 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,17 +30,17 @@ To create an Azure Database for PostgreSQL server, take the following steps:
30
30
31
31
1. Select **Create a resource** (+) in the upper-left corner of the portal.
32
32
33
-
2. Select **Databases** > **Azure Database for PostgreSQL**.
33
+
1. Select **Databases** > **Azure Database for PostgreSQL**.
34
34
35
35
:::image type="content" source="./media/quickstart-create-database-portal/1-create-database.png" alt-text="The Azure Database for PostgreSQL in menu":::
36
36
37
-
3. Select the **Flexible server** deployment option.
37
+
1. Select the **Flexible server** deployment option.
38
38
39
39
:::image type="content" source="./media/quickstart-create-database-portal/2-select-deployment-option.png" alt-text="Select Azure Database for PostgreSQL - Flexible server deployment option":::
40
40
41
-
4. Fill out the **Basics** form with the following information:
41
+
1. Fill out the **Basics** form with the following information:
42
42
43
-
:::image type="content" source="./media/quickstart-create-database-portal/3-create-basics.png" alt-text="Create a server":::
43
+
:::image type="content" source="./media/quickstart-create-database-portal/3-create-basics.png" alt-text="Create a server.":::
44
44
45
45
Setting|Suggested Value|Description
46
46
---|---|---
@@ -56,12 +56,11 @@ To create an Azure Database for PostgreSQL server, take the following steps:
56
56
Version|The latest major version| The latest PostgreSQL major version, unless you have specific requirements otherwise.
57
57
Compute + storage | **General Purpose**, **4 vCores**, **512 GB**, **7 days** | The compute, storage, and backup configurations for your new server. Select **Configure server**. *General Purpose*, *4 vCores*, *512 GB*, and *7 days* are the default values for **Compute tier**, **vCore**, **Storage**, and **Backup Retention Period**. You can leave those sliders as is or adjust them. <br> <br> To configure your server with **Geo-redundant Backup** to protect from region-level failures, you can check the box ON. Note that the Geo-redundant backup can be configured only at the time of server creation. To save this pricing tier selection, select **OK**. The next screenshot captures these selections.
On the **Networking** tab, you can choose how your server is reachable. Azure Database for PostgreSQL Flexible Server provides two ways to connect to your server:
61
+
1. Configure Networking options
62
+
63
+
1. On the **Networking** tab, you can choose how your server is reachable. Azure Database for PostgreSQL Flexible Server provides two ways to connect to your server:
65
64
- Public access (allowed IP addresses)
66
65
- Private access (VNet Integration)
67
66
@@ -72,16 +71,13 @@ To create an Azure Database for PostgreSQL server, take the following steps:
72
71
> [!NOTE]
73
72
> You can't change the connectivity method after you create the server. For example, if you select **Public access (allowed IP addresses)** when you create the server, you can't change to **Private access (VNet Integration)** after the server is created. We highly recommend that you create your server with private access to help secure access to your server via VNet Integration. [Learn more about private access in the concepts article.](./concepts-networking.md)
6. Select **Review + create** to review your selections. Select **Create** to provision the server. This operation may take a few minutes.
76
+
1. Select **Review + create** to review your selections. Select **Create** to provision the server. This operation may take a few minutes.
81
77
82
-
7. On the toolbar, select the **Notifications** icon (a bell) to monitor the deployment process. Once the deployment is done, you can select **Pin to dashboard**, which creates a tile for this server on your Azure portal dashboard as a shortcut to the server's **Overview** page. Selecting **Go to resource** opens the server's **Overview** page.
78
+
1. On the toolbar, select the **Notifications** icon (a bell) to monitor the deployment process. Once the deployment is done, you can select **Pin to dashboard**, which creates a tile for this server on your Azure portal dashboard as a shortcut to the server's **Overview** page. Selecting **Go to resource** opens the server's **Overview** page.
By default, a **postgres** database is created under your server. The [postgres](https://www.postgresql.org/docs/current/static/app-initdb.html) database is a default database that's meant for use by users, utilities, and third-party applications. (The other default database is **azure_maintenance**. Its function is to separate the managed service processes from user actions. You cannot access this database.)
87
83
@@ -95,7 +91,7 @@ When you create your Azure Database for PostgreSQL server, a default database na
95
91
96
92
Open your server's **Overview** page. Make a note of the **Server name** and the **Server admin login name**. Hover your cursor over each field, and the copy symbol appears to the right of the text. Select the copy symbol as needed to copy the values.
97
93
98
-
:::image type="content" source="./media/quickstart-create-database-portal/8-server-name.png" alt-text="The server Overview page":::
94
+
:::image type="content" source="./media/quickstart-create-database-portal/8-server-name.png" alt-text="The server Overview page.":::
99
95
100
96
## Connect to the PostgreSQL database using psql
101
97
@@ -108,7 +104,7 @@ There are a number of applications you can use to connect to your Azure Database
108
104
```
109
105
110
106
For example, the following command connects to the default database called **postgres** on your PostgreSQL server **mydemoserver.postgres.database.azure.com** using access credentials. Enter the `<server_admin_password>` you chose when prompted for password.
@@ -135,19 +131,19 @@ There are a number of applications you can use to connect to your Azure Database
135
131
>
136
132
> Confirm your client's IP is allowed in the firewall rules step above.
137
133
138
-
2. Create a blank database called "mypgsqldb" at the prompt by typing the following command:
134
+
1. Create a blank database called "mypgsqldb" at the prompt by typing the following command:
139
135
140
136
```bash
141
137
CREATE DATABASE mypgsqldb;
142
138
```
143
139
144
-
3. At the prompt, execute the following command to switch connections to the newly created database **mypgsqldb**:
140
+
1. At the prompt, execute the following command to switch connections to the newly created database **mypgsqldb**:
145
141
146
142
```bash
147
143
\c mypgsqldb
148
144
```
149
145
150
-
4. Type `\q`, and thenselectthe Enter key to quit psql.
146
+
1. Type `\q`, and thenselectthe Enter key to quit psql.
151
147
152
148
You connected to the Azure Database for PostgreSQL server via psql, and you created a blank user database.
153
149
@@ -162,18 +158,19 @@ To delete the entire resource group, including the newly created server:
162
158
163
159
1. Locate your resource group in the portal. On the menu on the left, select**Resource groups**. Then selectthe name of your resource group, such as the example, **myresourcegroup**.
164
160
165
-
2. On your resource group page, select**Delete**. Enter the name of your resource group, such as the example, **myresourcegroup**, in the text box to confirm deletion. Select **Delete**.
161
+
1. On your resource group page, select**Delete**. Enter the name of your resource group, such as the example, **myresourcegroup**, in the text box to confirm deletion. Select **Delete**.
166
162
167
163
To delete only the newly created server:
168
164
169
165
1. Locate your server in the portal, if you don't have it open. On the menu on the left, select **All resources**. Then search for the server you created.
3. Confirm the name of the server you want to delete, and view the databases under it that are affected. Enter your server name in the text box, such as the example, **mydemoserver**. Select **Delete**.
171
+
1. Confirm the name of the server you want to delete, and view the databases under it that are affected. Enter your server name in the text box, such as the example, **mydemoserver**. Select **Delete**.
176
172
177
173
## Next steps
174
+
178
175
> [!div class="nextstepaction"]
179
176
> [Deploy a Django app with App Service and PostgreSQL](tutorial-django-app-service-postgres.md)
0 commit comments