A new CLI is in town
When you are working with Azure you certainly heard of and are using the Azure CLI. While this is a great tool for create and manage Azure resources, it covers only one part of the typical development loop of building applications.
Wouldn’t it be great to have a CLI that covers more of the development loop and that allows a templating of your application including the infrastructure and maybe even a build pipeline. I think it would be and obviously Microsoft has the same opinion.
May I introduce you to the Azure Developer CLI or azd
for short.
The CLI went into public preview in July 2022 and aims to support developers to build, deploy and secure their application following best practices.
I like this idea and that is why I created a series of videos looking at the different aspects of azd
and hopefully give you a first glance at this new tool. I shortly outline the content of these videos in the following sections. As an app I took the ToDo sample app and as host I used the Azure Container Apps as sample throughout the series.
Episode 1 – Getting started
This episode is the starting point. It shows an end-to-end walkthrough of deploying the sample Azure Container app and infrastructure.
Episode 2 - Walkthrough Template Code
In this episode we walk through the code of the Azure Developer CLI Template for Node.js with the Azure Container Apps host. We check it structure and derive what part contributes to which aspect of the azd
flow.
Episode 3 - Closer look at azd
While the first episode used the azd up
command, in this episode we take a closer look at the Azure Developer CLI commands especially for initialization, provisioning, and deployment of a project that are wrapped by azd up
.
Episode 4 - Monitoring
In this episode we take a quick look at the topic of monitoring that is provided by azd
. Not too breath taking, but a got starting point supporting the flow outlined by the CLI.
Episode 5 - Debugging the project
This episode highlights another beautiful aspect of the CLI namely the ability to run and debug the application in a hybrid setup.
Episode 6 - Deployment Pipeline on GitHub
This episode investigates on the features for setting up a deployment pipeline with azd
i. e. setting up a GitHub Actions flow.
This episode wraps things up and walk through other interesting parts of the documentation that allow you to get a better understanding of the CLI and how it works.
Summary
First things first: the CLI is in public beta, so it is not feature complete. However there a solid roadmap with features that I would have asked for, so nothing special on my wish list that is not yet on the roadmap
Having said that, the CLI is already quite good and can be used in projects when the restrictions concerning the hosts are okay for your project. The usability looks good to me, maybe some edges can be smoothed, but no severe issues as far as I have tried things out.
Overall, the CLI can be a huge win for companies and their platform teams when providing blueprints/landing zones for their developers. The design of the CLI and the templates should really help with this and reduce the necessity for developers to make decisions on things that do not contribute to their original task namely developing (business) applications.
Talking about the templates: I think the ToDo templates are really good, and I also saw some further templates that are tagged as azd templates. However, I missed the clear structure that the “real” sample apps provided in most of them. It is also not 100% clear to me how the community clould contribute templates and contributing to templates is not crystal clear to me, making variants of the templates, would be cool to have some curated “community” area with templates from the community for the community, but let’s see what the future will bring here.
Overall, I really liked my first steps with the CLI and I am looking forward to its upcoming evolution.
Top comments (0)