<?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>ruha</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/ruha/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/ruha/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:51:51 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Preparing for Submission to the Office Store : Things to keep in mind</title>
      <link>https://docs.microsoft.com/archive/blogs/ruha/preparing-for-submission-to-the-office-store-things-to-keep-in-mind</link>
      <pubDate>Sun, 05 Jun 2016 19:45:51 GMT</pubDate>
      <dc:creator><![CDATA[infinitydlimit]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/ruha/?p=45</guid>
      <description><![CDATA[If you are a developer who is building Add In for Office , read through the below post to find out...]]></description>
      <content:encoded><![CDATA[If you are a developer who is building Add In for Office , read through the below post to find out how you can avoid some common mistakes during the submission process and get your Add in validated in lesser number of iterations. If you are new to building Office Add In's check out the details <a href="https://dev.office.com/getting-started/addins">here </a>on how to get started for building super cool apps on the Office 365 platform.
<ul>
	<li>First and foremost ensure that a valid <a href="https://go.microsoft.com/fwlink/?LinkId=248605">Office Seller dashboard account is in place</a> ahead of time before you are actually planning submission.</li>
	<li>You can run your Add-In through <a href="https://www.microsoft.com/en-us/download/details.aspx?id=46831">Office app compatibility tool kit</a> to ensure there are no schema related errors in the Add-In manifest files submitted to the office Store</li>
	<li>All apps submitted to the Office Store must use HTTPS secured connection for all communications.</li>
	<li>There is a checklist for Office Store policies which are available <a href="https://msdn.microsoft.com/en-us/library/office/jj220035.aspx#bk_4">here</a> , ensure that the apps are compliant for these policies.</li>
</ul>
<strong>Common Mistakes to avoid</strong>

Based on past experience some of the common areas where the apps might fail to comply to policies include the following:
<ul>
	<li>Every Office Add in submitted to the store must have a privacy policy.</li>
	<li>Often it happens that the person who is submitting the manifest on the seller Dashboard is different from the dev who has created the manifest file in such scenarios one must ensure that the App Title and Version No. must match those in the app manifest to the one entered in seller dashboard.</li>
	<li>When submitting to the seller dashboard there is a field called as “Short Description” ensure that this field has less than 100 characters</li>
	<li>Apps if not using Office 365 credentials for Sign in should  have a Sign Up option allowing the users to sign up from the Add-in itself</li>
	<li>SharePoint Add-ins that request full-control permissions are not accepted in the Office Store.</li>
	<li>Add-ins must be compatible with all versions of Internet Explorer 11 and later, and the latest versions of Chrome, Firefox, and Safari (Mac OS). The add-in must also be fully functional with the supported operating systems, browsers, and devices for Office 2013, Office 2016, SharePoint 2013, and Office 365.</li>
</ul>
<strong>Useful Resources:</strong>
<ul>
	<li><a href="https://msdn.microsoft.com/EN-US/library/jj220035.aspx">Office Store Validation Policies</a></li>
	<li><a href="https://msdn.microsoft.com/EN-US/library/jj635874.aspx">Quality Guidelines</a></li>
	<li>Seller Dashboard: <a href="https://msdn.microsoft.com/EN-US/library/dn356576.aspx">Checklist</a> / <a href="https://msdn.microsoft.com/EN-US/library/jj220033.aspx">Submitting to Office Store</a></li>
	<li><a href="https://msdn.microsoft.com/EN-US/library/jj591603.aspx">Office Store Submission FAQs</a></li>
</ul>]]></content:encoded>
    </item>
    <item>
      <title>Getting Insights from Data in Real Time : Azure Stream Analytics</title>
      <link>https://docs.microsoft.com/archive/blogs/ruha/getting-insights-from-data-in-real-time-azure-stream-analytics</link>
      <pubDate>Mon, 02 Mar 2015 17:47:00 GMT</pubDate>
      <dc:creator><![CDATA[infinitydlimit]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/ruha/2015/03/02/getting-insights-from-data-in-real-time-azure-stream-analytics/</guid>
      <description><![CDATA[Data analytics provides insights into data which help&rsquo;s business take it to the next level....]]></description>
      <content:encoded><![CDATA[<p>Data analytics provides insights into data which help&rsquo;s business take it to the next level. There are scenarios where you may want to analyze the data in real time, even before it&rsquo;s saved into the database and perform analytics on it. Making decisions quickly in certain scenarios facilitate to have an edge over others and take the experience of your products to the next level. Also with Internet of things gaining momentum where billion of devices and sensors are connected to Internet, there is a need of processing these events in real time to perform appropriate actions.</p>
<p>&nbsp;</p>
<p>What is the difference between traditional big data analytics and real time analytics?</p>
<p>To understand the difference between traditional big data analysis and real time analytics let&rsquo;s explore the concept of data at rest and data in motion</p>
<p>This can be understood by the analogy of water, consider water in a lake to represent static data, similarly water falling through a fall is similar to the data in motion. So here we have to consider analytics with reference to time. Another interesting example to understand this consider you have to count the no. of cars in parking lot, you can count the cars in the entire lot. Now let&rsquo;s say you need to calculate the number of cars passing a crossing, you have to analyses this data in a windows of time and analyses it in real time. The main idea that the analytics is carried out without storing the data</p>
<p>&nbsp;</p>
<p>One of the biggest challenges in real time data analytics is time, effort and expertise needed to develop complex real time analytics solutions. Azure stream analytics helps overcome this entry barrier and allows to provision a solution for processing millions of events using familiar SQL queries with a few clicks.</p>
<p>Azure Stream Analytics is a fully managed service by Microsoft Azure which allows you to position a streaming solution for complex event processing and analytics within minutes as we will see in the example in the last section of this article.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;">Architecture of Azure Stream Analytics is given below:</span></p>
<ol>
<li>You can define input streams to be Data streams which can be coming through two sources currently</li>
</ol>
<ul>
<li>Event Hub</li>
<li>Azure Storage Blob</li>
</ul>
<ol>
<li>Alternately input can also be from a reference data source which could be in a Blob</li>
<li>You can write SQL like queries within windows which are discussed below to perform analysis on this data</li>
<li>You can output this data to a SQL database , event hub or blob</li>
<li>From this SQL database you could create solutions for presenting using Power BI dashboards or predictive analysis using Machine Learning</li>
<li>Through the Even hub perform some actions with the sensors&nbsp;</li>
</ol>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/3326.1.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/3326.1.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/3326.1.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/3326.1.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;<span style="text-decoration: underline;">Concept of Windows in Azure Stream Analytics Queries</span></p>
<p>To be able to write the queries for Stream Analytics, you need to understand the concepts of Windows there are three different kinds of windows which you can define with your SQL queries .Windows are nothing but time intervals within which events are analyzed.</p>
<ul>
<li>&nbsp;Tumbling Window</li>
</ul>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; It&rsquo;s a fixed length, non &ndash;overlapping time interval</p>
<ul>
<li>&nbsp;Hopping Window</li>
</ul>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; The next windows overlaps with the previous windows by a certain fixed amount of time interval.</p>
<ul>
<li>Sliding Window</li>
</ul>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; In case you want the overlap of the new next windows to be at every time duration we have sliding windows.</p>
<p>&nbsp;</p>
<p><span style="font-size: medium;"><strong>Getting Started with Azure Stream Analytics</strong></span></p>
<p>Currently Azure stream analytics in Public Preview. To be able to try Azure Stream Analytics you must have an Azure subscription. In case you don&rsquo;t have an Azure subscription you can sign up for a free one month trial here</p>
<p>&nbsp;We will implement a sample toll both, cars continuously keep on entering the toll and exiting the toll.&nbsp; We would be assuming sensors have been installed at the entry and exit which are continuously sending data to event hub and a vehicle registration data which is available for lookup. Using Stream Analytics we would calculate no. of cars which pass through this toll in every five minutes using the data available from the input stream. Then we would calculate the average time taken by a car at the toll, this analysis would help in increasing the efficiency of the Toll Booth.</p>
<p>To get started you would need to provision the following:</p>
<ol>
<li><strong>Event Hubs: </strong>You would need to provision two event hubs &ldquo;Entry&rdquo; and&nbsp; &ldquo;Exit&ldquo;</li>
<li><strong>SQL Database: </strong>You would provision a SQL Database for storing the output results from Stream Analytics jobs</li>
<li><strong>Azure Storage: </strong>To store reference data about Vehicle registration.</li>
</ol>
<div>In case you are new to Azure , detailed steps for setting up the above can be found here.(<a href="https://1drv.ms/1ARJcxl">https://1drv.ms/1ARJcxl</a>)</div>
<p><strong>Create Stream Analytics Job</strong></p>
<div align="center"><hr align="center" size="3" width="100%" /></div>
<ol>
<li>In Azure Portal navigate to Stream Analytics and click on the &ldquo;New&rdquo; button at the bottom to create a new analytics job. Currently the service is in preview and is available in limited regions</li>
</ol>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/8037.1.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/8037.1.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/8037.1.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/8037.1.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>2. &ldquo;QuickCreate&rdquo;, select either Western Europe or &ldquo;Central US&rdquo; as the region. For regional monitoring storage account, create a new storage account. Azure Stream analytics would use this account to store monitoring information for all your future jobs.</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/7080.2.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/7080.2.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/7080.2.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/7080.2.png" alt="" border="0" /></a></p>
<p>&nbsp;3. Define Input sources.</p>
<p>3.1 We need to define input sources for Stream Analytics, we would be using Event hubs for input</p>
<p><strong>Steps to add Input Sources</strong></p>
<ol>
<li>Click on the created Stream Analytics job &agrave; Click on the Input tab</li>
<li>Select &ldquo;Data Stream &ldquo;, as an input job.</li>
</ol>
<p>&nbsp;&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/8015.3.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/8015.3.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/8015.3.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/8015.3.png" alt="" border="0" /></a></p>
<p>3. 1Select &ldquo;Event Hub&rdquo; as the input source</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/8233.4.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/8233.4.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/8233.4.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/8233.4.png" alt="" border="0" /></a></p>
<p><br />4. Add input alias as &ldquo;EntryStream&rdquo;. Choose the event hub name you have created for this demo from the dropdown</p>
<p>5. Move to the next page select default values for all Serialization settings on this page.</p>
<p>6. Repeat the above steps for creating an Exit Stream and choosing the &ldquo;exit&rdquo; hub as the event hub this time</p>
<p>&nbsp;3.2 Adding Vehicle Registration Data as reference as another input Source</p>
<p><strong>Steps to be followed</strong></p>
<ol>
<li>Click on Add Input at bottom.</li>
</ol>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/0257.5.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/0257.5.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/0257.5.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/0257.5.png" alt="" border="0" /></a></p>
<p>2. Add reference data to your input job</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/1738.6.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/1738.6.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/1738.6.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/1738.6.png" alt="" border="0" /></a></p>
<p>3.Select the storage account you had created while setting up the lab environment. Container name should be &ldquo;tolldata&rdquo; and blob name should be &ldquo;registration.csv&rdquo;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/0871.7.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/0871.7.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/0871.7.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/0871.7.png" alt="" border="0" /></a></p>
<p>4. Choose the existing serialization settings and Click Ok</p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3.3 Output Data</p>
<ol>
<li>Go to &ldquo;Output&rdquo; tab and click &ldquo;Add an output&rdquo;</li>
</ol>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/4403.8.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/4403.8.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/4403.8.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/4403.8.png" alt="" border="0" /></a></p>
<ol>
<li>Choose SQL database&agrave; Choose the SQL server database from the drop down, that you created while setting up the lab.&nbsp; Enter the username and password for this server.</li>
</ol>
<p>Table name would be &ldquo;TollDataRefJoin&rdquo;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/8308.9.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/8308.9.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/8308.9.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/8308.9.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;<strong>AZURE STREAM ANALYTICS QUERIES</strong></p>
<p>&nbsp;</p>
<p>In the Query tab you can write in the familiar SQL syntax itself, which would perform the transformation over the incoming data streams.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/5657.10.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/5657.10.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/5657.10.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/5657.10.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>Download and extract TollAppData.zip to your local machine. This contains the following files:</p>
<p>1. Entry.json</p>
<p>2. Exit.json</p>
<p>3. Registration.json</p>
<p>&nbsp;</p>
<p class="Default">&nbsp;Now we will attempt to answer several business questions related to Toll data and construct Stream Analytics queries that can be used in Azure Stream Analytics to provide a relevant answer.</p>
<p>QUESTION 1 - NUMBER OF VEHICLES ENTERING A TOLL BOOTH</p>
<p>For testing this query we upload sample data representing data from a stream. You can find this sample JSON data file in TollData zip folder located <a href="https://1drv.ms/1ARJcxl">here</a>.</p>
<p>Steps</p>
<ol>
<li>Open the Azure Management portal and navigate to your created Azure Stream Analytic job. Open the Query tab and copy paste Query below</li>
</ol>
<p>&nbsp;</p>
<div>
<table style="width: 100%;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>
<pre>SELECT&nbsp;TollId,&nbsp;System.Timestamp&nbsp;AS&nbsp;WindowEnd,&nbsp;COUNT(*)&nbsp;AS&nbsp;Count</pre>
<pre>FROM&nbsp;EntryStream&nbsp;TIMESTAMP&nbsp;BY&nbsp;EntryTime&nbsp;</pre>
<pre>GROUP&nbsp;BY&nbsp;TUMBLINGWINDOW(minute,3),&nbsp;TollId</pre>
<p>&nbsp;</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;To validate this query against sample data, click the Test button. In the dialog that opens, navigate to Entry.json (downloaded on your local system in Data folder) with sample data from the EntryTime event stream.</p>
<p>&nbsp;</p>
<p>QUESTION 2 - REPORT TOTAL TIME FOR EACH CAR TO PASS THROUGH THE TOLL BOOTH</p>
<p>We want to find average time required for the car to pass the toll to assess efficiency and customer experience.</p>
<p>&nbsp;</p>
<div>
<table style="width: 100%;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>
<pre>SELECT&nbsp;EntryStream.TollId,&nbsp;EntryStream.EntryTime,&nbsp;ExitStream.ExitTime,&nbsp;EntryStream.LicensePlate,&nbsp;</pre>
<pre>DATEDIFF(minute,&nbsp;EntryStream.EntryTime,&nbsp;ExitStream&nbsp;.ExitTime)&nbsp;AS&nbsp;DurationInMinutes</pre>
<pre>FROM&nbsp;EntryStream&nbsp;TIMESTAMP&nbsp;BY&nbsp;EntryTime</pre>
<pre>JOIN&nbsp;ExitStream&nbsp;TIMESTAMP&nbsp;BY&nbsp;ExitTime</pre>
<pre>ON&nbsp;(EntryStream.TollId=&nbsp;ExitStream.TollId&nbsp;AND&nbsp;EntryStream.LicensePlate&nbsp;=&nbsp;ExitStream.LicensePlate)</pre>
<pre>AND&nbsp;DATEDIFF(minute,&nbsp;EntryStream,&nbsp;ExitStream&nbsp;)&nbsp;BETWEEN&nbsp;0&nbsp;AND&nbsp;15</pre>
<pre>&nbsp;</pre>
<p>&nbsp;</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>Click test and specify sample input files for EntryTime and ExitTime.</p>
<p>Click the checkbox to test the query and view output:</p>
<p>&nbsp;</p>
<p>QUESTION 3 &ndash; REPORT ALL COMMERCIAL VEHICLES WITH EXPIRED REGISTRATION</p>
<p class="Default">Azure Stream Analytics can use static snapshots of data to join with temporal data streams. To demonstrate this capability we will use the following sample question.</p>
<p class="Default">&nbsp;</p>
<p>If a commercial vehicle is registered with the Toll Company, they can pass through the toll booth without being stopped for inspection. We will use Commercial Vehicle Registration lookup table to identify all commercial vehicles with expired registration.</p>
<p class="Default">Note that testing a query with Reference Data requires that an input source for the Reference Data is defined.</p>
<p>To test this query, paste the query into the Query tab, click Test, and specify the 2 input sources</p>
<p>&nbsp;Following results would appear as shown below</p>
<div>
<table style="width: 100%;" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>
<pre>SELECT&nbsp;EntryStream.EntryTime,&nbsp;EntryStream.LicensePlate,&nbsp;EntryStream.TollId,&nbsp;Registration.RegistrationId</pre>
<pre>FROM&nbsp;EntryStream&nbsp;TIMESTAMP&nbsp;BY&nbsp;EntryTime</pre>
<pre>JOIN&nbsp;Registration</pre>
<pre>ON&nbsp;EntryStream.LicensePlate&nbsp;=&nbsp;Registration.LicensePlate</pre>
<pre>WHERE&nbsp;Registration.Expired&nbsp;=&nbsp;'1'</pre>
<p>&nbsp;</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;START THE STREAM ANALYTICS JOB</p>
<p class="Default">Now as we have written our first Azure Stream Analytics query, it is time to finish the configuration and start the job.</p>
<p class="Default">&nbsp;Save the query from Question 3, which will produce output that matches the schema of our output table TollDataRefJoin.</p>
<p>&nbsp;Navigate to the job Dashboard and click Start.</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/2112.11.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/2112.11.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/2112.11.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/2112.11.png" alt="" border="0" /></a></p>
<p>&nbsp;Starting the job can take a few minutes. You will be able to see the status on the top-level page for Stream Analytics.</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/8831.12.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/8831.12.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/65/55/8831.12.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-65-55/8831.12.png" alt="" border="0" /></a></p>
<p>&nbsp;View the Table data in the SQL Database to view the results of the above query :)</p>
<p>&nbsp;</p>
<p>References:</p>
<p>&nbsp;<a href="https://azure.microsoft.com/en-in/documentation/services/stream-analytics/">https://azure.microsoft.com/en-in/documentation/services/stream-analytics/</a></p>
<p><a href="https://azure.microsoft.com/en-in/documentation/services/stream-analytics/">https://azure.microsoft.com/en-in/documentation/services/stream-analytics/</a></p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Azure Mobile Service: Service Enablement at its Best</title>
      <link>https://docs.microsoft.com/archive/blogs/ruha/azure-mobile-service-service-enablement-at-its-best</link>
      <pubDate>Sun, 08 Jun 2014 04:51:00 GMT</pubDate>
      <dc:creator><![CDATA[infinitydlimit]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/ruha/2014/06/08/azure-mobile-service-service-enablement-at-its-best/</guid>
      <description><![CDATA[In today&rsquo;s modern era of devices and services app have taken center stage. With the ever...]]></description>
      <content:encoded><![CDATA[<p>In today&rsquo;s modern era of devices and services app have taken center stage. With the ever increasing use of multitude of devices across various platforms and form factors app developers want to provide the best experience on all the Platforms. Unlike traditional times when the core focus was on the functionality of the app now a days with thousands of apps available in each category it is also important to provide a rich and immersive user experience too In such a scenario Windows Azure provides Mobile app developers and opportunity to build a cloud connected backend in a very short time while giving the developer enough time to focus on user experience and go to market strategies. Another big time and effort saver is the fact that they can create this Mobile Service Backend only once and can utilize it for their apps on all the different Platforms like Windows, Android, iOS etc.</p>
<p>&nbsp;</p>
<p>Windows Azure Mobile services is one of the service offerings for mobile developers to develop a cloud based Backend as a part of Windows Azure offerings from Microsoft. Windows Azure is a public cloud offering from Microsoft. It allows building highly scalable applications with pay as you go model where one needs to pay based on the API calls made. Along with an SLA 99.9% which ensures that the downtime of your app<br />is very minimum.&nbsp;Windows Azure Mobile SDK is available for Windows Store Apps, Windows Phone apps, Android, iOS , HTML, Xamarin for .Net Developers . Moreover apart from SDKs WAMS exposes an open and flexible REST API which can be used for any Platform.</p>
<p>&nbsp;</p>
<p>Windows Azure Mobile Services offer services ranging from authentication, data storage, custom API calls, schedulers, Push Notifications etc.</p>
<p>1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="text-decoration: underline;">Authentication</span></p>
<p>There is a trend of using third party Authentication like &ldquo;Login with Facebook&rdquo; in mobile apps to simplify the logging in process for the users who do not wish to create login credentials for every app. WAMS provides<br />app developers to integrates oAuth based third party identifications from Social Networks Facebook, Twitter, Google within the app easily with just a few lines of code in your Client App.</p>
<p>2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="text-decoration: underline;">Push Notifications</span></p>
<p>Push Notifications are great means to build live and connected apps. It&rsquo;s a cumbersome process to send push Notifications with WAMS notifications can be sent out to millions of consumersrunning that app. WAMS Push Notifications helps developers to send out notifications through WNS for Windows store Apps, MPNS for Windows Phone, GCM for Google. Some apps scenarios where Push Notifications are very beneficial<br />include a notification for sending Latest News or a notification for a new high score or like whenever an entry is added to a Database a push Notification could be sent out etc.</p>
<p>&nbsp;3)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="text-decoration: underline;">Data</span></p>
<p>Data can be stored in SQL Database on Azure, WAMS provides makes it very easy to access this data from the App.There is pre coded script for CRUD operations for Database Tables. Additionally an App developer can also write server side script using JavaScript for controlling access to Data and other Business Logic while working with the Data in these tables.</p>
<p>4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="text-decoration: underline;">Scheduler</span></p>
<p>There is also a mechanism to schedule and run server side scripts at specific times. As a developer one can leverage it send out some notification at a particular time or do some other task on the server side at a particular time etc.&nbsp;</p>
<p>Thus for any app developer building across any platform Windows Azure Mobile services allows to build a common cloud connected and secure backend in a turnkey manner within minutes</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
  </channel>
</rss>