Answered by:
Mapping an Azure Cloud Service to Visual Studio Online using "Integrate soucre control" - how do you specifiy the project in Visual Studio Online

Question
-
Hi,
I have a cloud service that I have created
Mapping an Azure Cloud Service to Visual Studio Online using "Integrate source control" - how do you specify the project in Visual Studio Online.
I have a cloud service (just the scaffold created in Azure Management portal). abcportal cloud service
I then when into Visual Studio to create a cloud service named abc which I plan to deploy to abcportal using continuous build, integration and deployment. I added the project to source control and checked in my changes to repository $ScrumProject. Mind you, there are several C# projects under repository $ScrumProject in Visual Studio Online.
I then went to Azure Management Portal and used "Integrate source control" - Set up publishing with Visual Studio Online. I was asked to authorize the yser name and choose a repository to deploy, I selected ScrumProject repository. But it did not ask me which solution / project folder within the ScrumProject repository I should map it to?
So my question is .. if I build abc solution through Visual Studio, which deployment will it get deployed to?
Azure Management Portal Visual Studio Online Visual Studio
Cloud Service Repository
abcportal $ScrumProject abc.sln
Given the above, I have mapped abcportal to $ScrumProject and not necessarily a project solution under $ScrumProject. Where should I map abcportal to abc.sln?
Thanks
- Edited by ihaveanazurequestion Sunday, August 9, 2015 9:41 PM
Sunday, August 9, 2015 9:37 PM
Answers
-
From Visual Studio, try to connect you Visual Studio Online (VS) Team project via TFS explorer. When you are connected select you $ScrumProject from the list and connect it. Then map (clone) the project to your local machine, after that Open you solution (abc.sln) to the workspace that you have created - it will open your solution abc.sln and you will be able work and publish your project to Azure.
Hope this will help.
- Proposed as answer by Mostafa Asaduzzaman Monday, August 10, 2015 10:52 PM
- Marked as answer by ihaveanazurequestion Tuesday, August 11, 2015 3:20 PM
Sunday, August 9, 2015 10:23 PM -
Visual Studio Online can be configured to automatically build and deploy a cloud service upon checkin.
However by default the checkin deploy the solution to a staging server but you can alter this so it deploys to the live environment.
To change any of the setting you need to alter the build configuration.
To alter/change the build configuration follow these steps to setup continuous delivery.
1. Ensure you have created a team project in Visual Studio Online see
http://www.visualstudio.com/get-started/connect-to-vs
2. Open up the project you want to package in Visual Studio
3. In solution explorer right click on the solution and select - add the solution to source control
4. In the source control dialog box select - team foundation version control
5. In the connect to team foundation dialog - select your VSO server and select the check box next to the team project you are using
6. Add the solution name dialog - choose the team project location and click ok
7. In solution explorer - right click on the solution and select checkin
8. In pending changes area of Team Explorer enter any comments re changes and click checkin
9. Ensure you have deployed the cloud services or an empty on using the management portal http://manage.windowsazure.com
10. click on the cloud tab to the left of the dashboard tab
11. click the setup publishing with VSO link
12. Authorize the connection to VSO enter your VSO account and click authorise
13. In the OAuth connection request - click accept
14. From the project drop down list - select the team project to deploy and clock the check box
15. In Visual Studio make your code changes and click check in
16. In Team Explorer click home button
17. Click Build
18. Under My Builds, double click on build entry to monitor the status
19. Build Completes use the management portal to navigate to your cloud service check the deployments tab to view the history of the deployments.
- Proposed as answer by Mostafa Asaduzzaman Monday, August 10, 2015 10:52 PM
- Marked as answer by ihaveanazurequestion Tuesday, August 11, 2015 3:19 PM
Monday, August 10, 2015 3:29 PMModerator
All replies
-
From Visual Studio, try to connect you Visual Studio Online (VS) Team project via TFS explorer. When you are connected select you $ScrumProject from the list and connect it. Then map (clone) the project to your local machine, after that Open you solution (abc.sln) to the workspace that you have created - it will open your solution abc.sln and you will be able work and publish your project to Azure.
Hope this will help.
- Proposed as answer by Mostafa Asaduzzaman Monday, August 10, 2015 10:52 PM
- Marked as answer by ihaveanazurequestion Tuesday, August 11, 2015 3:20 PM
Sunday, August 9, 2015 10:23 PM -
Visual Studio Online can be configured to automatically build and deploy a cloud service upon checkin.
However by default the checkin deploy the solution to a staging server but you can alter this so it deploys to the live environment.
To change any of the setting you need to alter the build configuration.
To alter/change the build configuration follow these steps to setup continuous delivery.
1. Ensure you have created a team project in Visual Studio Online see
http://www.visualstudio.com/get-started/connect-to-vs
2. Open up the project you want to package in Visual Studio
3. In solution explorer right click on the solution and select - add the solution to source control
4. In the source control dialog box select - team foundation version control
5. In the connect to team foundation dialog - select your VSO server and select the check box next to the team project you are using
6. Add the solution name dialog - choose the team project location and click ok
7. In solution explorer - right click on the solution and select checkin
8. In pending changes area of Team Explorer enter any comments re changes and click checkin
9. Ensure you have deployed the cloud services or an empty on using the management portal http://manage.windowsazure.com
10. click on the cloud tab to the left of the dashboard tab
11. click the setup publishing with VSO link
12. Authorize the connection to VSO enter your VSO account and click authorise
13. In the OAuth connection request - click accept
14. From the project drop down list - select the team project to deploy and clock the check box
15. In Visual Studio make your code changes and click check in
16. In Team Explorer click home button
17. Click Build
18. Under My Builds, double click on build entry to monitor the status
19. Build Completes use the management portal to navigate to your cloud service check the deployments tab to view the history of the deployments.
- Proposed as answer by Mostafa Asaduzzaman Monday, August 10, 2015 10:52 PM
- Marked as answer by ihaveanazurequestion Tuesday, August 11, 2015 3:19 PM
Monday, August 10, 2015 3:29 PMModerator