Skip to content

Commit b84aa71

Browse files
authored
Merge pull request #178607 from mksuni/django-fix-doc
Cross linking django doc from app service
2 parents 1b987d2 + 9846646 commit b84aa71

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

articles/mysql/flexible-server/tutorial-webapp-server-vnet.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ az account set --subscription <subscription ID>
4646

4747
Create a private flexible server inside a virtual network (VNET) using the following command:
4848
```azurecli
49-
az mysql flexible-server create --resource-group myresourcegroup --location westus2
49+
az mysql flexible-server create --resource-group myresourcegroup --location westus2 --vnet VNETName
5050
```
5151
Copy the connection string and the name of the newly created virtual network. This command performs the following actions, which may take a few minutes:
5252

5353
- Create the resource group if it doesn't already exist.
5454
- Generates a server name if it is not provided.
55-
- Create a new virtual network for your new MySQL 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.
55+
- Create a new virtual network, ```VNETName``` for your new MySQL server and subnet within this virtual network for the database server. Make sure the name is unique.
5656
- Creates admin username , password for your server if not provided.
5757
- Creates an empty database called **flexibleserverdb**
5858

@@ -111,6 +111,12 @@ az webapp config appsettings set --settings DBHOST="<mysql-server-name>.mysql.da
111111
- The resource group and app name are drawn from the cached values in the .azure/config file.
112112
- The command creates settings named DBHOST, DBNAME, DBUSER, and DBPASS. If your application code is using different name for the database information then use those names for the app settings as mentioned in the code.
113113

114+
115+
Configure the web app to allow all outbound connections from within the virtual network.
116+
```azurecli
117+
az webapp config set --name mywebapp --resource-group myresourcesourcegroup --generic-configurations '{"vnetRouteAllEnabled": true}'
118+
```
119+
114120
## Clean up resources
115121

116122
Clean up all resources you created in the tutorial using the following command. This command deletes all the resources in this resource group.

articles/postgresql/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@
457457
- name: Create a web app in a virtual network
458458
href: flexible-server/tutorial-webapp-server-vnet.md
459459
- name: Deploy a Django app on App Service
460-
href: flexible-server/tutorial-django-app-service-postgres.md
460+
href: ../app-service/tutorial-python-postgresql-app.md
461461
- name: Concepts
462462
items:
463463
- name: Servers

0 commit comments

Comments
 (0)