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/spring-apps/access-app-virtual-network.md
+15-18Lines changed: 15 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,24 +19,21 @@ ms.devlang: azurecli
19
19
20
20
This article explains how to access an endpoint for your application in a private network.
21
21
22
-
When you assign an endpoint on an application in an Azure Spring Apps service instance deployed in your virtual network, the endpoint is a private fully qualified domain name (FQDN). The domain is only accessible in the private network. Apps and services use the application endpoint. They include the *Test Endpoint* described in [View apps and deployments](./how-to-staging-environment.md#view-apps-and-deployments). *Log streaming*, described in [Stream Azure Spring Apps app logs in real-time](./how-to-log-streaming.md), also works only within the private network.
22
+
When you assign an endpoint on an application in an Azure Spring Apps service instance deployed in your virtual network, the endpoint uses a private fully qualified domain name (FQDN). The domain is only accessible in the private network. Apps and services use the application endpoint. They include the *Test Endpoint* described in [View apps and deployments](./how-to-staging-environment.md#view-apps-and-deployments). *Log streaming*, described in [Stream Azure Spring Apps app logs in real-time](./how-to-log-streaming.md), also works only within the private network.
23
23
24
24
## Find the IP for your application
25
25
26
-
#### [Portal](#tab/azure-portal)
26
+
#### [Azure portal](#tab/azure-portal)
27
27
28
-
1.Select the virtual network resource you created as explained in [Deploy Azure Spring Apps in your Azure virtual network (VNet injection)](./how-to-deploy-in-azure-virtual-network.md).
28
+
1.Go to the Azure Spring Apps service **Networking** page.
29
29
30
-
2. In the **Connected devices**search box, enter *kubernetes-internal*.
30
+
1. Select the **Vnet injection**tab.
31
31
32
-
3. In the filtered result, find the **Device**connected to the **Service Runtime Subnet**of the service instance, and copy its**IP Address**. In this sample, the IP Address is *10.1.0.7*.
32
+
1. In the **General info**section, find **Endpoint** and copy the**IP Address** value. The example in the following screenshot uses the IP address `10.0.1.6`:
33
33
34
-
> [!WARNING]
35
-
> Be sure that the IP Address belongs to **Service Runtime subnet** instead of **Spring Boot microservice apps subnet**. Subnet specifications are provided when you deploy an Azure Spring Apps instance. For more information, see the [Deploy an Azure Spring Apps instance](./how-to-deploy-in-azure-virtual-network.md#deploy-an-azure-spring-apps-instance) section of [Deploy Azure Spring Apps in a virtual network](./how-to-deploy-in-azure-virtual-network.md).
34
+
:::image type="content" source="media/spring-cloud-access-app-vnet/find-ip-address.png" alt-text="Screenshot of the Azure portal that shows the Vnet injection Endpoint information." lightbox="media/spring-cloud-access-app-vnet/find-ip-address.png":::
36
35
37
-
:::image type="content" source="media/spring-cloud-access-app-vnet/create-dns-record.png" alt-text="Screenshot of the Azure portal showing the Connected devices page for a virtual network, filtered for kubernetes-internal devices, with the IP Address for the service runtime subnet highlighted." lightbox="media/spring-cloud-access-app-vnet/create-dns-record.png":::
38
-
39
-
#### [CLI](#tab/azure-CLI)
36
+
#### [Azure CLI](#tab/azure-CLI)
40
37
41
38
Find the IP Address for your Spring Cloud services. Customize the value of your Azure Spring Apps instance name based on your real environment.
42
39
@@ -67,7 +64,7 @@ If you have your own DNS solution for your virtual network, like Active Director
67
64
68
65
The following procedure creates a private DNS zone for an application in the private network.
69
66
70
-
#### [Portal](#tab/azure-portal)
67
+
#### [Azure portal](#tab/azure-portal)
71
68
72
69
1. Open the Azure portal. From the top search box, search for **Private DNS zones**, and select **Private DNS zones** from the results.
73
70
@@ -79,7 +76,7 @@ The following procedure creates a private DNS zone for an application in the pri
79
76
80
77
5. Select **Create**.
81
78
82
-
#### [CLI](#tab/azure-CLI)
79
+
#### [Azure CLI](#tab/azure-CLI)
83
80
84
81
1. Define variables for your subscription, resource group, and Azure Spring Apps instance. Customize the values based on your real environment.
85
82
@@ -112,7 +109,7 @@ It may take a few minutes to create the zone.
112
109
113
110
To link the private DNS zone to the virtual network, you need to create a virtual network link.
114
111
115
-
#### [Portal](#tab/azure-portal)
112
+
#### [Azure portal](#tab/azure-portal)
116
113
117
114
1. Select the private DNS zone resource you created previously: *private.azuremicroservices.io*
118
115
@@ -126,7 +123,7 @@ To link the private DNS zone to the virtual network, you need to create a virtua
126
123
127
124
6. Select **OK**.
128
125
129
-
#### [CLI](#tab/azure-CLI)
126
+
#### [Azure CLI](#tab/azure-CLI)
130
127
131
128
Link the private DNS zone you created to the virtual network holding your Azure Spring Apps service.
132
129
@@ -145,7 +142,7 @@ az network private-dns link vnet create \
145
142
146
143
To use the private DNS zone to translate/resolve DNS, you must create an "A" type record in the zone.
147
144
148
-
#### [Portal](#tab/azure-portal)
145
+
#### [Azure portal](#tab/azure-portal)
149
146
150
147
1. Select the private DNS zone resource you created previously: *private.azuremicroservices.io*.
151
148
@@ -165,7 +162,7 @@ To use the private DNS zone to translate/resolve DNS, you must create an "A" typ
165
162
166
163

167
164
168
-
#### [CLI](#tab/azure-CLI)
165
+
#### [Azure CLI](#tab/azure-CLI)
169
166
170
167
Use the [IP address](#find-the-ip-for-your-application) to create the A record in your DNS zone.
171
168
@@ -183,7 +180,7 @@ az network private-dns record-set a add-record \
183
180
184
181
After following the procedure in [Deploy Azure Spring Apps in a virtual network](./how-to-deploy-in-azure-virtual-network.md), you can assign a private FQDN for your application.
185
182
186
-
#### [Portal](#tab/azure-portal)
183
+
#### [Azure portal](#tab/azure-portal)
187
184
188
185
1. Select the Azure Spring Apps service instance deployed in your virtual network, and open the **Apps** tab in the menu on the left.
189
186
@@ -195,7 +192,7 @@ After following the procedure in [Deploy Azure Spring Apps in a virtual network]
195
192
196
193
4. The assigned private FQDN (labeled **URL**) is now available. It can only be accessed within the private network, but not on the Internet.
197
194
198
-
#### [CLI](#tab/azure-CLI)
195
+
#### [Azure CLI](#tab/azure-CLI)
199
196
200
197
Update your app to assign an endpoint to it. Customize the value of your app name based on your real environment.
0 commit comments