How to sync branches between GitHub and Visual Studio Team Services (VSTS)

To enable branch sync between GitHub and Visual Studio Team Services (VSTS):

  • Create a build definition in VSTS
  • Save the PowerShell script below in a file
  • Add a PowerShell task and point to the PowerShell script from the previous step
git branch -r | findstr /v "\->" |  ForEach-Object {$br=$_.TrimStart(); git branch --track $br.TrimStart("origin/") $br}
$repoName = "$env:BUILD_REPOSITORY_NAME".split('/')[1]
$repoUri = "$env:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI".Substring(8)+ "_git/$repoName"
git remote add vsts "https://$env:SYSTEM_ACCESSTOKEN@$repoUri"
git branch -r | findstr /v "\->" |  ForEach-Object { $br=$_.TrimStart("  origin/"); git push -u vsts $br }

Deleting all resource groups with a prefix in their name in Azure

One benefit of using a prefix in Azure resource group names is being able to easily remove all resource groups starting with that prefix with a one liner (be very careful with “-y” though):

az group list -o table | grep '^yourprefix' | awk '{system("az group delete -y --no-wait -g "$1)}'

This is of course not limited to resource group names. You can use the same approach for pretty much everything in Azure.

The Ops Team #30 – 2017 and new team member

The Ops Team is a (sometimes) weekly show where Technical Evangelists specializing in the Operational side of DevOps get together to give you the deets on their areas of expertise including: Microsoft Azure, On-premises datacenter technologies, Open Source tools/technologies, and Microservices.

Here’s all the links and info on the topics we covered, along with the time stamps to jump to specific points in the video.

On-Prem Stuff with Matt McSpirit

DevOps and OSS with Oguz Pastirmaci

DevOps with David Tesar

Azure Stuff with Osvaldo Daibert

The Ops Team #29 – “Or is it Episode 30?”

This week on The Ops Team, WE HAVE 5 PEOPLE. Unbelievable. That also means that it’s the longest episode in Ops Team history, clocking in over 40 minutes long. Approaching Lord of the Rings territory there! Matt and Oguz are joined by new recruit Damien (well, new to Redmond), and some visiting Technical Evangelists, Julien and William from the Canadian subsidiary, to bring you up to speed with the latest IT news.

In the news, Julien, William and David all give us a recap of some recent OSS conferences; LinuxCon, GitHub Octoverse and Jenkins World 2016 respectively. Matt brings you the latest on-prem info on Nano Server, OMS, Azure Stack, Windows Server 2016 and of Azure Stuff, shares some useful networking guidance, and some enhancements to data encryption in Azure. Oguz shares the latest on VSTS, performance of Bash on Windows, a new alternative Linux subsystem project for Windows, and some other announcements in the Open Source world!

Here’s all the links and info on the topics we covered, along with the time stamps to jump to specific points in the video.

DevOps and OSS with Julien Stroheker

DevOps and OSS with William Buchwalter

On-Prem Stuff with Matt McSpirit

DevOps and OSS with Damien Caro

DevOps and OSS with Oguz Pastirmaci

Azure Stuff with Matt McSpirit

The Ops Team #027 – “The Fridge”

The Ops Team is a (sometimes) weekly show where (occasionally) 4 Technical Evangelists specializing in IT Operations get together to give you the deets on their 4 areas of expertise: Microsoft Azure/Cloud, On-premises datacenter technologies, Enterprise Mobility / Windows and DevOps.

This week on The Ops Team, we’re back down to 2 of the regulars, with Matt and Oguz bringing you up to speed with the latest IT news. It’s a little chilly in the Ops Team studio this week – someone obviously forgot to pay the last heating bill, and whilst you can’t quite see our breath, trust us, it was COLD! In the news, Matt brings us up to speed with a new, free, ebook and free Microsoft Virtual Academy course, along with some cool resources for storage, Hyper-V Scale and VMware integration. In between those two areas, Oguz shares news on a new Azure App Service with MySQL, some VSTS authentication enhancements, and rounds out with a plethora of MVA courses, all of course, FREE! 🙂 Enjoy!

Here’s all the links and info on the topics we covered, along with the time stamps to jump to specific points in the video.

Azure Stuff with Matt McSpirit

DevOps and OSS with Oguz Pastirmaci

On-Prem Stuff with Matt McSpirit

The Ops Team #26 – “Back in the Room!”

The Ops Team is a (sometimes) weekly show where (occasionally) 4 Technical Evangelists specializing in IT Operations get together to give you the deets on their 4 areas of expertise: Microsoft Azure/Cloud, On-premises datacenter technologies, Enterprise Mobility / Windows and DevOps.

This week on The Ops Team, the team are in a new studio! After an extended time off, covering vacations, conferences and studio moves (and then even longer for Matt to edit the recording!) the team return to bring you up to speed with the latest (well, it was new at the time!) news and current info you need to know if you’re in IT. David opens up with some news on enhancements to VSTS and some cool insight (sorry!) into telemetry around HockeyApp. Matt follows up with some Azure news, including some great Gartner recognition, migration tool news, and some powerful new GPU-VMs in Azure. Oguz steals the show with amazing PowerShell on Linux announcements and Matt brings us home with some on-prem updates for Azure Stack and Windows Server.

Here’s all the links and info on the topics we covered, along with the time stamps to jump to specific points in the video.

DevOps with David Tesar

Azure Stuff with Matt McSpirit

DevOps and OSS with Oguz Pastirmaci

On-Prem Stuff with Matt McSpirit