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
By adding the argument `--env-vars "API_BASE_URL=https://$API_ENDPOINT"` to `az containerapp create`, you define an environment variable for your front end application. With this syntax, the environment variable named `API_BASE_URL` is set to the API's FQDN.
242
+
243
+
The output from the `az containerapp create` command shows the URL of the front end application.
244
+
245
+
# [Azure PowerShell](#tab/azure-powershell)
246
+
247
+
To create the container app, create template objects that you'll pass in as arguments to the `New-AzContainerApp` command.
248
+
249
+
Create a template object to define your container image parameters. The environment variable named `API_BASE_URL` is set to the API's FQDN.
You'll need run the following command to get your registry credentials.
253
264
254
-
By adding the argument `--env-vars "API_BASE_URL=https://$API_ENDPOINT"` to `az containerapp create`, you define an environment variable for your front end application. With this syntax, the environment variable named `API_BASE_URL` is set to the API's FQDN.
Create a registry credential object to define your registry information, and a secret object to define your registry password. The `PasswordSecretRef` in `$RegistryObj` refers to the `Name` in `$SecretObj`.
The `az containerapp create` CLI command returns the fully qualified domain name (FQDN) of your album UI container app. Open this location in a browser to navigate to the web application resembling the following screenshot.
313
+
Use the container app's FQDN to view the website. The page will resemble the following screenshot.
259
314
260
315
:::image type="content" source="media/communicate-between-microservices/azure-container-apps-album-ui.png" alt-text="Screenshot of album list UI microservice.":::
261
316
262
317
## Clean up resources
263
318
264
319
If you're not going to continue to use this application, run the following command to delete the resource group along with all the resources created in this quickstart.
265
320
321
+
> [!CAUTION]
322
+
> This command deletes the specified resource group and all resources contained within it. If resources outside the scope of this tutorial exist in the specified resource group, they will also be deleted.
0 commit comments