Visual Studio Team Services build - azure

I've got an Visual Studio Team Services account, I was an "early adopter" and have only recently started being interested in the build features.
Everywhere seems to suggest that a hosted build controller is just there when you create a new build definition.
I'm getting a TF225001 error when I try to create a new build definition. I've searched high and low to try and find a way to fix this.
I've associated my Visual Studio Team Services account with my Azure account/subscription and can confirm that it's linked.
I've specifically set my Visual Studio Team Services login to be a member of the build administrators group and anything else specific to build.
I still get the error after logging in and logging out.
Is there a delay with linking an account to Azure and being able to see the hosted build controller?

Try the following troubleshooting steps:
Go to the Builds section of the Team Explorer toolbox in Visual Studio
Click Actions -> Manage Build Controllers
In the list you should see a controller named "Hosted Build Controller (Hosted)" and an agent named "Hosted Build Agent"
Select the controller, click Properties and ensure the Build Controller is enabled (don't worry if it's offline - that is normal - but it should be enabled)
Select the agent and do the same thing

Turns out there was an issue on the Microsoft end.
If anyone gets a TF225001 error when trying to create a new build definition and there aren't any build controllers in the manage build controllers window. You will need to contact the visual studio online product team.
They made a change to something which allowed me to see the Build Controller and that allowed me to create a build definition.

Related

Error (No Azure DevOps Services or Team Foundation Server repository configuration was found. Ensure) When sharing a project

I want to share my project in VSCode 2019, for this I have installed Azure Repos, then in (Command Pallette) I executed the team signin command, but I was faced with the following warning, how to fix my problem And share it with my work environment.
No Azure DevOps Services or Team Foundation Server repository configuration was found. Ensure you've opened a folder that contains a repository.
In step 2, add the words, where should I add them? I entered the
settings, but I do not know where to add them
Open VsCode -> File -> Preferences -> Settings -> Search tfvc inside the "Search settings" input -> Add the full path to that Tfvc:Location option
No Azure DevOps Services or Team Foundation Server repository
configuration was found. Ensure you've opened a folder that contains a
repository
For creating the repository, we need Visual Studio IDE, Eclipse or with the JetBrains IDEs (e.g, Android Studio, IntelliJ). or any sort of IDE for sure. Without that, we cannot start using the TFVC with VSCode.
You can follow the steps in this blog with a detailed guide.
In addition, you can refer to official document for details.

Visual Studio Resource group project template

Morning,
I am about to do a demo using the Azure SDK 2.8 resource group project template:
I have found a blog post from 2014 here:
https://azure.microsoft.com/en-us/blog/azure-resource-manager-2-5-for-visual-studio/
But the new Edit Parameters box is different and I cant work out what to do with "MyWebSitePackageFolder" and "MyWebSitePackageFileName":
I know they are related to storage:
But I get an error when doing a new deployment:
I am just creating a web app from the template:
Any help would be great!
Morning,
I have not been able to come back to this but I would say that the best solution would be to use VS 2015. Obviously 2013 was updated to allow you to do this but 2015, by default, does this with much more ease.
Not really a solution to the 2013 problem but I have the luxury of using 2015.
These parameters are used to deploy the Web Site files along with the Web App Service. This is done via a reference to the web application project in your solution. Apparently the integration with VS2013 seems to be poor, because in VS2017 these fields appear only after a reference to the web application project has been correctly configured.
The following two screens should help in the general case:
notice the web application reference properties
... and the deployment parameters
There is a very good Hands-On Lab provided by Microsoft on this topic here, called "DT00154: Authoring ARM Templates with Visual Studio".

Hosted Pool Missing in Visual Studio Online in Build section

I am setting up Visual studio online Release management and I am referring this link
https://www.visualstudio.com/en-us/get-started/build/hosted-agent-pool
to select Hosted Pool Agent in Visual studio online.. But it is missing for me.. I am refering this link in order to solve the below issue
Please help
Error
There are issues with the request or definition that will prevent the build from running:There are agents that are capable of running the build, but they are not online. If the agent is configured to run as a service, ensure that the "VSO Agent ({agent name})" service is running.The value specified for SourceVersion is not a valid commit id.
VS online release management does not yet work with hosted pool. You need to setup your own agents for a few more weeks until that support comes in.

Missing 'Add Application Insights Telemetry to Project' option in VS 2013

I have an existing Web Project. I clicked "Add Application Insights Telemetry to Project" and at one point in the process it threw an error like '[...] failed to initialize the powershell host [...]'. Then I tried a few things according to Google searches.
There is no ApplicationInsights.config in the project, nor is the Microsoft.ApplicationInsights.Telemetry.Services referenced.
Now there is no 'Add Application Insights Telemetry to Project' option to be found anywhere. I even tried to re-install the Application Insights extension.
I tried to roll back any changes via git, but without luck.
Non of my teammates see the 'Add Application Insights Telemetry to Project' option in VS. (We're all using Visual Studio Ultimate 2013 Update 4)
In case I can't get this to work, is there a way to manually set this up?
Manually, you can add the nuget package yourself (the web one is: http://www.nuget.org/packages/Microsoft.ApplicationInsights.Web)
and then manually create an application insights resource on the Azure portal (http://portal.azure.com), and then take the instrumentation key for your new resource, and paste it into the ApplicationInsights.config file that the nuget package installed into your project.
The AI VSIX adds a GUI on top of those steps. (can help you fix whatever's wrong with the vsix i'd rather have you do that first, though!)
I found that this was related to the ProjectTypeGuids being missing from my csproj files.
In VS2015 the following ProjectTypeGuids needed to be present:
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

release management with Visual Studio Online

With VS Update 4, we can now use Release Management with Visual Studio Online.
With Release Management server : no problem.
With Visual Studio Online : I can't manage to create a automated deployment.
My process always fail to "Deploy Step" with this log message "The given key was not present in the dictionary".
My environment is localized in different cloud service in Azure.
Do you have an idea of where the problem may come?
We are not supporting standard environments in VSO as of now and from the error message (which is bad), it looks like you are trying to run a release on a standard environment.
Recently we have blocked creation of new standard environments but have not touched the existing standard environments.
Can you please try running a release on a VNext azure environment & share whether it works for you or not?

Resources