{"id":11635,"date":"2017-05-10T13:00:42","date_gmt":"2017-05-10T20:00:42","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/?p=11635"},"modified":"2019-02-14T15:27:17","modified_gmt":"2019-02-14T23:27:17","slug":"configure-microsoft-graph-applications-in-visual-studio-2017-preview","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/configure-microsoft-graph-applications-in-visual-studio-2017-preview\/","title":{"rendered":"Configure Microsoft Graph applications in the latest Visual Studio 2017 Preview"},"content":{"rendered":"<p>In Visual Studio, you can now easily configure your projects to access data across Office 365 and Azure Active Directory through the Microsoft Graph.<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/developer.microsoft.com\/graph\">Microsoft Graph<\/a> serves as the single gateway for developers to access APIs for Exchange, SharePoint, Azure AD, OneNote, Planner, Excel, and more. It provides one REST API endpoint across all of Microsoft\u2019s APIs, and includes access to insights and relationship analysis powered by its intelligent engine. This means that you no longer have to integrate individual Microsoft services separately into your apps, enabling you to leverage many different services easily and efficiently.<\/p>\n<p>So, if you want to build an app that can, for example, rate the importance of meetings on your calendar based on how relevant the attendees are to you, Visual Studio can help you get up and running fast, without leaving the IDE.<\/p>\n<p>All you need is to <a target=\"_blank\" href=\"https:\/\/www.visualstudio.com\/vs\/preview\/\">install the latest Visual Studio 2017 Preview<\/a>. Now let\u2019s take a look at what\u2019s new in Visual Studio 2017 Preview for Microsoft Graph.<\/p>\n<h2>Access from the Solution Explorer<\/h2>\n<p>Those of you who have previously used the Connected Services dialog to access the old Office 365 individual service endpoints will be familiar with the flow. When you open or create a project in Visual Studio, you will see Connected Services in the Solution Explorer. Clicking on it will take you to the Connected Services tab, in which you will see the \u201cAccess Office 365 Services with Microsoft Graph\u201d provider.<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Microsoft-Graph-Connected-Services-in-Solution-Explorer.png\"><img decoding=\"async\" title=\"Connected Services in Solution Explorer\" alt=\"Connected Services in Solution Explorer\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Microsoft-Graph-Connected-Services-in-Solution-Explorer.png\" \/><\/a><\/p>\n<p><a target=\"_blank\" href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Microsoft-Graph-Connected-Services-Provider.png\"><img decoding=\"async\" title=\"Connected Services Provider\" alt=\"Connected Services Provider\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Microsoft-Graph-Connected-Services-Provider.png\" width=\"640\" height=\"361\" \/><\/a><\/p>\n<p>The provider will guide you through a wizard to complete the configuration and get started with your new Microsoft Graph application\u2014without ever leaving the IDE! You will be able to use the Graph provider with any of the projects for Universal Windows Platform, ASP.NET and Web, Windows Store, Windows Phone, WPF, Android, and iOS.<\/p>\n<h2>Easily configure your app in Azure Active Directory<\/h2>\n<p><strong>The \u201cAccess Office 365 Services with Microsoft Graph\u201d provider enables you to sign<\/strong> into your Office 365 developer domain account and register your application in Azure Active Directory to access Microsoft Graph APIs. You can either create a new app in Azure AD, or use an existing one for your project.<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Microsoft-Graph-Configure-Application-in-AAD.png\"><img decoding=\"async\" title=\"Configure Application in AAD\" alt=\"Configure Application in AAD\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Microsoft-Graph-Configure-Application-in-AAD.png\" width=\"640\" height=\"440\" \/><\/a><\/p>\n<p>The Visual Studio experience uses the Azure AD endpoint for authenticating Microsoft Graph apps, and you can manage the apps you create and register from Visual Studio in your <a target=\"_blank\" href=\"https:\/\/portal.azure.com\/\">Azure Management Portal<\/a>. If you want to enable authentication against the Azure AD v2.0 endpoint for Microsoft Graph apps, please see the documentation on the topic <a target=\"_blank\" href=\"https:\/\/developer.microsoft.com\/graph\/docs\/authorization\/auth_register_app_v2\">here<\/a>.<\/p>\n<h2>Try new Office 365 services<\/h2>\n<p>You can set permissions in the wizard for the following resource types: Calendars, Contacts, Mail, Files, Sites, User, Group, Directory, Notes, Tasks, and People.<\/p>\n<p>Notes, Tasks, and People APIs are new additions to Microsoft Graph\u2019s list of available services. The Notes API provides access to OneNote notebooks, the Tasks API to Planner tasks, and the People API to aggregated context about a person from across mail, contacts, and social networks, based on the person\u2019s collaboration and business relationships. Please note that the People API is still in preview.<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Microsoft-Graph-Notes-Tasks-and-People.png\"><img decoding=\"async\" title=\"Notes Tasks and People\" alt=\"Notes Tasks and People\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Microsoft-Graph-Notes-Tasks-and-People.png\" width=\"640\" height=\"439\" \/><\/a><\/p>\n<h2>Acquire required dependencies immediately<\/h2>\n<p>Once you choose the permissions for your Graph app, Visual Studio will automatically acquire all required dependencies to use Microsoft Graph and add them to your project, one of them being the Microsoft Graph SDK. You will be able to see what was added under the \u201cConnected Services\u201d tab in your project\u2019s Solution Explorer. Visual Studio will also point you to documentation in a web browser on <a target=\"_blank\" href=\"https:\/\/developer.microsoft.com\/graph\/docs\/concepts\/office_365_connected_services\">how to get started developing a simple Graph app<\/a>.<\/p>\n<h2>Send us Feedback!<\/h2>\n<p>Microsoft Graph continues to grow its list of available services that can power your intelligent apps connected to the Microsoft cloud. And as always, Visual Studio wants to provide the best experience to get you started.<\/p>\n<p>We would love to hear any feedback you have on the new experience for Microsoft Graph in Visual Studio. Please use Visual Studio\u2019s \u201c<a target=\"_blank\" href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio-2017\">Report a Problem<\/a>\u201d or \u201cProvide a Suggestion\u201d features in the upper right corner of the IDE to send bugs or suggestions. You can then track responses to your feedback on the <a target=\"_blank\" href=\"https:\/\/developercommunity.visualstudio.com\/spaces\/8\/index.html\">developer community portal<\/a>.<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Microsoft-Graph-Feedback1.png\"><img decoding=\"async\" title=\"Feedback\" alt=\"Feedback\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Microsoft-Graph-Feedback1.png\" \/><\/a><\/p>\n<p>Thank You!<\/p>\n<table cellspacing=\"0\" cellpadding=\"2\" width=\"600\" border=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"150\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Ji-Eun-Kwon.jpg\" width=\"153\" height=\"188\" \/><\/td>\n<td valign=\"top\" width=\"450\"><strong>Ji Eun Kwon<\/strong>, Program Manager, Office Developer Tools\n<a target=\"_blank\" href=\"https:\/\/twitter.com\/Ji_Eun__Kwon\">@Ji_Eun__Kwon<\/a><\/p>\n<p>Ji Eun Kwon is the program manager for Developer Tools for Office and SharePoint. She joined Microsoft in 2013 and has since been focusing on developer experiences inside Visual Studio. Prior to owning the Office Developer Tools, she worked on Visual Studio\u2019s identity and licensing experiences<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>In Visual Studio, you can now easily configure your projects to access data across Office 365 and Azure Active Directory through the Microsoft Graph. Microsoft Graph serves as the single gateway for developers to access APIs for Exchange, SharePoint, Azure AD, OneNote, Planner, Excel, and more. It provides one REST API endpoint across all of [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":255385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1085,472,155,1029],"tags":[237,85,242,137,182,156],"class_list":["post-11635","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-gaming","category-visual-studio","category-web","tag-net","tag-asp-net","tag-azure","tag-html","tag-unity","tag-visual-studio-2017"],"acf":[],"blog_post_summary":"<p>In Visual Studio, you can now easily configure your projects to access data across Office 365 and Azure Active Directory through the Microsoft Graph. Microsoft Graph serves as the single gateway for developers to access APIs for Exchange, SharePoint, Azure AD, OneNote, Planner, Excel, and more. It provides one REST API endpoint across all of [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/11635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=11635"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/11635\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/255385"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=11635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=11635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=11635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}