Remainder: open those ports for TFS

To work on TFS Aggregator I use a number of virtual machines running different versions of Team Foundation Server. I also install the remote debugging tools (more info on remote debugging) inside the VM and I am good to go, except for a little tweak that I always forget. So I am writing about here as a reminder. In my configuration the Virtual Machine in Hyper-V sees the network as Public while TFS setup, by default, opens the Firewall ports only on Private networks.

Read more →

Many of you knows my work on TFS Aggregator. Since the beginning we opted for Markdown as the format for the project documentation, at the beginning they were some files in a doc folder, then I moved the content to the project’s GitHub Wiki, today I use the same files to generate the GitHub pages at https://tfsaggregator.github.io/intro/. In this post I will describe how this latter step works in detail to publish our open source project’s documentation.

Read more →

Mixing TFVC and Git

It all started because I needed using files coming from a Git repository and additional files stored in classic Team Foundation Version Control (TFVC), all toghether in the same build. The Options You have three options: the REST API, the tf.exe vc command or … we will see. Option 1 – REST API My first attempt relied on a Powershell script to download the files from TFVC using REST API.

Read more →

A new look for 2016 blog

I did it again and changed my blog engine to Hugo; as a consequence you will find some small change in style and navigation. The first and foremost reason is the complexity induced by Jekyll. It requires some GB (who says that Visual Studio is big?) and many vodoo hacks to work on Windows. I ended having a Linux VM running Jekyll and some additional steps going from the Markdown file to a published post.

Read more →

Annoyed by TF276000 error?

Annoyed by this error? [Full Analysis Database Sync]: TF276000: The current Analysis Database Sync job has exited without making any changes. Either another Analysis Database Sync job is already in progress, or the Analysis Database Sync job cannot run because an Optimize Databases job is running. The next Analysis Database Sync job will start at its scheduled time. It shows up in the Cube Status report of the Administrative Report Pack, and you are using them, aren’t you?

Read more →

Logging (Developer side)

I wrote lot of code in my life, and I discovered some patterns that can be useful to other people, so let’s share and discuss. More than design patterns, they are ways of applying classical Gang of Four Design Patterns in specific contexts. Today, I will start discussing writing logging and monitoring code, and you will see why I take these two together. The code examples use the C# language, but the ideas can be equally applied to C++, Java, Go or any other object oriented language with an interface feature that decouples implementation from definition.

Read more →

Command line tool to manage Git repositories in TFS

In a previous post, I quickly touched on TfsGitAdmin. I published the code on GitHub at https://github.com/giuliov/TfsGitAdmin and added new features to it: Adds an additional Git repository to a Team Project Creates the default Git repository on a Team Project that was created without version control Deletes an existing Git repository List all Git repositories in a Team Project Renames an existing Git repository Some Usage Examples TfsGitAdmin add -s http://localhost:8080/tfs -c DefaultCollection -p MySampleProject -r MyAdditionalGitRepository Adds an additional Git repository to Team Project MySampleProject.

Read more →

Q & A on Agile Portfolio Management

A while ago I held and internal session on Agile Portfolio Management. I found some questions interesting, so I share my answers here. Q: How to measure the improvement of an agile Team, which indicator to use? A: There are three useful values to monitor. One is the Team’s velocity: it should go up sprint after sprint, suggesting that the Team gets more and more efficient; the initial sprints are usually irregular.

Read more →

A while ago, I was helping my US colleagues migrating their TFS to 2013. It was a serious work, as they moved from a TFS 2010 SP1 to 2013 Update 3. They have everything in one Collection, which makes a Migration Upgrade (or attach upgrade) feasible. We designed a new infrastructure with Disaster Recovery in mind. In the old configuration they just mirrored the databases at the storage level, in the new one, SQL Always On manages the replica.

Read more →

TfsSecurity wrapper

TfsSecurity is an ugly but effective tool. I said ugly because the scope parameter is hard to get: you need to ask the database or go through the API. This latter is a palatable option in PowerShell, so here is a sample script to create a Group in an existing Team Project. [CmdletBinding()] param ( [Parameter(Mandatory=$true, Position=0)] [uri] $collection, [Parameter(Mandatory=$true, Position=1)] [string] $project, [Parameter(Mandatory=$true, Position=2)] [string] $groupName, [Parameter(Mandatory=$false, Position=3)] [string] $groupDescription = "" ) $ErrorActionPreference = 'Stop' Set-StrictMode -Version Latest $TFSSecurity = "${env:ProgramFiles(x86)}\Microsoft Visual Studio 12.

Read more →