Skip to content

Commit e6c8c8d

Browse files
Merge pull request #248714 from craigshoemaker/aca/c2c-choices
[Container Apps] Code to cloud choices
2 parents e98d86e + 780b3b8 commit e6c8c8d

File tree

2 files changed

+91
-0
lines changed

2 files changed

+91
-0
lines changed

articles/container-apps/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
href: overview.md
99
- name: Compare container options in Azure
1010
href: compare-options.md
11+
- name: Code to cloud options
12+
href: code-to-cloud-options.md
1113
- name: Overview
1214
items:
1315
- name: What's new
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
title: Code to cloud options in Azure Container Apps
3+
description: Learn about the different options to deploy a container app directly from your development environment.
4+
services: container-apps
5+
author: craigshoemaker
6+
ms.service: container-apps
7+
ms.topic: how-to
8+
ms.date: 08/30/2023
9+
ms.author: cshoe
10+
---
11+
12+
# Select the right code-to-cloud path for Azure Container Apps
13+
14+
You have several options available as you develop and deploy your apps to Azure Container Apps. As evaluate your goals and the needs of your team, consider the following questions:
15+
16+
- Do you want to focus more on application changes, or infrastructure configuration?
17+
- Are you working on a team or as an individual?
18+
- How fast do you need to see changes reflected in the application or infrastructure?
19+
- How important is an automated workflow vs. an experimental workflow?
20+
21+
Based on your situation, your answers to these questions affect your preferred development and deployment strategies. Individuals who want to rapidly iterate features have different needs than structured teams deploying to mature production environments.
22+
23+
This article helps you select the most appropriate option for how you develop and deploy your applications to Azure Container Apps.
24+
25+
Depending on your situation, you may want to deploy from a [code editor](#code-editor), through the [Azure portal](#azure-portal), with a hosted [code repository](#code-repository), or via [infrastructure as code](#infrastructure-as-code).
26+
27+
## Code editor
28+
29+
If you spend most your time editing code and favor rapid iteration of your applications, then you may want to use [Visual Studio](https://visualstudio.microsoft.com/) or [Visual Studio Code](https://code.visualstudio.com/). These editors allow you to easily build Docker files a deploy your applications directly to Azure Container Apps.
30+
31+
This approach allows you to experiment with configuration options made in the early stages of an application's life.
32+
33+
Once your application works as expected, then you can formalize the build process through your [code repository](#code-repository) to run and deploy your application.
34+
35+
### Resources
36+
37+
- [Deploy to Azure Container Apps using Visual Studio](deploy-visual-studio.md)
38+
- [Deploy to Azure Container Apps using Visual Studio Code](deploy-visual-studio-code.md)
39+
40+
## Azure portal
41+
42+
The Azure portal's focus is on setting up, changing, and experimenting with your Container Apps environment.
43+
44+
While you can't use the portal to deploy your code, it's ideal for making incremental changes to your configuration. The portal's strengths lie in making it easy for you to set up, change, and experiment with your container app.
45+
46+
You can also use the portal with [Azure App Spaces](/azure/app-spaces/overview) to deploy your applications to Container Apps.
47+
48+
### Resources
49+
50+
- [Deploy your first container app using the Azure portal](quickstart-portal.md)
51+
- [Deploy a web app with Azure App Spaces](/azure/app-spaces/quickstart-deploy-web-app?tabs=app-service)
52+
53+
## Code repository
54+
55+
GitHub and Azure DevOps repositories provide the most structured path to running your code on Azure Container Apps.
56+
57+
As you maintain code in a repository, deployment takes place on the server rather than your local workstation. Remote execution engages safeguards to ensure your application is only updated through trusted channels.
58+
59+
### Resources
60+
61+
- [Deploy to Azure Container Apps with GitHub Actions](github-actions.md)
62+
- [Deploy to Azure Container Apps from Azure Pipelines](azure-pipelines.md)
63+
64+
## Infrastructure as code
65+
66+
Infrastructure as Code (IaC) allows you to maintain your infrastructure setup and configuration in code. Once in your codebase, you can ensure every deployed container environment is consistent, reproducible, and version-controlled.
67+
68+
In Azure Container Apps, you can use the [Azure CLI](/cli/azure/) or the [Azure Developer CLI](/azure/developer/azure-developer-cli/overview) to configure your applications.
69+
70+
| CLI | Description | Best used with |
71+
|--|--|--|
72+
| Azure CLI | The Azure CLI allows you to deploy directly from your local workstation in the form of local code or container image. you can use PowerShell or Bash to automate application and infrastructure deployment. | Individuals or small teams during initial iteration phases. |
73+
| Azure Developer CLI (AZD) | AZD is a hybrid solution for handling both the development and operation of your application. When you use AZD, you need to maintain both your application code and infrastructure code in the same repository. The application code requires a Dockerfile for packaging, and the infrastructure code is defined in Bicep. | Applications managed by a single team. |
74+
75+
#### Resources
76+
77+
- **Azure CLI**
78+
- [Build and deploy your container app from a repository](quickstart-code-to-cloud.md)
79+
- [Deploy your first container app with containerapp up](get-started.md)
80+
- [Set up GitHub Actions with Azure CLI](github-actions-cli.md)
81+
- [Build and deploy your container app from a repository](tutorial-deploy-first-app-cli.md)
82+
83+
- **Azure Developer CLI (AZD)**
84+
- [Get started using Azure Developer CLI](/azure/developer/azure-developer-cli/get-started?tabs=localinstall&pivots=programming-language-nodejs)
85+
86+
## Next steps
87+
88+
- [Deploy to Azure Container Apps using Visual Studio](deploy-visual-studio.md)
89+
- [Deploy to Azure Container Apps using Visual Studio Code](deploy-visual-studio-code.md)

0 commit comments

Comments
 (0)