Tag: 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

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 CLIInfrastructureportalPowerShell

Introducing the Azure Cloud Shell

The Azure Cloud Shell has been out for some time now, as an embedded Bash and PowerShell command-line shell / terminal within the Azure Portal. It really great to be able to use Azure command-line tools (Azure CLI & Azure PowerShell) from absolutely anywhere; including a smartphone or tablet with the native Azure mobile app. Now, the Azure Cloud Shell has gotten it’s own website so you can use it all by itself! Read More

Certification

Microsoft Professional Program Now Offers 5 Different Online Degrees

It’s been about 1.5 years since Microsoft first announced the Microsoft Professional Program. Basically, the Microsoft Professional Program (MPP) is a cross between an Online Degree and a Multi-Exam Certification. It’s a good move by Microsoft to provide a better training path than certifications, while simultaneously working to fill the skills gap that traditional degree programs have difficulty filling. Essentially, it’s a good cross between the two paths, providing yet another great non-traditional alternative to education and career advancement. Plus, now the Microsoft Professional Program offers 5 different “degree” tracks to choose from! 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!

Azure Weekly

Azure Weekly: July 11, 2016

Build Azure Weekly is your one stop source to stay up to date on all the latest news around the Microsoft Azure ecosystem. This weekly post includes news and links to blogs, videos, and podcasts from all over the web, as well as Microsoft Azure Service Updates from over the past week.

If you want to receive these in your email, then don’t forget to Subscribe!

Service Updates

Here’s the list of the Microsoft Azure Service Updates from the past week:

Read More

DevelopmentDevOpsInfrastructure

What is Infrastructure as Code?

As DevOps has been taking hold within the software industry there’s been a strong push towards automating everything. This include automating build, testing, deployments, as well as server and infrastructure configurations. Server and Infrastructure configuration automation was not a trivial task in the old days of on-premises datacenter where each server was on its own dedicated hardware. However, with the adoption of the cloud and Microsoft Azure along with the use of Virtualization, the automation of server and infrastructure configuration is now fairly easily done. In fact the automation of deploying servers and infrastructure is now possible through the scriptability of modern virtualization technology; such as what makes up the Microsoft Azure platform.

Automation scripts have been run for decades, this is not a new concept. However, the term Infrastructure as Code (IaC) is fairly new in the industry. As with any new term there’s starting to get a buzz around it, and with buzz comes misconceptions and misinterpretations. The purpose of this article is to describe some context surrounding the Why, What, and How surrounding Infrastructure as Code. Read More