Is it possible use TFS in azure pipeline as a code? - azure

Is it possible use as a repo TFS server in azure pipeline as a code?
Maybe someone has this experience, because I didn't found any manual for it

Related

How to move Azure DevOps Project to another Organization with all the history?

I've got a project under my user that I want to move to my Azure DevOps Organization.
I can only see the option to move repository through Import functionality but not a Project.
I can't see any options in Azure DevOps on migrating projects.
Anyone know how to do it?
Thanks
This is not supported today. But this feature is up there on the pipeline as you can see.

Release Definition in Azure DevOps and Team Foundation Server plugin for Jenkins

I'm following this tutorial from a Microsoft Cloud Advocate to set up Azure DevOps and Jenkins integration: https://medium.com/#bbenz/azure-devops-and-jenkins-in-perfect-harmony-8c92ff980723 .
I'm not able to trigger a new Azure DevOps pipeline release when Jenkins successfully completes a build.
There is no release definition available in my Jenkins dropdown menu for the Jenkins Team Foundation Server (TFS) plugin. I have created a Pipeline release in Azure DevOps, FYI.
In the above mentioned tutorial, there's no mention of setting up a release definition and based on research release definitions are only mentioned in resources from several years ago.
How do I resolve this? The Github repository seems to imply the TFS plugin supports Azure DevOps in its current iteration.
Lastly, not surprisingly, when running the Build on Jenkins I get an error. In this case, a 404: hudson.plugins.tfs.rm.ReleaseManagementException: Error occurred.%nStatus: 404%nResponse:
So the issue is with the TFS Plugin for Jenkins. I had to update the calls to the Azure DevOps API in the source code because the URL scheme has changed and no one updated the code for the plugin.
To anyone reading this, just know the TFS Plugin is not maintained.

Azure ARM template Continuous Delivery Release pipeline

I am developing CD release pipeline using TFS 2015 update 2 on-prem instance. I'm relying on ARM template to setup Azure website and Azure Sql server. I'm using FTP method for deploying website bits from internal Build server to Azure website. For this website deployment I'm reading the credentials from PublsihingProfile of the newly created website.
Is this a right way or can you suggest a better way? Any comments are appreciated.
P.S. Customer wants to use FTP method and not WebDeploy.
If you really have to use FTP, and the thing you're not happy with is the process/password secret management, you could try this:
https://marketplace.visualstudio.com/items?itemName=januskamphansen.ftpupload-task
Its a VSTS extension task for release, which works with the vnext build/release system in VSTS or TFS2015 server. This task lets you put the parameters in against each environment you setup, and mark the passwords as secrets so they wont come out in logs or the UI.
The step basically wraps up the process of doing the ftp bit for you - you may want to do other steps as part of the release.

How to connect on-premises TFS with Azure source code repository

Is it possible to connect on-premises TFS source control to Azure Visual Studio source code repository? If so, could you please write down the steps involved?
So far I haven't found anything by googlying for the question. The only way I can think of is to write a job in the Windows task scheduler that will pick up files from on-premises source control and send them to the Azure TFS. I havent done that get but with some effort it can be done.
Is there any other straight forward way of achieving the results?
If you mean to connect TFS to VSO you can do this with the TFS Integration Tools with a two way sync. Be warned that this is a really silly thing to do and I would not recommend it.
A better solution would be to simply move to VSO. You can use a one way sync with the TFS Integration Tools or OpsHub. Once there you use VSO as the primary.
You can still install and use a local TF Build server or a local Release Management server so that you can build and deploy locally.
You can even configure AAD integration to create single sign on from your local domain.
http://nakedalm.com/use-corporate-identities-existing-vso-accounts/
http://visualstudiogallery.msdn.microsoft.com/eb77e739-c98c-4e36-9ead-fa115b27fefe

Database deployment as part of azure continuous deployment

I am using Azure integration with tfs.visualstudio.com for automated deployment after every checkin. As part of my solution, i have a database project (VS 2012) which i want to deploy on sql azure instance after a successful build but before the unit tests are triggered. I am unable to figure out how is that possible with azure. Someone please help me out here.
One possible solution is described here:
http://www.windowsazure.com/en-us/develop/net/tutorials/web-site-with-sql-database/

Resources