Skip to content

Commit 2c75343

Browse files
author
Jill Grant
authored
Merge pull request #252112 from Ratulac-Azure/hanren2021-main
Edit "Refine Find the IP for your application section #251594"
2 parents affc90f + c88d96f commit 2c75343

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

articles/spring-apps/access-app-virtual-network.md

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,21 @@ ms.devlang: azurecli
1919

2020
This article explains how to access an endpoint for your application in a private network.
2121

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.
2323

2424
## Find the IP for your application
2525

26-
#### [Portal](#tab/azure-portal)
26+
#### [Azure portal](#tab/azure-portal)
2727

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.
2929

30-
2. In the **Connected devices** search box, enter *kubernetes-internal*.
30+
1. Select the **Vnet injection** tab.
3131

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`:
3333

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":::
3635

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)
4037

4138
Find the IP Address for your Spring Cloud services. Customize the value of your Azure Spring Apps instance name based on your real environment.
4239

@@ -67,7 +64,7 @@ If you have your own DNS solution for your virtual network, like Active Director
6764

6865
The following procedure creates a private DNS zone for an application in the private network.
6966

70-
#### [Portal](#tab/azure-portal)
67+
#### [Azure portal](#tab/azure-portal)
7168

7269
1. Open the Azure portal. From the top search box, search for **Private DNS zones**, and select **Private DNS zones** from the results.
7370

@@ -79,7 +76,7 @@ The following procedure creates a private DNS zone for an application in the pri
7976

8077
5. Select **Create**.
8178

82-
#### [CLI](#tab/azure-CLI)
79+
#### [Azure CLI](#tab/azure-CLI)
8380

8481
1. Define variables for your subscription, resource group, and Azure Spring Apps instance. Customize the values based on your real environment.
8582

@@ -112,7 +109,7 @@ It may take a few minutes to create the zone.
112109

113110
To link the private DNS zone to the virtual network, you need to create a virtual network link.
114111

115-
#### [Portal](#tab/azure-portal)
112+
#### [Azure portal](#tab/azure-portal)
116113

117114
1. Select the private DNS zone resource you created previously: *private.azuremicroservices.io*
118115

@@ -126,7 +123,7 @@ To link the private DNS zone to the virtual network, you need to create a virtua
126123

127124
6. Select **OK**.
128125

129-
#### [CLI](#tab/azure-CLI)
126+
#### [Azure CLI](#tab/azure-CLI)
130127

131128
Link the private DNS zone you created to the virtual network holding your Azure Spring Apps service.
132129

@@ -145,7 +142,7 @@ az network private-dns link vnet create \
145142

146143
To use the private DNS zone to translate/resolve DNS, you must create an "A" type record in the zone.
147144

148-
#### [Portal](#tab/azure-portal)
145+
#### [Azure portal](#tab/azure-portal)
149146

150147
1. Select the private DNS zone resource you created previously: *private.azuremicroservices.io*.
151148

@@ -165,7 +162,7 @@ To use the private DNS zone to translate/resolve DNS, you must create an "A" typ
165162

166163
![Add private DNS zone record](media/spring-cloud-access-app-vnet/private-dns-zone-add-record.png)
167164

168-
#### [CLI](#tab/azure-CLI)
165+
#### [Azure CLI](#tab/azure-CLI)
169166

170167
Use the [IP address](#find-the-ip-for-your-application) to create the A record in your DNS zone.
171168

@@ -183,7 +180,7 @@ az network private-dns record-set a add-record \
183180

184181
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.
185182

186-
#### [Portal](#tab/azure-portal)
183+
#### [Azure portal](#tab/azure-portal)
187184

188185
1. Select the Azure Spring Apps service instance deployed in your virtual network, and open the **Apps** tab in the menu on the left.
189186

@@ -195,7 +192,7 @@ After following the procedure in [Deploy Azure Spring Apps in a virtual network]
195192

196193
4. The assigned private FQDN (labeled **URL**) is now available. It can only be accessed within the private network, but not on the Internet.
197194

198-
#### [CLI](#tab/azure-CLI)
195+
#### [Azure CLI](#tab/azure-CLI)
199196

200197
Update your app to assign an endpoint to it. Customize the value of your app name based on your real environment.
201198

454 KB
Loading

0 commit comments

Comments
 (0)