Jason Haley

Ramblings from an Independent Consultant

How to set environment variables in a Container App using the Azure CLI

Last month when I presented on Azure Container Apps, I was asked “How would you set an environment variable?”. Since it isn’t currently surfaced in the Azure Portal, I wasn’t sure. Container Apps is still in preview and right now the best way to access the largest amount of features is by using ARM or Bicep … but since it is new a lot of people start with the Portal or the Azure CLI to explore. In this short post, I want to capture how I should have answered the question during my demo. How can I pass environment variables to a Container App? If you look through the documentation, you can find an exmple of environment variables being set in the Manage Secrets Example page. In that example they are focusing on secrets, but since secrets get surfaced in the …

How to rollback a Container App revision using the Azure CLI

Earlier this month I posted How to rollback a Container App revision which focused on using the Azure Portal UI. In this entry I want to go over the same demo scenario using the Azure CLI. Prerequisites for this walkthrough are to follow the steps in the Quickstart first: Deploy your first container app (Azure CLI), and insert the following steps before the last Clean up resources step. Rollback a container app revision using the Azure CLI At this point you’ve created the Container App and verified the deployment in the browser, now let’s look at the list of revisions using the containerapp revision list command. In order to get a list of revisions that shows the same Name, Date Created, Provision Status, Traffic and Active columns shown in the portal, run the folllowing …

How to rollback a Container App revision

Last week I presented “A look at Azure Container Apps” to our local Azure user group. I was my first time presenting the topic and I’ll just say it wasn’t my best presentation (believe me - I’ve watched the whole recording). But anyway … during one of the demos a question came up about if it was easy to rollback a revision. I attempted to do perform a demo of how to do it, but the demo gods were not helping me last Thursday night. Today at lunch I tried it again, and of course it worked fine. This is a walkthrough of how it should have worked last week. Prerequisite for this walkthrough is to follow the steps in the Deploy your first container app (Azure Portal), but insert the following steps before the last Clean up resources step. Rollback a …

What I'm using to stay up to date on Azure news

Happy New Year! Yeah, yeah I know - January is almost over already. You aren’t tired and letting up on your resolutions yet are you? I know sometimes when I start a new year with a plan to make lots of changes and to be focused on a new year full of goals that really interest me … I start to run out of gas around the end of week 3. Well it is now the beginning of week 4 - time to get back to it! Reread you goals and for those goals that have to do with keeping up to date and learning more about Azure - here are some resources for you that I just recently discovered. We have a “pandemic puppy”, whose name is Duncan (he is the one in the photo above) and I now have a reason to take a drive and go on a walk every morning. The drive is key - about 30 minutes each way - it …