As a developer, you need to make decisions when it comes to building, deploying, and securing your application. Frequent questions you might ask are:
Whichcloud servicesshould I use with my code?
Whichlibrariesdo I need to use?
How should I set up mylocal development environment?
How do I provision the necessaryinfrastructurefor my application?
How do I know that what I’m doing incorporatessecurity best practices?
The Azure Developer CLI helps you answer these questions. It provides you with a clear path for building your application in the cloud. Azure Developer CLI(azd) —a new, open-source tool that accelerates the time it takes to get started on Azure. The Azure Developer CLI provides developer-friendly commands that map to key stages in your workflow: code, build, deploy, monitor, repeat. The new Azure Developer CLI builds upon the experience and foundations of theAzure CLI. You can use both tools together, as needed, to support your Azure workflow.
For a quick intro to the Azure Developer CLI, be sure to check out our Developer Hub!
With the Azure Developer CLI, a typical developer workflow looks like this:
azd init: Create an application and initialize an environment using a sample template in your preferred language.
azd provision: Provision the necessary resources for your application on Azure.
azd deploy: Deploy your application to Azure.
azd monitor: Monitor your application’s behavior and performance and validate deployments.
azd pipeline config: Create and manage CI/CD (continuous integration and continuous delivery).
Better yet, you can also useazd upto create, provision, and deploy a new application in one step! For a list of supported commands, see theDeveloper CLI reference docs.
The Azure Developer CLI uses idiomatic application templates that extend beyond “Hello World!” to include the scaffolding for monitoring and CI/CD for your application.
Get started with the Azure Developer CLI
Whether you’re working in the terminal, your editor or IDE (like Visual Studio Code or Visual Studio), or your GitHub Actions pipeline, Azure Developer CLI commands remain consistent regardless of the context.
As of today, you can also access preview Azure Developer CLI functionality from within both Visual Studio Code and Visual Studio. You can try out ourVisual Studio Code extensionby installing it from the Visual Studio Code Marketplace. From the VS Code extension, you can use all the Azure Developer CLI commands.
In Visual Studio 2022 17.3 Preview 2 or later, you can enable the CLI by flipping theIntegration with azd, the Azure Developer CLIpreview feature flag (Tools>Options>Environment>Preview Features>Integration with azd, the Azure Developer CLI). Enabling this flag will enable Visual Studio to detect the presence of a solution that was created with the Azure Developer CLI in the terminal.
Feedback + Contributions
Contributing to the CLI
The Developer CLI is an open-source, MIT-licensed product! Our team is excited to collaborate with all of you and intends for the Azure Developer CLI to be community-driven. We welcome contributions to the core Developer CLI codebase and in the form of templates. Our team encourages you to file issues, open pull requests, contribute to discussions and more via ourGitHub repository.
If you author your own templates, you can add theazd-templatestag to your repository on GitHub. That way, other developers can find, fork, and build upon your template for their own use case. You can also open an issue on ourGitHub repositoryif there’s a use case and template that you would like to see created.