Category: DevOps

Azure CLIDevOpsportal

Apply Tags to all of your Azure Resources

Today I’m doing an Azure Migration and consolidation for a client and they wanted to tag everything within the existing Resource Group where is it deployed before we started moving things around to other Resource Groups and Subscriptions. Two important notes:  first they didn’t mind if the RG has current TAGs, if it does then they can be added to the resources within that RG and they didn’t want to lose any of the existing TAGs on the resources.

So, first I tagged all of the Resource Groups with this tag:

KEY: OrginialRGName / Value: [NAME OF RESOURCE GROUP]

New Tag

Next, I used the following script to load all the resource groups into an array, read the currently assigned tag values on the resource group and the resources.  Finally, it will apply all the tags onto the resources which will now include the OriginalRGName tag and value.  This will be done to all resources in the subscription.


groups=$(az group list --query [].name --output tsv)
for rg in $groups
do
  jsontag=$(az group show -n $rg --query tags) || true
  t=$(echo $jsontag | tr -d '"{},' | sed 's/: /=/g') || true
  r=$(az resource list -g $rg --query [].id --output tsv) || true
  for resid in $r
  do
    jsonrtag=$(az resource show --id $resid --query tags) || true
    rt=$(echo $jsonrtag | tr -d '"{},' | sed 's/: /=/g') || true
    az resource tag --tags $t$rt --id $resid || true
  done
done

Notice how the Tags on the resource remained and my new tag, OriginalRGName is now put in place!

You might get some errors on resources that don’t show in the portal or support tags, like alerts for Azure montior, but these can be ignored. Give it a try on a test subscription and have fun TAGing!

@deltadan

azure devops
DevOpsportal

Azure DevOps Saves Our Eyes!

With one simple tweet, Buck Hodges of Microsoft gave us what we have all been waiting for: less eye strain.  Microsoft pushed changes to Azure DevOps, late today which introduced themes to the portal.  Now you can change to a black background which many people prefer.

As a recovering IT Pro, I have been spending more time in Azure DevOps doing deployments for customers and the white theme is, let’s face blinding. This is a great follow-on to the rebranding of VSTS to Azure DevOps and the new more functional UI.  To apply the theme simply click your Avatar, and then Theme.

black apply

In an instant, you will now have a new theme and instant relief!  It’s great to see Microsoft continue to update their online cloud apps and listen to customers.

azure devops

After using this for the past hours, I can say that I’m totally sold on this theme!  Here is a Release that I ran this evening using the config.

Release Pipeline in Black

Give it a try at http://dev.azure.com

Enjoy!

@deltadan

Data ScienceDevelopmentDevOpsInfrastructuremachine learning

First ever Azure & AI Conference in Las Vegas!

I’m thrilled to be a part of the inaugural Azure + AI Conference in Las Vegas on December 3-6, 2018! Co-located with DevIntersection we will have a first of its kind Azure and AI focused conference! Join me along with industry experts Scott Guthrie, Zoiner Tejada, Michele Leroux Bustamante, Eric Boyd, Donovan Brown and Scott Hanselman.

You will have the opportunity to train and network with the Microsoft engineers and Azure & AI industry experts. Registrants who sign up for the conference and workshops will take home some great hardware such as a Surface Go, XBOX and more. The convergence of cloud and AI open entire new worlds of opportunities to achieve new capabilities, but also a lot of new technologies to learn. 

Save $100 by using the Code “BuildAzure

The convergence of cloud and AI open entire new worlds of opportunities to achieve new capabilities, but also a lot of new technologies to learn. Whether you are a born in the cloud developer looking to increase your AI capabilities, or a data scientist looking to understand how to build powerful AI in the cloud using the tools you already know and love or if you are a data engineer with some expertise in both, but want to learn about the latest in cutting-edge approaches, the Azure + AI conference is the one place you can attend that will help you tie the Azure and AI together in order to build amazing AI-powered solutions. In this casual environment, experts are here to talk to you, share their knowledge and experience and to help you build the knowledge, skills, and network you need to succeed in your Azure + AI endeavors.

DevOpsInfrastructurePowerShell

Using Chocolatey with Azure VMs

Automate Everything. That’s my new mantra, and it should be yours…

Like many of you, I’m an infrastructure guy and grew up with the crutches of setup.exe and the massive installers that MSFT built in the late 90’s and 2000’s. But, that was then, and today all of us need to become DevOps engineers! It used to be when we built servers they would have a lifespan of many years, but now there is a new type of VM that might only live for a day or even less.

The concept of deleting a server would have scared the daylights out of me in 2002!? Yikes!

In this new world of Azure, we should be building VMs that are purpose-built and automated in their deployment end to end. We want the teams that are consuming these servers to be ready to work as soon as they login.

Windows, Linux, and Azure provide us with many tools to make that happen such as ARM templates, PowerShell or Yum and Apt on Linux. These tools can work together with the custom script extension for Windows or Linux to build out our VMs. Read More

DevOpsInfrastructureportalPowerShell

Nested VMs in Azure with one click? You must be crazy…

When I first heard that you could run nested VMs with Azure, I ran over to my laptop to deploy one of those shiny new Version 3 VMs!

Once my Host was provisioned, I got right to work.  Quickly adding the Hyper-V role and after a quick reboot, I started downloading ISOs!  And before you know it I was disappointed.  Yeah, I had a VM running, but after searching the internet for hours, I gave up.  I never could get the thing talking to the Internet.

Well, fast forward a few months and a client of mine asked if we could build a self-provisioning Nested Hyper-V Host in Azure that would pull down pre-configured VMs and start them with only one click?  I was excited. There is nothing cooler than getting to figure something out while you are getting paid.  Well, it wasn’t easy to figure out, but what I have for you here is the fruit of that labor! Read More

Azure CLIDevOpsportalVideo

Azure Cloud Shell with Azure CLI inside Azure Portal

Here’s a short introduction to the Azure Cloud Shell; a new feature recently released into the Microsoft Azure Portal as part of the many announcements that Microsoft made at the Build 2017 conference. I also show off the Azure CLI 1.0 and 2.0 support in the Bash shell support of the Azure Cloud Shell; along with going through the portal UI to see what’s being created at the Command-Line as I go through to create a Resource Group, App Service Plan and App Service Web App from the CLI all within the Azure Portal! Enjoy!
Read More

DevOpsportalVideo

Introduction to the Azure Portal

Here’s a short video I recorded that goes over how to access the Azure Portal (the Current Azure Management Portal). I cover an overview of the dynamics and mechanics of the Azure Portal and how to use it. I also show a few different ways of how to customize the Azure Portal to change the color theme, modify quicklinks in the left-side navigation, and how to easily customize and create multiple Dashboard views to give you easy DevOps style views into your applications and workloads running in the Microsoft Azure cloud. Additionally, I also cover a few tips and techniques that may help you in working with the Azure Portal overall.

I hope you enjoy this video. This is really just the first in an ongoing series of videos that I’m going to be publishing over on the Build Azure YouTube Channel. If you’re interested in seeing MANY more videos like this, then please go Subscribe to the http://youtube.com/BuildAzure channel!

Also, please don’t forget to Subscribe to BuildAzure.com to receive the latest Azure news in your email every Monday morning, in addition to all the latest awesome articles posted here!

Big DataDevOpsInfrastructureMarketplaceOpen Source

Super Human: Learn Azure Get a Free Drone

AzureSuperHuman_DroneWho doesn’t want a free drone / quadcopter? “Let’s face it, you’re SUPER HUMAN” The tryazuremarketplace.com website currently has a bunch of FREE Azure Marketplace Labs you can do virtually (online from anywhere). Once you complete a lab, you just submit proof you did the lab and Microsoft will send you a free mini-quadcopter! Alternatively, you can also get a 3-month Azure Pass instead. But, who doesn’t want a free drone!?

The drone is the Crazyflie 2.0 quadcopter.

There are tons of labs to choose from! You can go to the site to see a full list, but they are broken out into the following categories: Dev Ops, Security, Big Data, Open Source, and Management.

AzureSuperHuman_DockerLabCardHere’s a list of the labs currently you can do for Free!

  • Dev Ops
    • CHEF – Automate an Infrastructure
    • Docker – Containerize an Application
  • Security
    • KEMP – Intelligently Design Traffic
    • Barracuda – Secure Distributed Networks
  • Big Data
    • Hortonworks – Modernize an Architecture
  • Open Source
    • Bitnami – Virtualize a Server
  • Management
    • Cloud Cruiser – Activate Profitable Insights

Learn Azure, Get a FREE Drone!

Attribution: The header image of this post as well as the photo of the drone were taken as screenshots of the Azure Super Human Lab website.

Azure CLIDevelopmentDevOpsInfrastructurePowerShell

What is Azure Resource Manager?

In the early days of Microsoft Azure the Portal was the primary tool to go in and configure your cloud components. After some time the Azure Service Manager API’s were introduced as a set of both PowerShell and Command-Line tools (X-Plat CLI). These tools allowed for Azure Automation to be scripted, however they were still a bit cumbersome as they were procedural based. More recently Microsoft overhauled the entire Azure Portal that exists today as well as a brand new set of Azure Resource Manager API’s. The purpose of Azure Resource Manager is more than just replacing Azure Service Manager. It’s real purpose is a story about automation and DevOps. Read More