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
@@ -53,7 +53,7 @@ az extension add --name containerapp --upgrade
53
53
```
54
54
55
55
> [!NOTE]
56
-
> Starting in May 2024, Azure CLI extensions no longer enable preview features by default. To access Container Apps [preview features](../articles/container-apps/whats-new.md), install the Container Apps extension with `--allow-preview true`.
56
+
> Starting in May 2024, Azure CLI extensions no longer enable preview features by default. To access Container Apps [preview features](whats-new.md), install the Container Apps extension with `--allow-preview true`.
57
57
> ```azurecli
58
58
> az extension add --name containerapp --upgrade --allow-preview true
Run the following command to create your first container app. This container app uses the Container Apps quickstart image.
93
-
94
-
```azurecli
95
-
az containerapp up \
96
-
--name $CONTAINER_APP_1_NAME \
97
-
--resource-group $RESOURCE_GROUP \
98
-
--location $LOCATION \
99
-
--environment $ENVIRONMENT_NAME \
100
-
--image $CONTAINER_APP_1_IMAGE \
101
-
--target-port $CONTAINER_APP_1_TARGET_PORT \
102
-
--ingress external \
103
-
--query properties.configuration.ingress.fqdn
104
-
```
105
-
106
-
Run the following command to create your second container app. This container app uses the ASP.NET quickstart image.
107
-
108
-
```azurecli
109
-
az containerapp up \
110
-
--name $CONTAINER_APP_2_NAME \
111
-
--resource-group $RESOURCE_GROUP \
112
-
--location $LOCATION \
113
-
--environment $ENVIRONMENT_NAME \
114
-
--image $CONTAINER_APP_2_IMAGE \
115
-
--target-port $CONTAINER_APP_2_TARGET_PORT \
116
-
--ingress external \
117
-
--query properties.configuration.ingress.fqdn
92
+
1.Run the following command to create your first container app. This container app uses the Container Apps quickstart image.
93
+
94
+
```azurecli
95
+
az containerapp up \
96
+
--name $CONTAINER_APP_1_NAME \
97
+
--resource-group $RESOURCE_GROUP \
98
+
--location $LOCATION \
99
+
--environment $ENVIRONMENT_NAME \
100
+
--image $CONTAINER_APP_1_IMAGE \
101
+
--target-port $CONTAINER_APP_1_TARGET_PORT \
102
+
--ingress external \
103
+
--query properties.configuration.ingress.fqdn
104
+
```
105
+
106
+
1. Run the following command to create your second container app. This container app uses the ASP.NET quickstart image.
107
+
108
+
```azurecli
109
+
az containerapp up \
110
+
--name $CONTAINER_APP_2_NAME \
111
+
--resource-group $RESOURCE_GROUP \
112
+
--location $LOCATION \
113
+
--environment $ENVIRONMENT_NAME \
114
+
--image $CONTAINER_APP_2_IMAGE \
115
+
--target-port $CONTAINER_APP_2_TARGET_PORT \
116
+
--ingress external \
117
+
--query properties.configuration.ingress.fqdn
118
118
```
119
119
120
120
## Create HTTP route configuration
121
121
122
122
1. Create the following YAML file and save it as `routing.yml`.
123
123
124
-
```yaml
125
-
rules:
126
-
- description: App 1 rule
127
-
routes:
128
-
- match:
129
-
prefix: /app1
130
-
action:
131
-
prefixRewrite: /
132
-
targets:
133
-
- containerApp: my-container-app-1
134
-
- description: App 2 rule
135
-
routes:
136
-
- match:
137
-
path: /app2
138
-
action:
139
-
prefixRewrite: /
140
-
targets:
141
-
- containerApp: my-container-app-2
142
-
```
124
+
```yaml
125
+
rules:
126
+
- description: App 1 rule
127
+
routes:
128
+
- match:
129
+
prefix: /app1
130
+
action:
131
+
prefixRewrite: /
132
+
targets:
133
+
- containerApp: my-container-app-1
134
+
- description: App 2 rule
135
+
routes:
136
+
- match:
137
+
path: /app2
138
+
action:
139
+
prefixRewrite: /
140
+
targets:
141
+
- containerApp: my-container-app-2
142
+
```
143
143
144
144
1. Run the following command to create the HTTP route configuration.
145
145
146
-
```azurecli
147
-
az containerapp env http-route-config create \
148
-
--http-route-config-name $ROUTE_CONFIG_NAME \
149
-
--resource-group $RESOURCE_GROUP \
150
-
--name $ENVIRONMENT_NAME \
151
-
--yaml routing.yml \
152
-
--query properties.fqdn
153
-
```
146
+
```azurecli
147
+
az containerapp env http-route-config create \
148
+
--http-route-config-name $ROUTE_CONFIG_NAME \
149
+
--resource-group $RESOURCE_GROUP \
150
+
--name $ENVIRONMENT_NAME \
151
+
--yaml routing.yml \
152
+
--query properties.fqdn
153
+
```
154
154
155
155
Your HTTP route configuration's fully qualified domain name (FQDN) looks like this example: `my-route-config.ambitiouspebble-11ba6155.eastus.azurecontainerapps.io`
156
156
@@ -160,89 +160,89 @@ az containerapp env http-route-config create \
160
160
161
161
1. Create the following Bicep file and save it as `routing.bicep`.
0 commit comments