This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Azure Container Apps enables you to run microservices and containerized applications on a serverless platform. With Container Apps, you get the benefits of running containers without the concerns of manually configuring cloud infrastructure and complex container orchestrators.
In this tutorial, you deploy a containerized application to Azure Container Apps by using Visual Studio Code.
Open a new Visual Studio Code window.
SelectF1 to open the command palette.
EnterGit: Clone and press enter.
Enter the following URL to clone the sample project:
https://github.com/Azure-Samples/containerapps-albumapi-javascript.gitNote
This tutorial uses a JavaScript project, but the steps are language agnostic.
Select a folder to clone the project into.
SelectOpen to open the project in Visual Studio Code.
SelectF1 to open the command palette.
SelectAzure: Sign In and follow the prompts to authenticate.
Once signed in, return to Visual Studio Code.
The Azure Container Apps extension for Visual Studio Code enables you to choose an existing Container Apps resource or create new ones to deploy your applications. In this scenario, you create a new Container App environment and container app to host your application. After installing the Container Apps extension, you can access its features under the Azure control panel in Visual Studio Code.
SelectF1 to open the command palette and run theAzure Container Apps: Deploy Project from Workspace command.
Enter the following values as prompted by the extension.
| Prompt | Value |
|---|---|
| Select subscription | Select the Azure subscription you want to use. |
| Select a container apps environment | SelectCreate new container apps environment. You're only asked this question if you have existing Container Apps environments. |
| Enter a name for the new container app resource(s) | Entermy-container-app. |
| Select a location | Select an Azure region close to you. |
| Would you like to save your deployment configuration? | SelectSave. |
The Azure activity log panel opens and displays the deployment progress. This process might take a few minutes to complete.
When the process finishes, Visual Studio Code displays a notification. SelectBrowse to open the deployed app in a browser.
In the browser's location bar, append the/albums path at the end of the app URL to view data from a sample API request.
Congratulations! You successfully created and deployed your first container app using Visual Studio Code.
If you don't plan to use this application, you can delete the Azure Container Apps instance and all the associated services at once by removing the resource group.
To remove the resources you created, follow these steps in the Azure portal:
Tip
Having issues? Let us know on GitHub by opening an issue in theAzure Container Apps repo.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?