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: docs/deploy_private.md
+44-13Lines changed: 44 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,20 +46,51 @@ Deploying with public access disabled adds additional cost to your deployment. P
46
46
47
47
## Recommended deployment strategy for private access
48
48
49
-
1. Deploy the app with private endpoints enabled and public access enabled.
49
+
1. Deploy the app with private endpoints enabled, public network access disabled, and a VPN gateway configured. This will allow you to connect to the chat app from inside the virtual network.
50
50
51
-
```shell
52
-
azd env set AZURE_USE_PRIVATE_ENDPOINT true
53
-
azd env set AZURE_PUBLIC_NETWORK_ACCESS Enabled
54
-
azd up
55
-
```
51
+
```shell
52
+
azd env set AZURE_USE_PRIVATE_ENDPOINT true
53
+
azd env set AZURE_USE_VPN_GATEWAY true
54
+
azd env set AZURE_PUBLIC_NETWORK_ACCESS Enabled
55
+
azd up
56
+
```
56
57
57
-
1. Validate that you can connect to the chat app and it's working as expected from the internet.
58
-
1. Re-provision the app with public access disabled.
58
+
2. First provision all the resources:
59
59
60
-
```shell
61
-
azd env set AZURE_PUBLIC_NETWORK_ACCESS Disabled
62
-
azd provision
63
-
```
60
+
```bash
61
+
azd provision
62
+
```
64
63
65
-
1. Log into your network using a tool like [Azure VPN Gateway](https://azure.microsoft.com/services/vpn-gateway/) and validate that you can connect to the chat app from inside the network.
64
+
3. Once provisioning is complete, run this command to get the VPN configuration download link:
65
+
66
+
```bash
67
+
azd env get-value AZURE_VPN_CONFIG_DOWNLOAD_LINK
68
+
```
69
+
70
+
Select "Download VPN client" to download a ZIP file containing the VPN configuration.
71
+
72
+
4. Open `AzureVPN/azurevpnconfig.xml`, and replace the `<clientconfig>` empty tag with the following:
73
+
74
+
```xml
75
+
<clientconfig>
76
+
<dnsservers>
77
+
<dnsserver>10.0.11.4</dnsserver>
78
+
</dnsservers>
79
+
</clientconfig>
80
+
```
81
+
82
+
5. Open the "Azure VPN" client and select"Import" button. Select the `azurevpnconfig.xml` file you just downloaded and modified.
83
+
84
+
6. Select "Connect" and the new VPN connection. You will be prompted to selectyour Microsoft account and login.
85
+
86
+
7. Once you're successfully connected to VPN, you can run the data ingestion script:
0 commit comments