Domain Controller Migration and Team Foundation Server Creation on a Virtual Machine in Windows Azure.
(Platform Windows 2012 / 2008R2)Most small and medium-sized companies use TFS on a server that performs the function of a Domain Controller (DC), sometimes it happens because of economic considerations, this is especially popular if programmers are not in the office, but work from home or arrive on business trips.
To start, we need a Windows account,
Windows Live ID . Thanks to him, we create an account on
http://windowsazure.net - a 90-day free or by subscription such as "BizSpark" (subscription for startups).
Let's turn to the possibilities of Windows Azure and choose the required ones.
These are: virtual machine - to create the DC TFS 2012 server itself, web sites - to publish applications.Create a virtual machine (VM) based on the Windows 2008R2 / 2012 platform, as shown in the article
"Create VM in Azure" . Details of using VM in Azure
http://habrahabr.ru/post/150341/ .
Create DC on this virtual machine, article:
“Create DC on VM” . It should be noted that the creation of DC on the Windows2008R2 platform and Windows2012 is slightly different, to create a DC on Windows2012, you do not need to run the dcpromo command, which is required to install DC on the Windows2008R2 platform. In the case of migration of an existing DC, it is necessary to use standard Windows Server tools, to migrate domain services and roles to VMs in Windows Azure.

Details of the migration of Windows 2008R2 between the two servers in the IT infrastructure are described on
TechNet .
After installing or migrating DC, we need to install SharePoint 2013 for TFS 2012. A detailed description of the installation is described in this article:
http://habrahabr.ru/post/153453/ . You will also need MS SQL Server 2012 server:
http://habrahabr.ru/post/153453/ .
It should be noted that the SharePoint and SQL servers must be in the same virtual network and respectively in the same domain.
After installing the required components, we start the installation of TFS from the ISO file previously downloaded from msdn.com.Run configuration-wizard-tfs
Choose item Advanced.
We configure all the required server settings, such as a database, a SharePoint account and others. Installation details are described in the English article
“Installing TFS 2012” .
You can also use a ready-made VHD file (which already includes DC and TFS) and upload it to the VM
(see article) , but this method is not covered in the article.
We check the received server from VisualStudio.

')
You need to compare the resulting server with the already existing cloud service Team Foundation Service (TF-Service)
http://tfs.visualstudio.com/ . It should be noted that the TF-service has several disadvantages, which are as follows:
• Limited number of process templates. You can only use built-in templates that are not possible to customize in an additional way.
• Integration with corporate services such as SharePoint, Project Server, System Centrer, etc. is not supported.
• You can only authenticate by LiveID; federation script with Active Directory is not supported yet.
• Reporting subsystems are rather limited in their capabilities.
In turn, the created DC TFS 2012 does not have these disadvantages.