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
+39-35Lines changed: 39 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: "Azure Spring Apps access app in virtual network"
3
-
description: Access app in Azure Spring Apps in a virtual network.
2
+
title: Access your application in a private network
3
+
description: Access an app in Azure Spring Apps in a virtual network.
4
4
author: karlerickson
5
5
ms.author: karler
6
6
ms.service: spring-apps
@@ -15,7 +15,7 @@ ms.devlang: azurecli
15
15
> [!NOTE]
16
16
> Azure Spring Apps is the new name for the Azure Spring Cloud service. Although the service has a new name, you'll see the old name in some places for a while as we work to update assets such as screenshots, videos, and diagrams.
This article explains how to access an endpoint for your application in a private network.
21
21
@@ -29,27 +29,30 @@ When **Assign Endpoint** on applications in an Azure Spring Apps service instanc
29
29
30
30
2. In the **Connected devices** search box, enter *kubernetes-internal*.
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
+
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*.
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).
33
36
34
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":::
35
38
36
39
#### [CLI](#tab/azure-CLI)
37
40
38
41
Find the IP Address for your Spring Cloud services. Customize the value of your Azure Spring Apps instance name based on your real environment.
@@ -58,7 +61,7 @@ Find the IP Address for your Spring Cloud services. Customize the value of your
58
61
If you have your own DNS solution for your virtual network, like Active Directory Domain Controller, Infoblox, or another, you need to point the domain `*.private.azuremicroservices.io` to the [IP address](#find-the-ip-for-your-application). Otherwise, you can follow the following instructions to create an **Azure Private DNS Zone** in your subscription to translate/resolve the private fully qualified domain name (FQDN) to its IP address.
59
62
60
63
> [!NOTE]
61
-
> If you are using Azure China, please replace `private.azuremicroservices.io` with `private.microservices.azure.cn` in this article. Learn more about [Check Endpoints in Azure](/azure/china/resources-developer-guide#check-endpoints-in-azure).
64
+
> If you're using Azure China, be sure to replace `private.azuremicroservices.io` with `private.microservices.azure.cn` in this article. Learn more about [Check Endpoints in Azure](/azure/china/resources-developer-guide#check-endpoints-in-azure).
62
65
63
66
## Create a private DNS zone
64
67
@@ -111,7 +114,7 @@ To link the private DNS zone to the virtual network, you need to create a virtua
111
114
112
115
#### [Portal](#tab/azure-portal)
113
116
114
-
1. Select the private DNS zone resource created above: *private.azuremicroservices.io*
117
+
1. Select the private DNS zone resource you created previously: *private.azuremicroservices.io*
115
118
116
119
2. On the left pane, select **Virtual network links**, then select **Add**.
117
120
@@ -127,14 +130,15 @@ To link the private DNS zone to the virtual network, you need to create a virtua
127
130
128
131
Link the private DNS zone you created to the virtual network holding your Azure Spring Apps service.
129
132
130
-
```azurecli
131
-
az network private-dns link vnet create \
132
-
--resource-group $RESOURCE_GROUP \
133
-
--name azure-spring-apps-dns-link \
134
-
--zone-name private.azuremicroservices.io \
135
-
--virtual-network $VIRTUAL_NETWORK_NAME \
136
-
--registration-enabled false
137
-
```
133
+
```azurecli
134
+
az network private-dns link vnet create \
135
+
--resource-group $RESOURCE_GROUP \
136
+
--name azure-spring-apps-dns-link \
137
+
--zone-name private.azuremicroservices.io \
138
+
--virtual-network $VIRTUAL_NETWORK_NAME \
139
+
--registration-enabled false
140
+
```
141
+
138
142
---
139
143
140
144
## Create DNS record
@@ -143,7 +147,7 @@ To use the private DNS zone to translate/resolve DNS, you must create an "A" typ
143
147
144
148
#### [Portal](#tab/azure-portal)
145
149
146
-
1. Select the private DNS zone resource created above: *private.azuremicroservices.io*.
150
+
1. Select the private DNS zone resource you created previously: *private.azuremicroservices.io*.
147
151
148
152
1. Select **Record set**.
149
153
@@ -165,13 +169,13 @@ To use the private DNS zone to translate/resolve DNS, you must create an "A" typ
165
169
166
170
Use the [IP address](#find-the-ip-for-your-application) to create the A record in your DNS zone.
0 commit comments