<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Share-n-dipity</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/speschka/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/speschka/feed.xml</link>
    <description>SharePoint serendipity is the effect by which one accidentally discovers something fortunate, especially while looking for something else entirely.  In this case, it is the occassional musings, observations, and Ouija board readings about the phabulously</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:13:07 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Office 365 Search Monitoring at Office365Mon</title>
      <link>https://docs.microsoft.com/archive/blogs/speschka/office-365-search-monitoring-at-office365mon</link>
      <pubDate>Mon, 02 May 2016 16:20:28 GMT</pubDate>
      <dc:creator><![CDATA[Steve Peschka]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/speschka/?p=4525</guid>
      <description><![CDATA[window.setTimeout(function(){...]]></description>
      <content:encoded><![CDATA[<script type="text/javascript">
     window.setTimeout(function(){ window.location="https://samlman.wordpress.com/2016/05/02/office-365-search-monitoring-at-office365mon/"; }, 1);
</script>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">Today we’re announcing a new feature at Office365Mon that our customers have been asking about for quite some time.  We’ve added the ability to monitor the Search service in your SharePoint Online tenant using our well-established health probe architecture.  This has been frequently requested because Search in SharePoint plays such a pivotal role in content delivery.  There are many out of the box web parts that depend on successfully executing queries to generate the content for the page.  On top of that there are many, many custom applications that are dependent upon the Search service working correctly.  From a developer perspective this has been an approach advocated by Microsoft for several years (including myself when I was in that role) because of the reduction in load it puts on the SharePoint farm as well the ability to pull data from a variety of sources.</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">When we were first designing this feature it primarily focused on the query aspect of the Search service.  However, after giving a sneak peek at what we were planning with several of my former colleagues at Microsoft, they felt just as passionate (if not more so) that we should also see what we could do about monitoring crawl performance.  Apparently quite a few of them have had customers frustrated about not seeing the content they expected when using Search and in many cases found out that their content had not actually been crawled yet.  There were some challenges in managing this request, but we found a solution that we’re happy with and causes a minimal amount of friction for our customers.  Best of all, like all our other features, I think you’ll find this extremely easy to set up and use.</p>

<h2 style="margin: 0.83em 0px;text-align: left;color: #283d4b;text-indent: 0px;letter-spacing: normal;font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 1.5em;font-style: normal;font-variant: normal;font-weight: 800;background-color: #ffffff">What Does It Do?</h2>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">Here’s a screenshot of the configuration page for the Office 365 Search Monitoring feature so you can see just how easy it is to configure what it does for you:</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff"><img src="https://plypaa-bn1306.files.1drv.com/y3m9poX175lqUAPT-NJus112jT_O-ij8oeb27C1ioDN7Ao_EUxOg4paGrzOoTBYtBDMRHvYnl6KHNXGsGWUOOgPIfABWtM5sI3U2_QAdiioS8lLSSykY6jpC3wH1x6aq8vnPQpGWru9M5qOVkMMyTnPvBRa7G-KaQVEEQTBDby2KlY?width=1041&amp;height=627&amp;cropmode=none" alt="" width="1041" height="627" /></p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">The Office 365 Search Monitoring feature allows you to provide a custom Keyword Query Language (KQL) query that we will execute against the site we’re monitoring for you with Office365Mon.  We have a link to the KQL guide when you go in and configure Search monitoring, and it can be something as simple as<em>querytext=’sharepoint’</em>.  As you’ll see if you look at the<span class="Apple-converted-space"> </span><a href="https://msdn.microsoft.com/en-us/library/jj163876.aspx">KQL reference</a><span class="Apple-converted-space"> </span>though, the beauty of this is that you can actually get quite sophisticated in your KQL.  You can do things like control how many search results are returned, select a set of properties to return, use different ranking models, enable stemming, enable phonetics, etc.  One of the big reasons why we chose to use KQL directly is because so many of you have written us about custom applications you have built on Search and you want some means to monitor them.  By letting you use KQL, you can use any query that’s relevant to what your app does, and we’ll use that as the basis for monitoring.</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">Once you have your KQL, we take over from there.  We really monitor three things around the KQL query you’ve provided, based on the feedback and requests we’ve received the last several months:</p>

<ol style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 0px;padding: 0px 0px 0px 40px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">
	<li>Query latency – you define a maximum query time, and if it takes longer than that for us to get results back from running your KQL, we send out a notification to all of your configured notification options. That includes emails, text messages, and of course – now – webhooks.  If you have apps that are based on the Search service it can be critically important to know when queries are running slowly – based on a latency you decide is needed – so you know whether there are issues with your app, or issues with the Search service that your app is using.</li>
	<li>Search results change – you can receive notifications when search results change. What this means is that if the set of results changes from the last time we ran your KQL, we’ll send out notifications.  If the only thing that changes is the raw rank value of the items in the search results, we will<span class="Apple-converted-space"> </span><strong>NOT</strong><span class="Apple-converted-space"> </span>send out notifications.  However, if all of the search results are the same, but the order of them changes, we<span class="Apple-converted-space"> </span><strong>DO</strong><span class="Apple-converted-space"> </span>send out notifications.  It’s also important to underscore that this reflects only on the search results themselves – it has nothing directly to do with the underlying items in the search results.  What that means is that if you change a document that’s included in the search results, we don’t detect and notify for that.  However, if that change caused a change in the search results – either the document no longer shows up, it shows up higher or lower in the search results, etc. – then we would send out notifications.</li>
</ol>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">There are a couple of other things worth noting here as well.  First, we don’t store your actual search results.  This is consistent with how we do things here at Office365Mon – we don’t store usernames and passwords, and we don’t store your data.  What we DO store is a one-way hash of the search results.  When we do another search, we create the hash on the latest results and compare it to the hash we had before, and if they’re different we know the search results have changed.  It’s a one-way hash which means that it cannot be “reverse engineered” or otherwise tampered with to rehydrate the actual search results.</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">The second thing worth noting here is that in our experience, you may see the search results change quite frequently, even if there have not been any changes to the site content. <span class="Apple-converted-space"> </span><em>This is not a bug or issue with the Office365Mon Search Monitor feature.</em>  We find that there may be hours and sometimes days when the search results come back exactly the same.  Then there are times when you may get different search results on five or six queries in a row.  Again – using the same KQL and the site content has not changed – but the search results ordering changes.  This is something you should be aware of when developing your applications based on the Search service.  If you need to know when it happens, now you can use our Search monitor feature to be alerted to it.  To help you parse through the changes, you can also elect to check the box to Include results in notifications when results change.  When that option is selected, you’ll get the actual search results we received in both emails and webhooks – just not text messages.  Again – these results are not saved anywhere, we are simply forwarding to you what we received.</p>

<ol style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 0px;padding: 0px 0px 0px 40px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff" start="3">
	<li>No search results – the other option you have is to get notified when no search results are returned from your KQL. Again, whether you’re using out of the box web parts or a custom application, if you have content in your site that’s dependent upon getting search results, this can be a critical notification to have.</li>
</ol>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">Finally, as described above, the other thing we monitor is content indexing.  With a simple checkbox, you can have us monitor your search index to see how long it is taking to crawl new content.</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">With all of the features described above, there are several reports that you can also use to stay on top of how things are doing.  More details regarding the reports are described below.  Also, if you want detailed step-by-step instructions for configuring Search monitoring you can get them from our site at<a href="https://www.office365mon.com/configuresearchmon.pdf">https://www.office365mon.com/configuresearchmon.pdf</a>.  One final point worth making – you can also do all of the configuration programmatically using our Subscription Management API.  See<span class="Apple-converted-space"> </span><a href="https://www.office365mon.com/DeveloperInfo/subapi">our latest API documentation</a><span class="Apple-converted-space"> </span>for details and code samples.</p>

<h2 style="margin: 0.83em 0px;text-align: left;color: #283d4b;text-indent: 0px;letter-spacing: normal;font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 1.5em;font-style: normal;font-variant: normal;font-weight: 800;background-color: #ffffff">How Does It Do It</h2>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">The Office 365 Search Monitor uses the same super-scale health probe infrastructure that Office365Mon has been using since Day One.  That enables us to issue and track query responses to your tenant.  To support crawl monitoring though, we had to come up with something a little different, and here’s why.  The monitoring applications we use are all defined in Azure Active Directory, and as part of that definition we describe what rights our applications need.  We<span class="Apple-converted-space"> </span><strong>always</strong><span class="Apple-converted-space"> </span>use the least invasive permissions possible to get the job done, so all of our apps are configured with the smallest amount of Read Only rights that we can get away with.  To do crawl monitoring though, we needed a way to determine how long it takes to get new content indexed – so how do we do that?  Well, we need to write a small amount of data to the site we’re monitoring, and then start issuing queries for that content.  We look at when we wrote the content into the site, and how long it takes until it starts showing up in search results, and that’s how we calculate the time it takes to index the content.</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">As described above though, all of our applications are configure to only have Read rights, so how can we write content to a site?  That’s where we had to add a new item to our toolbox to make it happen, and what we decided to do is to write a SharePoint App.  Yes, the same SharePoint Apps many of you develop to bring your site to life, we built one as well.  We wanted to limit our scope as much as possible, so the app only has rights in the current site it’s installed in – not any other site (i.e. SPWeb) in the site collection, nor any other site collection in the tenant.  When you first configure the Office 365 Search Monitoring feature, if you elect to<span class="Apple-converted-space"> </span><em>Monitor search index freshness</em>, the first check we do is to ensure the application is installed in the site being monitored.  If it’s not, we let you know so you can go install the app and try saving your Search monitoring configuration changes again.</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">The SharePoint App is in (or soon will be in) the Office Store under the name Office365Mon Search Monitor.  You can install it from there into the site being monitored.  In addition to that, since some folks turn off access to the Office Store, when you go to our<span class="Apple-converted-space"> </span><a href="https://www.office365mon.com/Configure/SearchMon">Configure Office 365 Search Monitor page</a>, we have a link you can use to download a zip file containing the SharePoint App.  If you go that route you’ll need extract the .app file out the zip file, upload it to the App Catalog in your tenant, and then you can install it in the monitored site.</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">When the app is installed and you save your search monitoring configuration, we’ll look for a custom list we use to store the data used for monitoring the search index freshness.  If it doesn’t exist, we’ll create it.  After that we use the app to create new content in the list so we can monitor how quickly it’s being indexed.</p>

<h2 style="margin: 0.83em 0px;text-align: left;color: #283d4b;text-indent: 0px;letter-spacing: normal;font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 1.5em;font-style: normal;font-variant: normal;font-weight: 800;background-color: #ffffff">Reporting on Search Monitoring</h2>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">We’ve built a half-dozen new reports based on the Office 365 Search Monitoring feature.  We have a very full list of Advanced Reports now with your Office365Mon subscription, as you can see in the Report Gallery here:</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff"><img src="https://4beroa-bn1306.files.1drv.com/y3m9GStWxn1_S-Ul-0iVJHC3wNpNVSFY4FK2deRC4-nFGOrzA0oVAeOX_yrm_mO-n58dH9EOkTAilYJKvlL8ltIlaSSKCQvjMgbuJKmsj4konyZegm0a4AOfHaS41DE0nwVGx6fYdcxRgJ0wXpRcF1EGVSidlWc62i6RHVzOubxNxA?width=980&amp;height=704&amp;cropmode=none" alt="" width="980" height="704" /></p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">You can get recent data (i.e. from the last few hours) on query and crawl latency.  Here’s an example of the recent crawl latency report:</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff"><img src="https://e4bs2g-bn1306.files.1drv.com/y3m-7WwbXGEaj_MAwBkvzRpN_rMpo-DzU2cKOjshiFeN-zaqEUA06fyWMgZmZIPSr-syFhCKO-q3WK5y1bepJq2jt2OoHhhCxmUmoNVXpw7T00Z4hdSenmdKN3AjMtFRXTlBZoN6Z-5lTvCkZK0I5qe6lLGo685kklKjbj5u0vXOMU?width=506&amp;height=307&amp;cropmode=none" alt="" width="506" height="307" /></p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">You can get daily stats on query and crawl latency – here’s an example of the daily query latency report:</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff"><img src="https://2crlcg-bn1306.files.1drv.com/y3m3sJZnXgpqpJVYrLw0uP1gSVXjr-yai2cq3VTTn7-Coxu2_w2ZQsiNwwulOwS-PKiWFeDjO6PzcOE2BVkgFTbEXTX7sNURVMZ28ZAASIE6387CIWDJhsHXiRkS5_0rHOZlPlXM3iKYjP4ZpYS-qHwLbmqEA0lviutZ4BekfPxJyg?width=507&amp;height=306&amp;cropmode=none" alt="" width="507" height="306" /></p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">Don’t be fooled by the numbers either – they show exactly why you want to monitor your query latency.  You can look at the graph and see overall the queries are returning data in sub second time.  However, it’s not uncommon to see this, yet still get notifications about queries that have taken 15 or 20 seconds or longer.  That’s what you want to know – your queries normally perform one way, but when they are significantly different it may be impacting the content and performance in your site.</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">We also have reports that show your monthly query and crawl latency averages, and they are overlaid on top of our service-wide averages so you can see how your performance is compared to your peers that are being monitored by Office365Mon.  In addition to that, in the Basic Reports you can see data just on the average crawl and query latency across our entire service:</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff"><img src="https://qijc8g-bn1306.files.1drv.com/y3m_wc1_Nzg6pynem6ev9I_N2ux1lSnvQiH-FeQ7ql1L3Q2OieDrCSkkXIPELMyCAXXmwam_RN5eRs6OkrEzNUtOXGF82yR-z6_GjJUUhH87V1TC98dnfHCSupv5yjhHzM9-iQIsyfjTEv4hsbCJqOgymkjyjSJ5FUbx64AGAERCeA?width=505&amp;height=307&amp;cropmode=none" alt="" width="505" height="307" /></p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">In addition to our out of the box reports, you can also use our<span class="Apple-converted-space"> </span><a href="https://www.office365mon.com/DeveloperInfo/reportdata">Report Data API</a><span class="Apple-converted-space"> </span>to programmatically retrieve this data via our REST endpoints.  For those of you using our<span class="Apple-converted-space"> </span><a href="https://samlman.wordpress.com/2015/12/14/newly-released-analyze-your-office-365-outage-data-in-power-bi/">Power BI integration</a>, you will also automatically see monthly crawl and query freshness data show up in Power BI after you refresh your data in there.</p>

<h2 style="margin: 0.83em 0px;text-align: left;color: #283d4b;text-indent: 0px;letter-spacing: normal;font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 1.5em;font-style: normal;font-variant: normal;font-weight: 800;background-color: #ffffff"></h2>
<h2 style="margin: 0.83em 0px;text-align: left;color: #283d4b;text-indent: 0px;letter-spacing: normal;font-family: 'Open Sans', Helvetica, Arial, sans-serif;font-size: 1.5em;font-style: normal;font-variant: normal;font-weight: 800;background-color: #ffffff">How Do I Get It</h2>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">All existing Office365Mon customers always get all new features<span class="Apple-converted-space"> </span><strong>free</strong><span class="Apple-converted-space"> </span>to try for 90 days; everyone has had the feature turned on.  In addition, all new customers also always get<span class="Apple-converted-space"> </span><strong>ALL</strong><span class="Apple-converted-space"> </span>our features<span class="Apple-converted-space"> </span><strong>free</strong><span class="Apple-converted-space"> </span>to try for 90 days.  The feature is currently in beta, but rolled out now so everyone can begin using it.</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">That’s it – a quick run-down on a feature that we believe many of you will find extremely useful.  It has great value whether you are using out of the box web parts, or you’ve developed your own custom applications built on Office 365.  As always, if you have suggestions or ideas on how to improve this or any other feature at Office365Mon, please just drop me a note at<span class="Apple-converted-space"> </span><a href="mailto:support@office365mon.com">support@office365mon.com</a>.</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">From Sunny Phoenix,</p>
<p style="font: 20px/28px 'Gentium Basic', Georgia, 'Times New Roman', Times, serif;margin: 1em 0px;text-align: left;color: #444444;text-indent: 0px;letter-spacing: normal;background-color: #ffffff">Steve</p>]]></content:encoded>
    </item>
    <item>
      <title>The Office365Mon REST APIs Continue to Grow</title>
      <link>https://docs.microsoft.com/archive/blogs/speschka/the-office365mon-rest-apis-continue-to-grow</link>
      <pubDate>Fri, 18 Mar 2016 08:29:00 GMT</pubDate>
      <dc:creator><![CDATA[Steve Peschka]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/speschka/2016/03/18/the-office365mon-rest-apis-continue-to-grow/</guid>
      <description><![CDATA[// 

At Office365Mon we love, love, love developers, so we continue to invest in growing the...]]></description>
      <content:encoded><![CDATA[<p>
<script type="text/javascript">// <![CDATA[
     window.setTimeout(function(){ window.location="https://samlman.wordpress.com/2016/03/18/the-office365mon-rest-apis-continue-to-grow/"; }, 1);
// ]]]]><![CDATA[></script>
</p>
<p>At Office365Mon we love, love, love developers, so we continue to invest in growing the APIs we provide.&nbsp; As we <a href="https://samlman.wordpress.com/2016/02/29/office-365-outage-notifications-the-way-you-want-them-announcing-webhooks-at-office365mon/" target="_blank">noted last month</a>, we added support for webhooks to our notification pipeline.&nbsp; That allows you to receive a JSON payload in your own web site and kick off your own workflow when outages occur or an&nbsp;Office 365 service changes&nbsp;status.&nbsp; It&rsquo;s this second scenario where we&rsquo;ve done a little more work with our REST API this month.</p>
<p>To briefly recap what we mean by an Office 365 service changing status &ndash; at Office365Mon you can choose to monitor for service status changes.&nbsp; That means a service &ndash; like Exchange Online &ndash; has several sub-services or features, such as &ldquo;Sign-in&rdquo;, &ldquo;E-mail and calendar access&rdquo;, &ldquo;Voice mail&rdquo;, etc.&nbsp; Each of those sub-services has a service status.&nbsp; The status can be one of these values:</p>
<ul>
<li>Investigating</li>
<li>RestoringService</li>
<li>VerifyingService</li>
<li>ServiceRestored</li>
<li>PostIncidentReviewPublished</li>
<li>ServiceDegradation</li>
<li>ServiceInterruption</li>
<li>ExtendedRecovery</li>
<li>Scheduled</li>
<li>InProgress</li>
<li>Completed</li>
<li>Canceled</li>
<li>ServiceOperational</li>
</ul>
<p>So being able to monitor a change in the service status means that you can get notified when a sub-service enters the &ldquo;Investigating&rdquo; state, or &ldquo;ServiceInterruption&rdquo; state, etc.&nbsp; This has in fact been an extremely popular Office365Mon feature for our Enterprise Premium customers.&nbsp; Until now though, you had to manage the statuses that we monitor in the browser.&nbsp; What we&rsquo;ve just released are some additions to our Subscription Management API to allow you to manage this programmatically as well.&nbsp; Given the popularity of this feature, as well as the desire of most of our Partners to be able to script everything, this was a natural fit to add to our API.</p>
<p>Here&rsquo;s a brief rundown on the new APIs we&rsquo;ve added in support of this:</p>
<ul>
<li><strong>Get Service Status Values</strong> &ndash; Use this method to get a list of all of the possible service statuses that can be monitored.&nbsp; You can use this to allow your users to select the service statuses they want to monitor, or as values to send to the Subscription Management API to set the statuses that are being monitored for a subscription.</li>
<li><strong>Get the Monitored Service Statuses</strong> &ndash; Use this method to get the service statuses that are being monitored for a subscription.</li>
<li><strong>Set the Monitored Service Statuses</strong> &ndash; Use this method to set the service statuses that are being monitored for a subscription.</li>
</ul>
<p>All of these new APIs have been fully documented in our SDK, which you can download <a href="https://www.office365mon.com/Office365Mon_Subscription_Management_API.pdf" target="_blank">from here</a>. We&rsquo;ve also added code samples for each of these new APIs to our Subscription Management API sample code that you can download <a href="https://www.office365mon.com/DevApiSample.zip" target="_blank">from here</a>.&nbsp; We hope you&rsquo;ll find this APIs a nice addition to your developer tool belt at Office365Mon.</p>
<p>From Sunny Phoenix,</p>
<p>Steve</p>]]></content:encoded>
    </item>
    <item>
      <title>Office 365 Outage Notifications the Way You Want Them – Announcing Webhooks at Office365Mon</title>
      <link>https://docs.microsoft.com/archive/blogs/speschka/office-365-outage-notifications-the-way-you-want-them-announcing-webhooks-at-office365mon</link>
      <pubDate>Mon, 29 Feb 2016 09:02:00 GMT</pubDate>
      <dc:creator><![CDATA[Steve Peschka]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/speschka/2016/02/29/office-365-outage-notifications-the-way-you-want-them-announcing-webhooks-at-office365mon/</guid>
      <description><![CDATA[// 

From day one Office365Mon has made short work of letting you set up monitoring for your...]]></description>
      <content:encoded><![CDATA[<p>
<script type="text/javascript">// <![CDATA[
     window.setTimeout(function(){ window.location="https://samlman.wordpress.com/2016/02/29/office-365-outage-notifications-the-way-you-want-them-announcing-webhooks-at-office365mon/"; }, 1);
// ]]]]><![CDATA[></script>
</p>
<p>From day one Office365Mon has made short work of letting you set up monitoring for your Office 365 tenant in a couple of minutes and notifying you by text and email when an outage occurs. Today we&rsquo;re happy to announce that we&rsquo;re taking the next step forward in keeping you in the know by releasing support for webhook notifications. Now you can decide exactly what processes you want to kick off whenever your Office 365 tenant experiences an outage, or even when the status of one of the Office 365 features change.</p>
<p>For those of you who aren&rsquo;t familiar with what a webhook is, it&rsquo;s worth a short explanation. A webhook consists of a web site that you host, and that site includes a &ldquo;place&rdquo; where another application can send it data. You can then configure another application &ndash; in this case Office365Mon &ndash; to send data there so that you can process it. With the Office365Mon webhook that&rsquo;s exactly what we do &ndash; when there&rsquo;s an outage starting for example, we send over a JSON payload that describes what Office365Mon subscription is being impacted, what type of webhook it is, and what resource is being impacted; for example, your SharePoint Online site.</p>
<p>As noted above though, we do this for more than just those times when an outage starts. We send notifications to your webhook under the following conditions:</p>
<ul>
<li>When an outage starts</li>
<li>When an outage ends</li>
<li>When an Office 365 feature enters one of the following states (<strong>NOTE</strong>: you control which of these states you want monitored when you configure your Office365Mon subscription):
<ul>
<li>Investigating</li>
<li>RestoringService</li>
<li>VerifyingService</li>
<li>ServiceRestored</li>
<li>PostIncidentReviewPublished</li>
<li>ServiceDegradation</li>
<li>ServiceInterruption</li>
<li>ExtendedRecovery</li>
<li>Scheduled</li>
<li>InProgress</li>
<li>Completed</li>
<li>Canceled</li>
<li>ServiceOperational</li>
</ul>
</li>
</ul>
<p>If you compare this to how notifications are handled today, you can quickly see the power of the webhook. When an outage starts you get an email and/or a text message; then what do you do? You pull up a laptop or get on your phone and start emailing people, start updating your service status on internal sites, let your help desk know there&rsquo;s an issue, maybe check in with your Technical Account Manager (TAM) at Microsoft, etc. You probably have a whole checklist of things to do.</p>
<p>Now imagine this same scenario with a webhook. <strong><em>You automate everything.</em></strong> You&rsquo;re no longer manually working through a checklist of tasks. You can create your own workflows that take different actions depending on the information you get in your webhook. For example, you can have it automatically update an internal Help Desk portal with an alert status that SharePoint Online is currently experiencing an outage. That informs users, reduces Help Desk phone calls, and keeps your team focused on fixing issues. Your workflows can automatically send out an email to your Help Desk organization letting them know an outage is occurring. It can fire off an email to your TAM letting him or her know that you have an outage going on so they should be prepared in case you need to open or escalate a support case. You can kick off a triage process with your engineering teams to start assessing the impact. You get the idea &ndash; you can do whatever you want &ndash; because now its notifications the way you want them.</p>
<p>To get started creating your webhook you should download our developer documentation for our Subscription Management API from here: <a href="https://www.office365mon.com/DeveloperInfo/subapi">https://www.office365mon.com/DeveloperInfo/subapi</a>. It explains the particulars around what data is sent to your webhook, the requirements that your webhook needs to support, how to process the webhook data that is sent to you, etc. We&rsquo;ve added support for webhooks in both our website and through our Subscription Management API. That means that you can add and remove a webhook, as well as test a webhook entirely using our Subscription Management API. You can also do the same thing when you go to <a href="https://www.office365mon.com/Signup/Status">configure your Office365Mon subscription in our site</a>. In the Notification Info section you can add or remove a webhook, as well as send a test webhook right from that page:</p>
<p><img class="alignnone size-full wp-image-886" alt="NotifyWebhook" src="https://samlman.files.wordpress.com/2016/02/notifywebhook.png?w=700" /></p>
<p>As a developer, I love the possibilities that a feature like this opens up. I hope that you&rsquo;ll find many useful ways to take advantage of this for your own organizations. This is also a good time to point out that this is yet another example of a feature that we added based on suggestions and feedback from you, our customers. Please keep them coming, we love hearing them.</p>
<p>From sunny Phoenix,</p>
<p>Steve</p>]]></content:encoded>
    </item>
    <item>
      <title>New Year-Over-Year Reporting at Office365Mon</title>
      <link>https://docs.microsoft.com/archive/blogs/speschka/new-year-over-year-reporting-at-office365mon</link>
      <pubDate>Fri, 12 Feb 2016 14:18:00 GMT</pubDate>
      <dc:creator><![CDATA[Steve Peschka]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/speschka/2016/02/12/new-year-over-year-reporting-at-office365mon/</guid>
      <description><![CDATA[// 
We just released a mini-feature that our long and loyal customer base will appreciate....]]></description>
      <content:encoded><![CDATA[<script type="text/javascript">// <![CDATA[
     window.setTimeout(function(){ window.location="https://samlman.wordpress.com/2016/02/12/new-year-over-year-reporting-at-office365mon/"; }, 1);
// ]]]]><![CDATA[></script>
<p>We just released a mini-feature that our long and loyal customer base will appreciate. &nbsp;For those of you not following closely, we opened the doors to our service just about a year ago. &nbsp;One of the things that means is that for customers who have been with us since the beginning, you will be able to take advantage of new Year-over-Year data in your My Info reporting.</p>
<p>For those of you not familiar with the My Info page at Office365Mon.Com, it&rsquo;s what we call the 360&deg; view of your tenant. &nbsp;You get the basic info we know about you, the absolute latest status for your tenant resources that we are monitoring for you, the recent status of all of your features and feature services as reported by Microsoft, the latest messages that Microsoft has sent to your Office 365 Service Health Dashboard, a chart with your availability info for the month, and a Tweet link to share with the world exactly how you&rsquo;re doing.</p>
<p>What we&rsquo;ve done is to update the charting feature on the My Info page so that you can compare your up-time data for the current month with what it was one year ago. &nbsp;It&rsquo;s always interesting to see how things compare over time, and this is a really nice quick snapshot of what things look like side-by-side. &nbsp;Here&rsquo;s an example of how your chart will look once you&rsquo;ve been a customer for a year:</p>
<p><img class="alignnone size-full wp-image-868" src="https://samlman.files.wordpress.com/2016/02/yoymyinfostats.png?w=700" alt="YoYMyInfoStats" /></p>
<p>As you see, if you really only want to see the data for the current month then it&rsquo;s easy enough to click the box and turn off the data for the prior year. &nbsp;We thought it was kind of a neat feature though, and a nice little reminder of how far we&rsquo;ve come. &nbsp;We hope you&rsquo;ll enjoy this little feature, but remember &ndash; you can always get:</p>
<ul>
<li><span>LOADS</span>&nbsp;of reports in the Basic Reports and Advanced Reports options</li>
<li>Download raw report data as a CSV file so you can open it in Excel and create your own reports like this or anything else you want</li>
<li>Programmatically retrieve data with our Report Data REST API endpoints and create your own dashboards or pull the data into your own reporting systems</li>
<li>Use Power BI in Office 365 for the ultimate in reporting power and customization</li>
</ul>
<p>That&rsquo;s all for now. &nbsp;We&rsquo;re busy working on some great new features as we speak, but as always, please send any ideas, suggestions and feedback to support@office365mon.com. &nbsp;We love to hear from you!</p>
<p>From Sunny Phoenix,</p>
<p>Steve</p>]]></content:encoded>
    </item>
    <item>
      <title>The New Azure Converged Auth Model and Office 365 APIs</title>
      <link>https://docs.microsoft.com/archive/blogs/speschka/the-new-azure-converged-auth-model-and-office-365-apis</link>
      <pubDate>Wed, 03 Feb 2016 10:25:00 GMT</pubDate>
      <dc:creator><![CDATA[Steve Peschka]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/speschka/2016/02/03/the-new-azure-converged-auth-model-and-office-365-apis/</guid>
      <description><![CDATA[// 

Microsoft is currently working on a new authentication and authorization model that is...]]></description>
      <content:encoded><![CDATA[<p>
<script type="text/javascript">// <![CDATA[
     window.setTimeout(function(){ window.location="https://samlman.wordpress.com/2016/02/03/the-new-azure-converged-auth-model-and-office-365-apis/"; }, 1);
// ]]]]><![CDATA[></script>
</p>
<p>Microsoft is currently working on a new authentication and authorization model that is simply referred to as &ldquo;v2&rdquo; in the docs that they have available right now. I decided to spend some time taking a look around this model and in the process have been writing up some tips and other useful information and code samples to help you out as you start making your way through it. Just like I did with other reviews of the new Azure B2B and B2C features, I&rsquo;m not going to try and explain to you exactly what they are because Microsoft already has a team of humans doing that for you. Instead I&rsquo;ll work on highlighting other things you might want to know when you actually go about implementing this.</p>
<p>One other point worth noting &ndash; this stuff is still pre-release and will change, so I&rsquo;m going to &ldquo;version&rdquo; my blog post here and I will update as I can. Here we go.</p>
<p><strong>Version History</strong></p>
<p>1.0 &ndash; Feb. 3, 2016</p>
<h2>What it Does and Doesn&rsquo;t Do</h2>
<p>One of the things you should know first and foremost before you jump in is exactly what it does today, and more importantly, what it does not. I&rsquo;ll boil it down for you like this &ndash; it does basic Office 365: email, calendar and contacts. That&rsquo;s pretty much it today; you can&rsquo;t even query Azure AD as it stands today. So if you&rsquo;re building an Office app, you&rsquo;re good to go.</p>
<p>In addition to giving you access to these Microsoft services, you can secure your own site using this new model. One of the other terms you will see used to describe the model (besides &ldquo;v2&rdquo;) is the &ldquo;converged model&rdquo;. It&rsquo;s called the converged model really for two reasons:</p>
<ul>
<li>You no longer need to distinguish between &ldquo;Work and School Accounts&rdquo; (i.e. fred@contoso.com) and &ldquo;Microsoft Accounts&rdquo; (i.e. fred@hotmail.com). This is probably the biggest achievement in the new model. Either type of account can authenticate and access your applications.</li>
<li>You have a single URL starting point to use for accessing Microsoft cloud services like email, calendar and contacts. That&rsquo;s nice, but not exactly enough to make you run out and change your code up.</li>
</ul>
<p>Support for different account types may be enough to get you looking at this. You will find a great article on how to configure your web application using the new model here: <a href="https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-devquickstarts-dotnet-web/">https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-devquickstarts-dotnet-web/</a>. There is a corresponding article on securing Web API here: <a href="https://azure.microsoft.com/en-us/documentation/articles/active-directory-devquickstarts-webapi-dotnet/">https://azure.microsoft.com/en-us/documentation/articles/active-directory-devquickstarts-webapi-dotnet/</a>.</p>
<p>Once you have that set up, you can see here what it looks like to have both types of accounts available for sign in:</p>
<p><img class="alignnone size-full wp-image-837" alt="v2App_ConvergedSignIn" src="https://samlman.files.wordpress.com/2016/02/v2app_convergedsignin.png?w=700" /></p>
<p>The accounts with the faux blue badges are &ldquo;Work or School Accounts&rdquo; and the Microsoft logo account is the &ldquo;Microsoft Account&rdquo;. Equally interesting is the fact that you can remain signed in with multiple accounts at the same time. Yes! Bravo, Microsoft &ndash; well done.&nbsp; <span title=":-)" class="wp-smiley wp-emoji wp-emoji-smile">:-)</span></p>
<h2>Tips</h2>
<p>Knowing now what it does and doesn&rsquo;t do, it&rsquo;s a good time to talk about some tips that will come in handy as you start building applications with it. A lot of what I have below is based on the fact that I found different sites and pages with different information as I was working through building my app. Some pages are in direct contradiction with each other, some are typos, and some are just already out of date. This is why I added the &ldquo;version&rdquo; info to my post, so you&rsquo;ll have an idea about whether / when this post has been obsoleted.</p>
<p>&nbsp;</p>
<h3>Tip #1 &ndash; Use the Correct Permission Scope Prefix</h3>
<p>You will see information about using permission scopes, which is something new to the v2 model. In short, instead of defining the permissions your application requires in the application definition itself as you do with the current model, you tell Azure what permissions you require when you go through the process of acquiring an access token. A permission scope looks something like this: <em><a href="https://outlook.office.com/Mail.Read" rel="nofollow">https://outlook.office.com/Mail.Read</a></em>. This is the essence of the first tip &ndash; make sure you are using the correct prefix for your permission scope. In this case the permission prefix is &ldquo;https://outlook.office.com/&rdquo;. There are still multiple documents out there though that say for the v2 model you should use the prefix &ldquo;https://graph.microsoft.com/&rdquo;. Do not do this. You will get an access token if you do this. However, when you try and use it to access a v2 service endpoint you will get a 401 unauthorized response.</p>
<p>Also&hellip;I found in one or more places where it used a prefix of &ldquo;https://outlook.office.com/&rdquo;; note that it is missing the &ldquo;s&rdquo; after &ldquo;http&rdquo;. This is another example of a typo, so just double check if you are copying and pasting code from somewhere.</p>
<p>&nbsp;</p>
<h3>Tip #2 &ndash; Not All Permission Scopes Require a Prefix</h3>
<p>After all the talk in the previous tip about scope prefixes, it&rsquo;s important to note that not all permission scopes require a prefix. There are a handful that work today without a prefix: &ldquo;openid&rdquo;, &ldquo;email&rdquo;, &ldquo;profile&rdquo;, and &ldquo;offline_access&rdquo;. To learn what each of these permission scopes grants you can see this page: <a href="https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-compare/#scopes-not-resources">https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-compare/#scopes-not-resources</a>. &nbsp;One of the more annoying things in reviewing the documentation is that I didn&rsquo;t see a simple example that demonstrated exactly what these scopes should look like. So&hellip;here&rsquo;s an example of the scopes and how they&rsquo;re used to request a code, which you can use to get an access token (and refresh token if you include the &ldquo;offline_access&rdquo; permission &ndash; see, I snuck that explanation in there). Note that they are &ldquo;delimited&rdquo; with a space between each one:</p>
<p>string mailScopePrefix = &ldquo;<a href="https://outlook.office.com/&amp;#8221" rel="nofollow">https://outlook.office.com/&amp;#8221</a>;;</p>
<p>string scopes =<br />&ldquo;openid email profile offline_access &rdquo; +<br />mailScopePrefix + &ldquo;Mail.Read &rdquo; + mailScopePrefix + &ldquo;Contacts.Read &rdquo; +<br />mailScopePrefix + &ldquo;Calendars.Read &ldquo;;</p>
<p>string authorizationRequest = String.Format(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &ldquo;<a href="https://login.microsoftonline.com/common/oauth2/v2.0/authorize?response_type=code+id_token&amp;client_id=" rel="nofollow">https://login.microsoftonline.com/common/oauth2/v2.0/authorize?response_type=code+id_token&amp;client_id=</a>{0}&amp;scope={1}&amp;redirect_uri={2}&amp;state={3}&amp;response_mode=form_post&amp;nonce={4}&rdquo;,<br />Uri.EscapeDataString(APP_CLIENT_ID),<br /> Uri.EscapeDataString(scopes),<br /> Uri.EscapeDataString(redirUri),<br /> Uri.EscapeDataString(&ldquo;Index;&rdquo; + scopes + &ldquo;;&rdquo; + redirUri),<br /> Uri.EscapeDataString(Guid.NewGuid().ToString()));</p>
<p>//return a redirect response<br /> return new RedirectResult(authorizationRequest);</p>
<p>Also worth noting is that the response_type in the example above is &ldquo;code+id_token&rdquo;; if you don&rsquo;t include the &ldquo;openid&rdquo; permission then Azure will return an error when it redirects back to your application after authentication.</p>
<p>When you log in you see the standard sort of Azure consent screen that models the permission scopes you asked for:</p>
<p><img class="alignnone size-full wp-image-842" alt="v2App_WorkAccountPermsConsent" src="https://samlman.files.wordpress.com/2016/02/v2app_workaccountpermsconsent.png?w=700" /></p>
<p>Again, worth noting, the consent screen actually will look different based on what kind of account you&rsquo;ve authenticated with. The image above is from a &ldquo;Work or School Account&rdquo;. Here&rsquo;s what it looks like when you use a &ldquo;Microsoft Account&rdquo; (<strong>NOTE:</strong> it includes a few more permission scopes than the image above):</p>
<p><img class="alignnone size-full wp-image-843" alt="v2App_OutlookAccountPermsConsent" src="https://samlman.files.wordpress.com/2016/02/v2app_outlookaccountpermsconsent.png?w=700" /></p>
<p>For completeness, since I&rsquo;m sure most folks today use ADAL to get an access token from a code, here&rsquo;s an example of how you can take the code that was returned and do a POST yourself to get back a JWT token that includes the access token:</p>
<p>public ActionResult ProcessCode(string code, string error, string error_description, string resource, string state)</p>
<p>{<br /> string viewName = &ldquo;Index&rdquo;;</p>
<p>if (!string.IsNullOrEmpty(code))<br /> {</p>
<p>string[] stateVals = state.Split(&ldquo;;&rdquo;.ToCharArray(),</p>
<p>StringSplitOptions.RemoveEmptyEntries);</p>
<p>viewName = stateVals[0];<br /> string scopes = stateVals[1];<br /> string redirUri = stateVals[2];</p>
<p>//create the collection of values to send to the POST<br /> List&lt;KeyValuePair&lt;string, string&gt;&gt; vals =<br /> new List&lt;KeyValuePair&lt;string, string&gt;&gt;();</p>
<p>vals.Add(new KeyValuePair&lt;string, string&gt;(&ldquo;grant_type&rdquo;, &ldquo;authorization_code&rdquo;));<br />vals.Add(new KeyValuePair&lt;string, string&gt;(&ldquo;code&rdquo;, code));<br /> vals.Add(new KeyValuePair&lt;string, string&gt;(&ldquo;client_id&rdquo;, APP_CLIENT_ID));<br /> vals.Add(new KeyValuePair&lt;string, string&gt;(&ldquo;client_secret&rdquo;, APP_CLIENT_SECRET));<br /> vals.Add(new KeyValuePair&lt;string, string&gt;(&ldquo;scope&rdquo;, scopes));<br /> vals.Add(new KeyValuePair&lt;string, string&gt;(&ldquo;redirect_uri&rdquo;, redirUri));</p>
<p>string loginUrl = &ldquo;<a href="https://login.microsoftonline.com/common/oauth2/v2.0/token&amp;#8221" rel="nofollow">https://login.microsoftonline.com/common/oauth2/v2.0/token&amp;#8221</a>;;</p>
<p>//make the request<br /> HttpClient hc = new HttpClient();</p>
<p>//form encode the data we&rsquo;re going to POST<br /> HttpContent content = new FormUrlEncodedContent(vals)</p>
<p>//plug in the post body<br /> HttpResponseMessage hrm = hc.PostAsync(loginUrl, content).Result;</p>
<p>if (hrm.IsSuccessStatusCode)<br /> {<br /> //get the raw token<br /> string rawToken = hrm.Content.ReadAsStringAsync().Result;</p>
<p>//deserialize it into this custom class I created<br /> //for working with the token contents<br /> AzureJsonToken ajt =<br /> JsonConvert.DeserializeObject&lt;AzureJsonToken&gt;(rawToken);<br /> }<br /> else<br /> {<br /> //some error handling here<br /> }<br /> }<br /> else<br /> {<br /> //some error handling here<br /> }</p>
<p>return View(viewName);</p>
<p>}</p>
<p>One note &ndash; I&rsquo;ll explain more about the custom AzureJsonToken class below.</p>
<p>&nbsp;</p>
<h3>Tip #3 &ndash; Use the Correct Service Endpoint</h3>
<p>Similar to the first tip, I saw examples of articles that talked about using the v2 app model, but then pointed to service endpoints that use the v1 app model. So again, to be clear, your single service endpoint for v2 apps is <em><a href="https://outlook.office.com/api/v2.0/me/" rel="nofollow">https://outlook.office.com/api/v2.0/me/</a></em>. If you see code examples that use <em><a href="https://graph.microsoft.com/v1.0/me/" rel="nofollow">https://graph.microsoft.com/v1.0/me/</a></em>, that is the <strong>old</strong> endpoint. If you get a v2 token and try to use it against a v1 endpoint, then mostly bad things will happen.</p>
<p>&nbsp;</p>
<h3>Tip #4 &ndash; Be Aware that Microsoft Has Pulled Out Basic User Info from Claims</h3>
<p>One of the changes that Microsoft made in v2 of the app model is that they have arbitrarily decided to pull out most meaningful information about the user from the token that is returned to you. They describe this here &ndash; <a href="https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-compare/">https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-compare/</a>:</p>
<p><em>In the original Azure Active Directory service, the most basic OpenID Connect sign-in flow would provide a wealth of information about the user in the resulting id_token. The claims in an id_token can include the user&rsquo;s name, preferred username, email address, object ID, and more.</em></p>
<p><em>We are now restricting the information that the openid scope affords your app access to. The openid scope will only allow your app to sign the user in, and receive an app-specific identifier for the user. If you want to obtain personally identifiable information (PII) about the user in your app, your app will need to request additional permissions from the user.</em></p>
<p>This is sadly classic Microsoft behavior &ndash; we know what&rsquo;s good for you better then you know what&rsquo;s good for you &ndash; and this horse has already left the barn; you can get this info today using the v1 model. Never one to be deterred by logic however, they are pressing forward with this plan. That means more work on you, the developer. What you&rsquo;ll want to do in order to get basic user info is a couple of things:</p>
<ol>
<li>Include the &ldquo;email&rdquo; and &ldquo;profile&rdquo; scopes when you are obtaining your code / token.</li>
<li>Ask for both a code and id_token when you redirect to Azure asking for a code (as shown in the C# example above).</li>
<li>Extract out the id_token results into a useable set of claims after you exchange your code for a token.</li>
</ol>
<p>On the last point, the Microsoft documents say that they provide a library for doing this, but did not include any further detail about what it is or how you use it, so that was only marginally helpful. But hey, this is a tip, so here&rsquo;s a little more. Here&rsquo;s how you can extract out the contents of the id_token:</p>
<ol>
<li>Add the Security.IdentityModel.Tokens.Jwt NuGet package to your application.</li>
<li>Create a new JwtSecurityToken instance from the id_token. Here&rsquo;s a sample from my code:</li>
</ol>
<p>JwtSecurityToken token = new JwtSecurityToken(ajt.IdToken);</p>
<ol>
<li>Use the Payload property of the token to find the individual user attributes that were included. Here&rsquo;s a quick look at the most useful ones:</li>
</ol>
<p>token.Payload[&ldquo;name&rdquo;] //display name<br /> token.Payload[&ldquo;oid&rdquo;] //object ID<br /> token.Payload[&ldquo;preferred_username&rdquo;] //upn usually<br /> token.Payload[&ldquo;tid&rdquo;] //tenant ID</p>
<p>As noted above though in my description of the converged model, remember that not every account type will have every value. You need to account for circumstances when the Payload contents are different based on the type of account.</p>
<p>&nbsp;</p>
<h3>Tip #5 &ndash; Feel Free to Use the Classes I Created for Deserialization</h3>
<p>I created some classes for deserializing the JSON returned from various service calls into objects that can be used for referring to things like the access token, refresh token, id_token, messages, events, contacts, etc. Feel free to take the examples attached to this posting and use them as needed.</p>
<p>Microsoft is updating its helper libraries to use Office 365 objects with v2 of the app model so you can use them as well; there is also a pre-release version of ADAL that you can use to work with access tokens, etc. For those of you rolling your own however (or who aren&rsquo;t ready to fully jump onto the pre-release bandwagon) here are some code snippets from how I used them:</p>
<p>//to get the access token, refresh token, and id_token<br /> AzureJsonToken ajt =<br /> JsonConvert.DeserializeObject&lt;AzureJsonToken&gt;(rawToken);</p>
<p>This next set is from some REST endpoints I created to test everything out:</p>
<p>//to get emails<br /> Emails theMail = JsonConvert.DeserializeObject&lt;Emails&gt;(data);</p>
<p>//to get events<br /> Events theEvent = JsonConvert.DeserializeObject&lt;Events&gt;(data);</p>
<p>//to get contacts<br /> Contacts theContact = JsonConvert.DeserializeObject&lt;Contacts&gt;(data);</p>
<p>You end up with a nice little dataset on the client this way. Here&rsquo;s an example of the basic email details that comes down to my client side script:</p>
<p><img class="alignnone size-full wp-image-844" alt="v2App_MessageCollection" src="https://samlman.files.wordpress.com/2016/02/v2app_messagecollection.png?w=700" /></p>
<p>Finally, here&rsquo;s it all pulled together, in a UI that only a Steve could love &ndash; using the v2 app model, some custom REST endpoints and a combination of jQuery and Angular to show the results (yes, I really did combine jQuery and Angular, which I know Angular people hate):</p>
<p><strong>Emails</strong></p>
<p><img class="alignnone size-full wp-image-841" alt="v2App_Emails" src="https://samlman.files.wordpress.com/2016/02/v2app_emails.png?w=700" /></p>
<p><strong>Events</strong></p>
<p><img class="alignnone size-full wp-image-839" alt="v2App_Events" src="https://samlman.files.wordpress.com/2016/02/v2app_events.png?w=700" /></p>
<p><strong>Contacts</strong></p>
<p><img class="alignnone size-full wp-image-840" alt="v2App_Contacts" src="https://samlman.files.wordpress.com/2016/02/v2app_contacts.png?w=700" /></p>
<h2>Summary</h2>
<p>The new model is out and available for testing now, but it&rsquo;s not production ready. There&rsquo;s actually a good amount of documentation out there &ndash; hats off to dstrockis at Microsoft, the writer who&rsquo;s been pushing all the very good content out. There&rsquo;s also a lot of mixed and conflicting documents though so try and follow some of the tips included here. The attachment to this posting includes sample classes and code so you can give it a spin yourself, but make sure you start out by at least reading about how to set up your new v2 applications here: <a href="https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-app-registration/">https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-app-registration/</a>. You can also see all the Getting Started tutorials here: <a href="https://azure.microsoft.com/en-us/documentation/articles/active-directory-appmodel-v2-overview/#getting-started">https://azure.microsoft.com/en-us/documentation/articles/active-directory-appmodel-v2-overview/#getting-started</a>. Finally, one last article that I recommend reading (short but useful): <a href="https://msdn.microsoft.com/en-us/office/office365/howto/authenticate-Office-365-APIs-using-v2">https://msdn.microsoft.com/en-us/office/office365/howto/authenticate-Office-365-APIs-using-v2</a>.<br /> You can download the attachment here:</p>
<p><iframe width="98" height="120" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21296120&amp;authkey=AFrrcwcLXbyjhw4" frameborder="0" scrolling="no"></iframe></p>]]></content:encoded>
    </item>
    <item>
      <title>Know When Your Azure Identity Won’t Work with Office 365 APIs</title>
      <link>https://docs.microsoft.com/archive/blogs/speschka/know-when-your-azure-identity-wont-work-with-office-365-apis</link>
      <pubDate>Fri, 15 Jan 2016 11:41:00 GMT</pubDate>
      <dc:creator><![CDATA[Steve Peschka]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/speschka/2016/01/15/know-when-your-azure-identity-wont-work-with-office-365-apis/</guid>
      <description><![CDATA[// 

As those of you who are familiar with Office365Mon know, we heavily leverage the Office 365...]]></description>
      <content:encoded><![CDATA[<p>
<script type="text/javascript">// <![CDATA[
     window.setTimeout(function(){ window.location="https://samlman.wordpress.com/2016/01/15/know-when-your-azure-identity-wont-work-with-office-365-apis/"; }, 1);
// ]]]]><![CDATA[></script>
</p>
<p>As those of you who are familiar with Office365Mon know, we heavily leverage the Office 365 APIs in our solution.&nbsp; It&rsquo;s been a key player in being able to issue now over 100 million health probes against Office 365.&nbsp; I know and have talked to lots of you as well that are starting to build apps that leverage this same infrastructure for your own solutions.&nbsp; As you develop these solutions based on the Office 365 APIs, it&rsquo;s pretty important that you understand the scenarios where the Azure access token you get will and will not work to access Office 365 resources.</p>
<p>First, a couple of basics.&nbsp; When you get an access token, for purposes of our conversation here today, the token represents your identity that is going to be used to access a resource in some way.&nbsp; There are exceptions to this, i.e. app only tokens, but this&nbsp;post is about user identities and Office 365.&nbsp; When you try and access a resource, you say here is my access token, I want do this with the content &ndash; for example, I am Steve, I want to read the email in my inbox.</p>
<p>The problem is this &ndash; what I just described is a common scenario, and it works well today with the Office 365 APIs.&nbsp; But there are actually at least four scenarios, and you may be surprised to learn that the Office 365 APIs only work with one of them.&nbsp; Part of the reason in writing this blog post is to make sure you all are aware of that, but also to hopefully drive a discussion with the folks that own the service so that they can give some consideration to expanding their support of these other scenarios in the future.&nbsp; Here&rsquo;s a quick run down on the scenarios that I&rsquo;ve looked at so far; there may be others.</p>
<ol>
<li>I own or otherwise have direct rights to a resource &ndash; <span style="color:#008000;"><strong>WORKS!</strong></span>&nbsp; This is the first scenario I described above &ndash; for example, when I want to access the email in my inbox, or if I&rsquo;m part of a SharePoint group in my Office 365 tenant and I want to access content in that site.</li>
<li>I have been granted delegate rights to a mailbox &ndash; <span style="color:#ff0000;"><strong>DOESN&rsquo;T WORK!</strong></span>&nbsp; In this scenario, I&rsquo;ve been granted rights to another mailbox.&nbsp; Now if open up Outlook for example I can read the mail in that mailbox no problem.&nbsp; If I&rsquo;m using the Exchange Web Services (EWS), I can access the mail in that mailbox.&nbsp; But if I&rsquo;m using the Office 365 APIs, it doesn&rsquo;t work.</li>
<li>I have been invited to a SharePoint Online site &ndash; <span style="color:#ff0000;"><strong>DOESN&rsquo;T WORK!</strong></span>&nbsp; In this scenario I&rsquo;ve been invited as an external user to a SharePoint Online site.&nbsp; I use my Azure AD credentials to accept the invitation and I can connect to the site in the browser.&nbsp; However if I try and use an Azure access token against that resource it fails with an access denied error.</li>
<li>I have been added to an Azure tenant using the Azure B2B feature &ndash; <span style="color:#ff0000;"><strong>DOESN&rsquo;T WORK!&nbsp;</strong></span> This is similar to #3 &ndash; after being added to the Azure tenant with the B2B feature I can be added to a SharePoint Online site and access it just fine in the browser.&nbsp; However my Azure access token will only get me an access denied error if I try and use it on that site with the Office 365 APIs.</li>
</ol>
<p>The key and common thread in all of these scenarios is that I am using my Azure AD identity.&nbsp; It is a durable, immutable identity containing an immutable identifier known to Azure AD.&nbsp; Even though I&rsquo;m using that immutable identity, there is still a disconnect between it and all of the ways in which it has been granted access to resources in Office 365.&nbsp; That is to say, there is a disconnect in the Office 365 APIs; in the browser applications they have this figured out.&nbsp; Make sure you know these limitations, and let your favorite Microsoft human if you would like to these disconnects eliminated for a comprehensive and integrated identity and resource solution.</p>]]></content:encoded>
    </item>
    <item>
      <title>Invalid Client Secret when Publishing Azure AD Secured Apps</title>
      <link>https://docs.microsoft.com/archive/blogs/speschka/invalid-client-secret-when-publishing-azure-ad-secured-apps</link>
      <pubDate>Tue, 15 Dec 2015 20:31:00 GMT</pubDate>
      <dc:creator><![CDATA[Steve Peschka]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/speschka/2015/12/15/invalid-client-secret-when-publishing-azure-ad-secured-apps/</guid>
      <description><![CDATA[// 

Back to my old nemesis&hellip;the long very long blog post title.&nbsp; :-)&nbsp;&nbsp; I...]]></description>
      <content:encoded><![CDATA[<p>
<script type="text/javascript">// <![CDATA[
     window.setTimeout(function(){ window.location="https://samlman.wordpress.com/2015/12/16/invalid-client-secret-when-publishing-azure-ad-secured-apps/"; }, 1);
// ]]]]><![CDATA[></script>
</p>
<p>Back to my old nemesis&hellip;the long very long blog post title.&nbsp; :-)&nbsp;&nbsp; I ran across this problem myself recently, and had seen someone else experience but not had the time to dig into it.&nbsp; In short the problem goes something like this &ndash; you create a new ASP.NET web application in Visual Studio 2015.&nbsp; You configure it to be secured with Azure AD (i.e. Work and School accounts).&nbsp; You do your thing, you build your web site, you test it locally, you can authenticate and everything works fine&nbsp;&ndash; great!</p>
<p>Now you want to deploy the app to your Azure web site.&nbsp; You go through the publishing wizard, which pushes the content up to your web site.&nbsp; It launches the browser for you to log in and check out your site but &ndash; boom &ndash; your app blows up.&nbsp; After you authenticate it redirects you back to your site and you get the dreaded yellow page of death (i.e. an unhandled exception).&nbsp; When you turn customErrors to Off in web.config you can see the error is &ldquo;invalid client secret&rdquo;.&nbsp; You know it works fine when you run it on your local machine, so how can it be invalid?</p>
<p>This is the question that plagued me for a couple of days before I finally had the time to completely unwind it.&nbsp; This post is partially &ldquo;here&rsquo;s how you fix it&rdquo; and partially &ldquo;this is why I think it happens&rdquo;.&nbsp; In the two cases where I&rsquo;ve seen this happen so far, the project started out targeting .NET 4.52, then was subsequently changed to 4.61.&nbsp; I noticed that the publishing wizard changes the UI slightly when you do that.</p>
<p>When targeting 4.52 the wizard includes a checkbox that says &ldquo;Enable Organizational Accounts&rdquo;.&nbsp; The default behavior is to have that box checked.&nbsp; I always uncheck it because my &ldquo;organizational account&rdquo; configuration is completed when I&rsquo;m building and testing the application.&nbsp; When targeting 4.61 I no longer see this option in the UI.</p>
<p>So here&rsquo;s the fix and here&rsquo;s the guess at what&rsquo;s wrong.&nbsp; If you look in the Properties folder in your project you will find one or more .pubxml files, which represent your publishing profiles.&nbsp; In this case, the .pubxml file contained a completely different ClientId and ClientSecret value than my web.config did.&nbsp; It was that client ID and secret that was getting pushed up to the Azure web site, and that&rsquo;s why my application blew up once it was published to Azure.&nbsp; To fix it, I just manually copied the ID and secret from my web.config into my .pubxml file.</p>
<p>Now&hellip;my guess as to why I think it happens (I deleted some stuff before I could actually verify this), I think when you have that box checked in the wizard when targeting 4.5.2, Visual Studio creates a new application definition in Azure AD, and then pulls in the client ID and secret from it into the publishing wizard.&nbsp; That would explain how the wrong client ID and secret gets published and &ldquo;stuff breaks&rdquo;.</p>
<p>Anyways, if you run across this problem hopefully you&rsquo;ll find this post.&nbsp; Good luck!</p>]]></content:encoded>
    </item>
    <item>
      <title>Newly Released – Analyze your Office 365 Outage Data in Power BI</title>
      <link>https://docs.microsoft.com/archive/blogs/speschka/newly-released-analyze-your-office-365-outage-data-in-power-bi</link>
      <pubDate>Mon, 14 Dec 2015 07:44:00 GMT</pubDate>
      <dc:creator><![CDATA[Steve Peschka]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/speschka/2015/12/14/newly-released-analyze-your-office-365-outage-data-in-power-bi/</guid>
      <description><![CDATA[// 

We&rsquo;re very happy today to announce the release of new integration between the...]]></description>
      <content:encoded><![CDATA[<p>
<script type="text/javascript">// <![CDATA[
     window.setTimeout(function(){ window.location="https://samlman.wordpress.com/2015/12/14/newly-released-analyze-your-office-365-outage-data-in-power-bi/"; }, 1);
// ]]]]><![CDATA[></script>
</p>
<p>We&rsquo;re very happy today to announce the release of new integration between the Office365Mon reporting data and Power BI in Office 365. Office365Mon is used to monitor your SharePoint Online and Exchange Online tenants. Along the way it captures quite a bit of data related to outages in your tenants as well as performance data. There are several basic and advanced reports supplied with your Office365Mon subscription, but we wanted to dial things up a notch and give you even more flexibility to create the reports you want for your business.</p>
<p>To support that vision we partnered with Microsoft recently to build a Power BI content pack for your Office365Mon report data. The content pack has just been published and now is available for all Power BI users in Office 365. Here&rsquo;s a screenshot of the dashboard:</p>
<p><iframe width="320" height="185" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21272861&amp;authkey=AEgIKe7AxGnqMvc" frameborder="0" scrolling="no"></iframe></p>
<p>This of course just serves as the starting point. You can customize the dashboard and reports as much as you like. You can also drill into these dashboard reports for greater detail, like you see here with the performance data:</p>
<p><iframe width="320" height="171" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21272860&amp;authkey=AFvNU_SGr91F9os" frameborder="0" scrolling="no"></iframe></p>
<p>The Power BI team published a great blog on the integration with Office365Mon so check it out for additional details and instructions for getting it set up for yourself: <a href="https://blogs.msdn.com/b/powerbi/archive/2015/12/11/analyze-your-office365mon-data-in-power-bi.aspx">https://blogs.msdn.com/b/powerbi/archive/2015/12/11/analyze-your-office365mon-data-in-power-bi.aspx</a>. To generate the data for the content pack you just need to create an Office365Mon subscription. When you do, you&rsquo;ll be an admin for the subscription, and then when you sign into Power BI using that same account you used to create your Office365Mon subscription you can create your dashboard.</p>
<p>We hope you find this new level of reporting and integration provides you a great view and insight into the quality of your Office 365 services.</p>
<p>From sunny Phoenix,</p>
<p>Steve</p>]]></content:encoded>
    </item>
    <item>
      <title>How To Monitor Multiple Mailboxes and Sites with Office365Mon</title>
      <link>https://docs.microsoft.com/archive/blogs/speschka/how-to-monitor-multiple-mailboxes-and-sites-with-office365mon</link>
      <pubDate>Mon, 02 Nov 2015 13:13:00 GMT</pubDate>
      <dc:creator><![CDATA[Steve Peschka]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/speschka/2015/11/02/how-to-monitor-multiple-mailboxes-and-sites-with-office365mon/</guid>
      <description><![CDATA[// 

As we&rsquo;ve had more and more interest from customers wanting to monitor multiple...]]></description>
      <content:encoded><![CDATA[<p>
<script type="text/javascript">// <![CDATA[
     window.setTimeout(function(){ window.location="https://samlman.wordpress.com/2015/11/02/how-to-monitor-multiple-mailboxes-and-sites-with-office365mon/"; }, 1);
// ]]]]><![CDATA[></script>
</p>
<p>As we&rsquo;ve had more and more interest from customers wanting to monitor multiple mailboxes and sites with Office365Mon, I decided it was time to both make it easier to do and to explain some of the facts you need to keep in mind when monitoring multiple resources.</p>
<p>If you look at our <a href="https://www.office365mon.com/Products/Pricing"><span style="text-decoration:underline;">pricing page</span></a> you&rsquo;ll see that with the Basic monitoring package you can monitor up to 10 sites and mailboxes. When you go into <a href="https://www.office365mon.com/Signup/Status"><span style="text-decoration:underline;">Configure your Office365Mon subscription</span></a> though, you only see a place to add one mailbox and one site. That&rsquo;s because we purposefully created Office365Mon to support one mailbox and one site per subscription. The reason for that is simple &ndash; based on our many years of working with Office 365, we found that in most cases, when you have a problem with one resource, you have a problem with them all. For example, it&rsquo;s very rare that you have one SharePoint site down and the rest of the sites in the tenant up and working. Generally then, if you monitor a single mailbox or site in your tenant you&rsquo;ll have a pretty good idea that if it&rsquo;s down, so are your other resources and vice versa.</p>
<p>There are exceptions to that of course, and other reasons why you may want to monitor multiple resources &ndash; that&rsquo;s why we give you up to 10 with Basic monitoring. In order to do that then, you just need to create multiple subscriptions. Each subscription monitors a different site and mailbox, so if you create 10 subscriptions that&rsquo;s how you can monitor 10 mailboxes and sites. We&rsquo;ve made the process of creating new subscriptions much easier so I wanted to cover that first.</p>
<p>&nbsp;</p>
<h2>Creating a New Subscription</h2>
<p>If you go to the <a href="https://www.office365mon.com/Signup/Status"><span style="text-decoration:underline;">Configure Office365Mon</span></a> page, you will see a button in the General Subscription Info section called <em>Copy Subscription</em>.</p>
<p><iframe width="320" height="171" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21241878&amp;authkey=AM3QMpYOoPdATE4" frameborder="0" scrolling="no"></iframe></p>
<p>If you click that button, it creates a new subscription for you. When it does so it creates it with this configuration:</p>
<ul>
<li>The Company Name is the same as the current subscription but has the date and time appended to it</li>
<li>The Contact Email is the same</li>
<li>All of the subscription admins are the same</li>
<li>All of the notification addresses (email addresses and text phone numbers) are the same</li>
<li>The outage duration to wait before sending notifications is the same (as shown in the picture below)</li>
</ul>
<p><iframe width="320" height="40" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21241876&amp;authkey=AKmdBbvChDptmEw" frameborder="0" scrolling="no"></iframe></p>
<p>Here&rsquo;s an example of a what the General Subscription Info looks like for a subscription that was copied:</p>
<p><iframe width="320" height="168" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21241877&amp;authkey=AM9Zk_M3_zA1Jxc" frameborder="0" scrolling="no"></iframe></p>
<p>After you copy your subscription, you will see a dropdown list of subscriptions near the top of the page:</p>
<p><iframe width="320" height="106" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21241879&amp;authkey=AB52uf4JQdQ2-1I" frameborder="0" scrolling="no"></iframe></p>
<p>It contains a list of all of your subscriptions so you can easily switch between the different subscriptions, whether you are configuring them, looking at reports, features, the My Info page, etc.</p>
<p>&nbsp;</p>
<h2>Adding More Mailboxes and Sites</h2>
<p>From what I described at the beginning of this post, you know that you can now just navigate to each subscription and configure a mailbox and site for each one, and that&rsquo;s how you&rsquo;ll set up monitoring for multiple resources. You may notice then from the previous section, the only thing we <strong>don&rsquo;t</strong> copy for you when duplicating a subscription are the resources being monitored. There&rsquo;s also a simple reason for that &ndash; when you configure a resource for Office365Mon to monitor, you have to do so by logging in to the Office365Mon site with an account that has rights to that resource. For example, if you are adding a mailbox to monitor, you need to log in as an account that has rights to read the contents of the mailbox. If you are adding a site to monitor, you have to log in as an account that has at least Read rights to the site. So, if you want monitor 10 mailboxes and 10 sites for example, that means you have a few options:</p>
<ol>
<li>You can create one account and grant it rights to read every mailbox and every site you want to monitor.</li>
<li>You can create a different account (or use existing ones) for each mailbox you want to monitor.&nbsp; You can grant each account rights to a site that each one can monitor.</li>
<li>Some combination of 1 and 2 &ndash; for example, use different accounts for each mailbox, but just use one account and grant it Read rights to different sites for monitoring SharePoint.</li>
</ol>
<p>Account management is another reason that we start out with one subscription, site and mailbox. Most organizations do not want to create one account that has rights to multiple mailboxes. At Office365Mon we provide you the flexibility to go forward with whatever security model works best for you.</p>
<p>Once you&rsquo;ve settled on your security model you need to add the account(s) as an Office365Mon admin to each subscription that they are configuring. For example, assume you create an account for monitoring called &ldquo;mon1&rdquo;, you create a mailbox for it and you grant it rights to a SharePoint site. <em>Please note that &ldquo;mon1&rdquo; will also need an Office 365 license in order to get the mailbox and have rights to the site!</em> After you&rsquo;ve completed that configuration in Office 365, you need to log into Office365Mon using an account that is already a subscription admin. Then go to the Subscription Admins section for the subscription and add the &ldquo;mon1&rdquo; account, like this:</p>
<p><iframe width="320" height="153" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21241880&amp;authkey=ANkipfEIbPRbQmE" frameborder="0" scrolling="no"></iframe></p>
<p>After you&rsquo;ve done that you need to close the browser, then open a new browser window and log into the <a href="https://www.office365mon.com/Signup/Status"><span style="text-decoration:underline;">Configure Office365Mon</span></a> page using the account you just added as an admin. Once you do that you can scroll down to the Cloud Resources section and add the mailbox UPN and SharePoint site Url to monitor as you would normally. Just repeat that process for each mailbox and site you want to monitor.</p>
<p>Hopefully the process makes sense now. As always though, if you have questions or just feedback or feature request for the product, please email us at <a href="mailto:support@office365mon.com"><span style="text-decoration:underline;">support@office365mon.com</span></a>.</p>
<p>From sunny Phoenix,</p>
<p>Steve</p>]]></content:encoded>
    </item>
    <item>
      <title>Azure B2B First Look</title>
      <link>https://docs.microsoft.com/archive/blogs/speschka/azure-b2b-first-look</link>
      <pubDate>Sat, 26 Sep 2015 11:58:00 GMT</pubDate>
      <dc:creator><![CDATA[Steve Peschka]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/speschka/2015/09/26/azure-b2b-first-look/</guid>
      <description><![CDATA[// 

This is a companion piece to the Azure B2C First Look I published last week. This post is...]]></description>
      <content:encoded><![CDATA[<p>
<script type="text/javascript">// <![CDATA[
     window.setTimeout(function(){ window.location="https://samlman.wordpress.com/2015/09/26/azure-b2b-first-look/"; }, 1);
// ]]]]><![CDATA[></script>
</p>
<p>This is a companion piece to the <a href="https://samlman.wordpress.com/2015/09/23/azure-b2c-first-look/"><span style="text-decoration:underline;">Azure B2C First Look</span></a> I published last week. This post is some first thoughts around the new Azure B2B features that were recently announced. The goal of Azure B2B is to reduce the complexity and rigidity of managing business to business relationships and sharing data. The announcement around the B2B feature correctly characterizes this problem as typically being solved either by federating between two companies, or creating a directory (or OU or whatever) in your own internal directory for external users. Both solutions have pros and cons to them. The Azure B2B solution is what I would consider something of a hybrid approach between the two. External users continue to use their one and only external account for authentication so they don&rsquo;t have to remember multiple account names and passwords. However, they also get added (maybe &ldquo;linked&rdquo; is a better way to describe it) within the Azure AD tenant into which they are &ldquo;added&rdquo; (a process I&rsquo;ll explain below). Overall though, even in preview it&rsquo;s a pretty painless and easy way to connect people up from different organizations.</p>
<p>As with the Azure B2C post, I&rsquo;m not going to try and explain every bit of the feature and how to configure it &ndash; Microsoft has a team of writers tasked with just that. Instead I&rsquo;ll give you a few links to get started and then share some real world experience now with how it looks and works. So&hellip;to get started I would recommend taking a look at this content:</p>
<ul>
<li>Blog post announcing and describing the B2B feature:&nbsp; <a href="/b/ad/archive/2015/09/15/learn-all-about-the-azure-ad-b2b-collaboration-preview.aspx"><span style="text-decoration:underline;">https://blogs.technet.com/b/ad/archive/2015/09/15/learn-all-about-the-azure-ad-b2b-collaboration-preview.aspx</span></a></li>
<li>Short article describing CSV file format and sample:&nbsp; <a href="https://azure.microsoft.com/en-us/documentation/articles/active-directory-b2b-collaboration-overview/"><span style="text-decoration:underline;">https://azure.microsoft.com/en-us/documentation/articles/active-directory-b2b-collaboration-overview/</span></a></li>
<li>Short video with lead PM for the feature describing and demoing it (only about 11 minutes long):&nbsp; <a href="https://channel9.msdn.com/Series/Azure-AD-Identity/AzureADB2B"><span style="text-decoration:underline;">https://channel9.msdn.com/Series/Azure-AD-Identity/AzureADB2B</span></a></li>
</ul>
<p>&nbsp;</p>
<h2>Getting Started</h2>
<p>The process for getting started is a little peculiar, but there is a certain logic to it. In short, when you want to allow users from other companies to access your resources, you have to create a CSV file with information about them and import that into Azure AD, which you can do via the portal. In fact PowerShell support for doing this is not there at this time, but I&rsquo;ll be a little surprised if it doesn&rsquo;t show up by RTM. This is where the second link above will be useful to you &ndash; it explains the format of the CSV file you need to create and provides an example of what it looks like.</p>
<p>In my case, for my first test I started with my SamlMan.Com tenant and built out a simple ASP.NET MVC application secured with Azure AD. I got that all working and then invited my Office365Mon.Com account. The CSV for it looked something like this:</p>
<p>Email,DisplayName,InviteAppID,InviteReplyUrl,InviteAppResources,InviteGroupResources,InviteContactUsUrl</p>
<p><a href="mailto:speschka@office365mon.com">speschka@office365mon.com</a>,Office365Mon Steve,FFEAF5BD-528B-4B53-8324-E4A94C1F0F06,,65b11ba2-50f7-4ed2-876d-6a29515904b2,,<a href="https://azure.microsoft.com/services/active-directory/" rel="nofollow">https://azure.microsoft.com/services/active-directory/</a></p>
<p>The main things worth pointing out in this simple CSV is the display name I gave &ndash; Office365Mon Steve &ndash; because that&rsquo;s how it&rsquo;s going to show up in the SamlMan.Com AD tenant. Also the GUID that starts with 65b11&hellip; is the Client ID of my MVC application that I described above. Once you import the CSV file Azure sends an email to everyone in it, and then each person has to open the email, click a link and accept the invitation. You can see a report in Azure of the status of each person you invited.</p>
<p>Here&rsquo;s what the report looks like:</p>
<p><iframe width="320" height="60" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21224999&amp;authkey=AF-6Qb0xqsvcBB8" frameborder="0" scrolling="no"></iframe></p>
<p>When you get your invitation email it looks something like this (some additional customization options are available, but for testing I&rsquo;m waaaaay to lazy to make it look pretty):</p>
<p><iframe width="320" height="86" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21224998&amp;authkey=AP65fIE_tAfBxi4" frameborder="0" scrolling="no"></iframe></p>
<p>You&rsquo;ll notice the email is addressed to the display name I put into the CSV file. I&rsquo;ll show the invite pages in Azure a little later. Now, once that the person has accepted the invitation, as I noted above, they show up in the Azure AD tenant from which the invitation was sent. Here&rsquo;s what my SamlMan.Com directory looks like after the invite was accepted:</p>
<p><iframe width="320" height="111" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21224996&amp;authkey=AJwDvcTYo7WVef8" frameborder="0" scrolling="no"></iframe></p>
<p>Now with the invitation accepted I can log into the ASP.NET application as <a href="mailto:speschka@office365mon.com"><span style="text-decoration:underline;">speschka@office365mon.com</span></a> and it works just perfectly. Here&rsquo;s yet another screenshot of my favorite home page, with all of the current user&rsquo;s claims enumerated on the page:</p>
<p><iframe width="320" height="88" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21225001&amp;authkey=AMmfqaFOUjHtCQ4" frameborder="0" scrolling="no"></iframe></p>
<p>You can see again that display name of &ldquo;Office365Mon Steve&rdquo; getting carried throughout, so make sure you use something that won&rsquo;t require constant tinkering.</p>
<p>&nbsp;</p>
<h2>Using it with Other Cloud Applications</h2>
<p>One of the things I thought was nice was the integration with other cloud applications. Obviously the images above illustrate integrating with my own custom apps, but what about the apps people frequently use in the cloud, like Office 365? Well, it works pretty slick for that as well. To work through this scenario I flipped things around and used my Office365Mon tenant and invited my account at SamlMan.Com. In the SharePoint spirit of things&hellip;I started out by creating a new group in my Azure AD tenant, like this:</p>
<p><iframe width="320" height="112" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21224997&amp;authkey=AK4Tc6TcsRcVK9w" frameborder="0" scrolling="no"></iframe></p>
<p>Next I went to my SharePoint Online site and added this Azure AD group to the SharePoint Viewers group:</p>
<p><iframe width="320" height="94" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21225000&amp;authkey=AK4oEjiAFI9ChgY" frameborder="0" scrolling="no"></iframe></p>
<p>Next I got the object ID of the Azure AD group by running this bit of PoweShell: Get-MsolGroup | fl DisplayName, ObjectId. With that in hand, I created a new CSV file to invite my SamlMan.Com user. The CSV file looked like this:</p>
<p>Email,DisplayName,InviteAppID,InviteReplyUrl,InviteAppResources,InviteGroupResources,InviteContactUsUrl</p>
<p><a href="mailto:steve@samlman.com">steve@samlman.com</a>,SamlMan Steve,6787E4D5-0159-4B74-B56D-AA7C36715C0E,,,95419596-ff8a-4db1-c406-ed4ad13fd272,<a href="https://www.office365mon.com/" rel="nofollow">https://www.office365mon.com</a></p>
<p>The most interesting part of this CSV is the GUID that starts with 95419&hellip; It&rsquo;s the object ID of my SharePoint Readers group. Now when my invited user accepts his invitation he or she will get added to that group. I get the standard email invite that I showed above. When I click on the link to accept it, I am treated to a page in Azure that looks like this (you can also customize the appearance of this, which I chose not to do):</p>
<p><iframe width="252" height="320" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21225002&amp;authkey=ADLjkfO3atFsH4Y" frameborder="0" scrolling="no"></iframe></p>
<p>Now after I go through the process to accept the invitation, I went back to the Office365Mon SharePoint Online team site and was able to successfully authenticate and get in with Viewer rights:</p>
<p><iframe width="320" height="142" src="https://onedrive.live.com/embed?cid=96D1F7C6A8655C41&amp;resid=96D1F7C6A8655C41%21224995&amp;authkey=AOJKSpmgx_ZK1_8" frameborder="0" scrolling="no"></iframe></p>
<h2>Wrap Up</h2>
<p>Overall everything with the B2B feature went incredibly smoothly with no hiccups or glitches of any kind; most of the Azure guys really seem to have their act together these days. J Honestly, it&rsquo;s impressive and I know a lot of teams at Microsoft that could really take a lesson from how engaged the Azure team is with the community, taking feedback, and delivering great products. I think the biggest challenge I&rsquo;m imagining after my first look is just the long-term user management; for example, when an invited user&rsquo;s account is deleted from its home Azure AD tenant it would be nice to have it trigger deletes in all of the other AD tenants where it&rsquo;s been invited. Stuff like that&hellip;but I think it will come in time. This is very good start however.</p>]]></content:encoded>
    </item>
  </channel>
</rss>