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/quickstart-access-within-vnet.md
+23-10Lines changed: 23 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,27 +4,27 @@ description: Learn how to access applications in a virtual network that are usin
4
4
author: karlerickson
5
5
ms.author: haojianzhong
6
6
ms.service: spring-apps
7
-
ms.topic: how-to
8
-
ms.date: 03/14/2023
7
+
ms.topic: quickstart
8
+
ms.date: 03/21/2023
9
9
ms.custom: devx-track-java
10
10
---
11
11
12
12
# Access applications using Azure Spring Apps Standard consumption plan in a virtual network
13
13
14
14
This article describes how to access your application in a virtual network using Azure Spring Apps Standard Consumption plan.
15
15
16
-
When you create an Azure Container Apps Environment in an existing virtual network, all the apps inside the environment can be accessed only within that virtual network. In addition, when you create an instance of Azure Spring Apps inside the Azure Container Apps Environment, the applications in the Azure Spring Apps instance can be accessed only from the virtual network. For more information, see [Provide a virtual network to an internal Azure Container Apps environments](/azure/container-apps/vnet-custom-internal?tabs=bash&pivots=azure-portal).
16
+
When you create an Azure Container Apps environment in an existing virtual network, you can access all the apps inside the environment only within that virtual network. In addition, when you create an instance of Azure Spring Apps inside the Azure Container Apps environment, you can access the applications in the Azure Spring Apps instance only from the virtual network. For more information, see [Provide a virtual network to an internal Azure Container Apps environments](/azure/container-apps/vnet-custom-internal?tabs=bash&pivots=azure-portal).
17
17
18
18
## Create a private DNS zone
19
19
20
-
Create a private DNS zone named as the Container App Environment’s default domain `<UNIQUE_IDENTIFIER>.<REGION_NAME>.azurecontainerapps.io`, with an A record.
20
+
Create a private DNS zone named as the Azure Container App environment’s default domain `<UNIQUE_IDENTIFIER>.<REGION_NAME>.azurecontainerapps.io`, with an A record.
21
21
22
-
Use the following command to get the default domain of Azure Container Apps Environment.
22
+
Use the following command to get the default domain of Azure Container Apps environment.
23
23
24
24
```azurecli
25
25
az containerapp env show \
26
-
--name <Azure-Container-Apps-environment-name> \
27
26
--resource-group <resource-group-name> \
27
+
--name <Azure-Container-Apps-environment-name> \
28
28
--query 'properties.defaultDomain'
29
29
```
30
30
@@ -38,14 +38,14 @@ az network private-dns zone create \
38
38
39
39
## Create an A record
40
40
41
-
Create an A record that contains the name `<DNS Suffix>` and the static IP address of the Azure Container Apps Environment.
41
+
Create an A record that contains the name `<DNS Suffix>` and the static IP address of the Azure Container Apps environment.
42
42
43
-
Use the following command to get the static IP address for an Azure Container Apps Environment.
43
+
Use the following command to get the static IP address for an Azure Container Apps environment.
44
44
45
45
```azurecli
46
46
az containerapp env show \
47
-
--name <Azure-Container-Apps-environment-name> \
48
47
--resource-group <resource-group-name> \
48
+
--name <Azure-Container-Apps-environment-name> \
49
49
--query 'properties.staticIp'
50
50
```
51
51
@@ -74,6 +74,19 @@ az network private-dns link vnet create \
74
74
75
75
## Access the application
76
76
77
-
Now you can access an application in an Azure Spring Apps instance within your virtual network, using the url of the application.
77
+
Now you can access an application in an Azure Spring Apps instance within your virtual network, using the URL of the application.
78
+
79
+
## Clean up resources
80
+
81
+
Be sure to delete the resources you created in this article when you no longer need them. To delete the resources, just delete the resource group that contains them. You can delete the resource group using the Azure portal. Alternately, to delete the resource group by using Azure CLI, use the following commands:
0 commit comments