Category: Developer

AzureDeveloper

Azure Developer CLI (azd) announced: Quickly build apps for the cloud

This week Microsoft announced the public preview of the Azure Developer CLI (azd) — yes this is yet another CLI, a new open-source tool that accelerates the time it takes to get started on Azure. This post will do a quick intro of this new CLI and show how to get started and list out the resources to follow up on to learn more.

Introducing the Azure Developer CLI

You might be asking what is the Azure Developer CLI? Does this replace the Azure CLI? So let’s dive in and take a look. Think of the Azure Developer CLI as an abstraction over the Azure CLI and provides developer-friendly commands that map to key stages of your workflow: code, build, deploy, monitor, and repeat. To create, provision, and deploy a new application in one step, it’s as easy as:

azd up --template todo-nodejs-mongo

The Azure Developer CLI comes with extensible templates that include everything you need to get an application up and running in Azure. These templates include best practices, application code and reusable infrastructure as code assets written in Bicep.

The new Azure Developer CLI builds upon the experience and foundations of the Azure CLI. You can use both tools together, as needed, to support your Azure workflow.

To learn more about the Azure Developer CLI, be sure to check out the Developer Hub!

Why the need for another CLI?

As a developer, you need to make many decisions when it comes to building, deploying, and securing your application. Some of those questions you might ask are:

  • Which cloud services should I use with my code?
  • Which libraries do I need to use?
  • How should I set up my local development environment?
  • How do I provision the necessary infrastructure for my application?
  • How do I know that what I’m doing incorporates security best practices?

The Azure Developer CLI helps you answer these questions and many more. It provides you with a clear path for building your application in the cloud.

With the Azure Developer CLI, a typical developer workflow looks like this:

  1. azd init: Create an application and initialize an environment using a sample template in your preferred language.
  2. azd provision: Provision the necessary resources for your application on Azure.
  3. azd deploy: Deploy your application to Azure.
  4. azd monitor: Monitor your application’s behavior and performance and validate deployments.
  5. azd pipeline config: Create and manage CI/CD (continuous integration and continuous delivery).

Better yet, you can also use azd up to create, provision, and deploy a new application in one step! For a list of supported commands, see the Developer CLI reference docs. Alternatively, run azd –h from your preferred terminal after installation. If you no longer want or need the resources you’ve created, you can run azd down.

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.

Getting Started

Pre-requisites

Before you get started using azd, ensure you have the following installed:

You will also need an Azure account with an active subscription. If you dont have one then you can create one for free.

Installation

With the pre-requisites installed, you can now install the standalone Azure Developer CLI via the following command in your preferred terminal.

Windows

powershell -ex AllSigned -c "Invoke-RestMethod 'https://aka.ms/install-azd.ps1' | Invoke-Expression"

macOS/Linux

curl -fsSL https://aka.ms/install-azd.sh | bash

Application templates for C#, Python, and JavaScript/TypeScript

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.

Each template includes application code, an /infra directory containing all the infra-as-code files needed to provision the Azure resources, and an azure.yaml file that describes your application. These templates are extensible and customizable to your specific use case.

For the first preview, they’ve authored an initial set of template applications written in Python, JavaScript/TypeScript, and C# and for hosts such as Azure App Service, Azure Container Apps, and Azure Static Web Apps + Function Apps. For more templates, check out the growing list of templates. If you’re interested in authoring your own template or creating a template from an existing application, see the Developer Hub.

In a follow up post I’ll dig deeper into one of the provided templates where we will build an application and deploy it to Azure.

Enjoy!

AIAnalyticsAzureDeveloperDevOps

Highlights from Microsoft Build 2021 | Digital Event

I’m happy to announce a Highlights from Microsoft Build 2021 digital event next Thursday, July 15. Please join me and other local experts as we look to provide key insights from the event that will help you expand your skillset, find technical solutions, and innovate for the challenges of tomorrow.

Here are the topics that will be covered:

  • .NET 6 and ASP.NET Core 6 and C#10
  • Internet of Things
  • DevOps
  • Kubernetes
  • Power Platform
  • Artificial Intelligence
  • Azure Functions
  • Entity Framework
  • Power BI

For more details about this event, please visit https://www.meetup.com/CTTDNUG/events/279130746/

Enjoy!

AzureCloudDeveloperEventsIoT

Microsoft Ignite 2021 Book of News (March 2-4)

Microsoft Ignite starts today and runs until March 4. Once again this is a virtual event and registration will remain open during the duration of the event. You can register at https://register.ignite.microsoft.com/

As typical Microsoft provides a Book of News for the event. What is the Book of News? The Microsoft Ignite 2021 Book of News is your guide to the key news items that are announced at Ignite 2021.

Click here to read the Microsoft Ignite 2021 Book of News!

Further reading

If you missed out on Microsoft Ignite 2020 or want to quickly see what was announced, checkout the Microsoft Ignite 2020 Book of News for what was announced at that event.

Enjoy!

DeveloperDevOps

How I Develop Locally With GitHub and Azure DevOps Repos — El Bruno

Originally posted on The Frog Pond of Technology: A peer of mine recently asked about how I manage local code (projects, solutions, Git repos, etc.) that may or may not be synced to a cloud repository (GitHub, Azure DevOps, etc.) Since I previously blogged about How I Blog – Updated 2018 and I’m a fan…

How I Develop Locally With GitHub and Azure DevOps Repos — El Bruno
DeveloperWindows

How to install and customize the Windows Terminal

At Microsoft Build 2019 conference, Microsoft announced and showed off the new Windows Terminal application. It quickly was released as a preview and has been updated regularly over the last 12 months.

In this video, Gregor Suttie aka “Azure Greg” shows you how to install and customize the Windows Terminal. If you haven’t tried the Windows Terminal or are curious on how it can be customized then check out this video.

Enjoy!

References

https://github.com/microsoft/terminal

AzureCloudCloud NativeDeveloper

AzUrlShortener: An open source, budget-friendly URL shortener | Azure Friday

In this episode of Azure Friday, Frank Boucher joins Scott Hanselman to talk about AzUrlShortener – an open source, budget-friendly URL shortener you can deploy directly from GitHub with one click into your Azure subscription. Frank explains how to get it, why it’s inexpensive, and explores the source code.

[0:01:34] – Demo

Source: Channel 9

Resources

DeveloperDevelopmentGitHub

GitHub is now free for teams

GitHub announced that their making private repositories with unlimited collaborators available to all GitHub accounts. This means all of the core GitHub functionality is free for everyone.

For details about what features are included and compare plans, checkout the pricing page at https://github.com/pricing

Enjoy!

Resources

https://github.blog/2020-04-14-github-is-now-free-for-teams/

AzureDeveloperDevOps

Publish Nuget packages in Azure DevOps Pipelines

If you’re using Azure DevOps for your build, did you know you can also publish your NuGet packages?

Here is a great post that walks you through the process.

Enjoy!

In Azure DevOps, Pipelines can be used to build your solution, create a Nuget package and publish the Nuget package to the Nuget feed for further …

Publish Nuget packages in Azure DevOps Pipelines

AzureDeveloperDevOps

Moving an Azure DevOps repo to use Github Actions instead

In this blog post, I am going to take an existing web application that resides in Azure DevOps and port it to build and deploy within GitHub and use …

Moving an Azure DevOps repo to use Github Actions instead
DeveloperDevelopment

New GitHub CLI announced and available as beta

This week GitHub announced the beta for their new GitHub CLI tool, which provides an easier and more seamless way for you to interact with GitHub from your terminal.

The GitHub CLI can be installed on Windows, macOS and Linux. Get started by downloading the installer from the GitHub CLI repository.

New GitHub CLI announced and available as beta

What can GitHub CLI do?

Once you have it downloaded, open up your terminal and use the gh command:

The GitHub CLI beta currently allows you to do the following commands:

  • Pull requests: Using the pr command to checkout, create, list, status and view
  • Issues: Using the issue command to create, list, status and view
  • Help: Using help command to see how to use the tool

When you first use it you will need to authenticate the GitHub CLI. As you can see here I will be prompted to open GitHub in my browser:

After authenticating the GitHub CLI you will be able to continue with your last command:

I needed to change directories to where my repository was and then I was able to list out my pull requests using the following command:

gh pr list

For more details about what can be done, check out the GitHub CLI manual for lots of examples on using each of the commands.

Wrap up

This is an early look at what can be done with the GitHub CLI, and because it’s still in early development the team would love for you to give the tool a try and then provide them feedback.

Enjoy!

Resources

Announcement https://github.blog/2020-02-12-supercharge-your-command-line-experience-github-cli-is-now-in-beta/

Download from https://cli.github.com/

Documentation at https://cli.github.com/manual/