Skip to content

Commit 672ebb9

Browse files
authored
Merge pull request #231305 from GennadNY/gennadyk898
Gennadyk898
2 parents 0c5bc14 + 1f88dfa commit 672ebb9

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

articles/postgresql/flexible-server/how-to-manage-virtual-network-portal.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Azure Database for PostgreSQL - Flexible Server supports two types of mutually e
1818
* Public access (allowed IP addresses)
1919
* Private access (VNet Integration)
2020

21-
In this article, we will focus on creation of PostgreSQL server with **Private access (VNet integration)** using Azure portal. With Private access (VNet Integration), you can deploy your flexible server into your own [Azure Virtual Network](../../virtual-network/virtual-networks-overview.md). Azure Virtual Networks provide private and secure network communication. With private access, connections to the PostgreSQL server are restricted to your virtual network. To learn more about it, refer to [Private access (VNet Integration)](./concepts-networking.md#private-access-vnet-integration).
21+
In this article, we focus on creation of PostgreSQL server with **Private access (VNet integration)** using Azure portal. With Private access (VNet Integration), you can deploy your flexible server into your own [Azure Virtual Network](../../virtual-network/virtual-networks-overview.md). Azure Virtual Networks provide private and secure network communication. With private access, connections to the PostgreSQL server are restricted to your virtual network. To learn more about it, refer to [Private access (VNet Integration)](./concepts-networking.md#private-access-vnet-integration).
2222

2323
You can deploy your flexible server into a virtual network and subnet during server creation. After the flexible server is deployed, you cannot move it into another virtual network, subnet or to *Public access (allowed IP addresses)*.
2424

@@ -27,17 +27,17 @@ To create a flexible server in a virtual network, you need:
2727
- A [Virtual Network](../../virtual-network/quick-create-portal.md#create-a-virtual-network)
2828
> [!Note]
2929
> - The virtual network and subnet should be in the same region and subscription as your flexible server.
30-
> - The virtual network should not have any resource lock set at the VNET or subnet level. Make sure to remove any lock (**Delete** or **Read only**) from your VNET and all subnets before creating the server in a virtual network, and you can set it back after server creation.
30+
> - The virtual network should not have any resource lock set at the VNET or subnet level, as locks may interfere with operations on the network and DNS. Make sure to remove any lock (**Delete** or **Read only**) from your VNET and all subnets before creating the server in a virtual network, and you can set it back after server creation.
3131
3232
- To [delegate a subnet](../../virtual-network/manage-subnet-delegation.md#delegate-a-subnet-to-an-azure-service) to **Microsoft.DBforPostgreSQL/flexibleServers**. This delegation means that only Azure Database for PostgreSQL Flexible Servers can use that subnet. No other Azure resource types can be in the delegated subnet.
3333
- Add `Microsoft.Storage` to the service end point for the subnet delegated to Flexible servers. This is done by performing following steps:
3434
1. Go to your virtual network page.
35-
2. Select the VNET in which you are planning to deploy your flexible server.
35+
2. Select the VNET in which you're planning to deploy your flexible server.
3636
3. Choose the subnet that is delegated for flexible server.
3737
4. On the pull-out screen, under **Service endpoint**, choose `Microsoft.storage` from the drop-down.
3838
5. Save the changes.
3939

40-
- If you want to setup your own private DNS zone to use with the flexible server, please see [private DNS overview](../../dns/private-dns-overview.md) documentation for more details.
40+
- If you want to set up your own private DNS zone to use with the flexible server, see [private DNS overview](../../dns/private-dns-overview.md) documentation for more details.
4141

4242
## Create Azure Database for PostgreSQL - Flexible Server in an already existing virtual network
4343

@@ -46,14 +46,14 @@ To create a flexible server in a virtual network, you need:
4646
3. Select **Flexible server** as the deployment option.
4747
4. Fill out the **Basics** form.
4848
5. Go to the **Networking** tab to configure how you want to connect to your server.
49-
6. In the **Connectivity method**, select **Private access (VNet Integration)**. Go to **Virtual Network** and select the already existing *virtual network* and *Subnet* created as part of prerequisites above.
49+
6. In the **Connectivity method**, select **Private access (VNet Integration)**. Go to **Virtual Network** and select the already existing *virtual network* and *Subnet* created as part of prerequisites.
5050
7. Under **Private DNS Integration**, by default, a new private DNS zone will be created using the server name. Optionally, you can choose the *subscription* and the *Private DNS zone* from the drop-down list.
5151
8. Select **Review + create** to review your flexible server configuration.
5252
9. Select **Create** to provision the server. Provisioning can take a few minutes.
5353
:::image type="content" source="./media/how-to-manage-virtual-network-portal/how-to-inject-flexible-server-vnet.png" alt-text="Injecting flexible server into a VNET":::
5454

5555
>[!Note]
56-
> After the flexible server is deployed to a virtual network and subnet, you cannot move it to Public access (allowed IP addresses).
56+
> After the flexible server is deployed to a virtual network and subnet, you can't move it to Public access (allowed IP addresses).
5757
5858
>[!Note]
5959
> If you want to connect to the flexible server from a client that is provisioned in another VNET, you have to link the private DNS zone with the VNET. See this [linking the virtual network](../../dns/private-dns-getstarted-portal.md#link-the-virtual-network) documentation on how to do it.

articles/postgresql/flexible-server/tutorial-django-app-service-postgres.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,16 @@ These changes are specific to configuring Django to run in any production enviro
7676
Create a private flexible server and a database inside a virtual network (VNET) using the following command:
7777

7878
```azurecli
79-
# Create Flexible server in a VNET
79+
# Create Flexible server in a private virtual network (VNET)
8080
81-
az postgres flexible-server create --resource-group myresourcegroup --location westus2
81+
az postgres flexible-server create --resource-group myresourcegroup --vnet myvnet --location westus2
8282
```
8383

8484
This command performs the following actions, which may take a few minutes:
8585

8686
- Create the resource group if it doesn't already exist.
8787
- Generates a server name if it isn't provided.
88-
- Create a new virtual network for your new postgreSQL server. **Make a note of virtual network name and subnet name** created for your server since you need to add the web app to the same virtual network.
88+
- Create a new virtual network for your new postgreSQL server, if you choose to do so after prompted. **Make a note of virtual network name and subnet name** created for your server since you need to add the web app to the same virtual network.
8989
- Creates admin username, password for your server if not provided. **Make a note of the username and password** to use in the next step.
9090
- Create a database ```postgres``` that can be used for development. You can run [**psql** to connect to the database](quickstart-create-server-portal.md#connect-to-the-postgresql-database-using-psql) to create a different database.
9191

@@ -156,11 +156,11 @@ Django database migrations ensure that the schema in the PostgreSQL on Azure dat
156156

157157
### Create a poll question in the app
158158

159-
4. In a browser, open the URL *http:\//\<app-name>.azurewebsites.net*. The app should display the message "No polls are available" because there are no specific polls yet in the database.
159+
1. In a browser, open the URL *http:\//\<app-name>.azurewebsites.net*. The app should display the message "No polls are available" because there are no specific polls yet in the database.
160160

161-
5. Browse to *http:\//\<app-name>.azurewebsites.net/admin*. Sign in using superuser credentials from the previous section (`root` and `postgres1`). Under **Polls**, select **Add** next to **Questions** and create a poll question with some choices.
161+
2. Browse to *http:\//\<app-name>.azurewebsites.net/admin*. Sign in using superuser credentials from the previous section (`root` and `postgres1`). Under **Polls**, select **Add** next to **Questions** and create a poll question with some choices.
162162

163-
6. Browse again to *http:\//\<app-name>.azurewebsites.net/* to confirm that the questions are now presented to the user. Answer questions however you like to generate some data in the database.
163+
3. Browse again to *http:\//\<app-name>.azurewebsites.net/* to confirm that the questions are now presented to the user. Answer questions however you like to generate some data in the database.
164164

165165
**Congratulations!** You're running a Python Django web app in Azure App Service for Linux, with an active Postgres database.
166166
@@ -261,7 +261,7 @@ python manage.py migrate
261261

262262
### Review app in production
263263

264-
Browse to *http:\//\<app-name>.azurewebsites.net* and test the app again in production. (Because you only changed the length of a database field, the change is only noticeable if you try to enter a longer response when creation a question.)
264+
Browse to *http:\//\<app-name>.azurewebsites.net* and test the app again in production. (Because you only changed the length of a database field, the change is only noticeable if you try to enter a longer response when creating a question.)
265265

266266
> [!TIP]
267267
> You can use [django-storages](https://django-storages.readthedocs.io/en/latest/backends/azure.html) to store static & media assets in Azure storage. You can use Azure CDN for gzipping for static files.

0 commit comments

Comments
 (0)