Month: November 2018

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.