<?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>Rakesh Vemula Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/vemula/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/vemula/feed.xml</link>
    <description>Drive towards unknown</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:43:04 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Using Graph API version 2</title>
      <link>https://docs.microsoft.com/archive/blogs/vemula/using-graph-api-version-2</link>
      <pubDate>Sun, 11 Mar 2018 18:48:38 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh Vemula - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/vemula/?p=215</guid>
      <description><![CDATA[Microsoft introduced Graph API v2 to make the authentication more user friendly

 	You don't need...]]></description>
      <content:encoded><![CDATA[Microsoft introduced Graph API v2 to make the authentication more user friendly
<ol>
 	<li>You don't need an azure account for registering your app.</li>
 	<li>With one API interface you can login using office (outlook/live) and work accounts</li>
 	<li>You can control your app/ user permissions directly from your app</li>
</ol>
Please follow the below process to register your apps.
<h1><span style="color: #007789;font-family: Constantia;font-size: x-large">App Registration</span></h1>
<span style="color: #595959;font-family: Constantia">The Graph API changed its authentication protocol for supporting Microsoft and work accounts in a single API call.</span>

<span style="margin: 0px;color: #0d0d0d;font-family: 'Century Gothic',sans-serif"><span>−<span style="font: 7pt 'Times New Roman';margin: 0px">      </span></span></span><span style="color: #595959;font-family: Constantia">Create a new app in the below link</span>

<span style="font-family: Constantia"><a href="https://apps.dev.microsoft.com/?referrer=https%3a%2f%2fdeveloper.microsoft.com%2fen-us%2fgraph%2fgraph-explorer#/appList">https://apps.dev.microsoft.com/?referrer=https%3a%2f%2fdeveloper.microsoft.com%2fen-us%2fgraph%2fgraph-explorer#/appList</a><span style="color: #595959"> </span></span>

<span style="margin: 0px;color: #0d0d0d;font-family: 'Century Gothic',sans-serif"><span>−<span style="font: 7pt 'Times New Roman';margin: 0px">      </span></span></span><span><img width="11" height="11" src="/Users/ravemula/AppData/Local/Temp/msohtmlclip1/01/clip_image001.png" /></span><span style="color: #595959;font-family: Constantia">Add redirect Url from new platform, please select the “Allow Implicit Flow” while creating new platform .</span>

<span style="margin: 0px;color: #0d0d0d;font-family: 'Century Gothic',sans-serif"><span>−<span style="font: 7pt 'Times New Roman';margin: 0px">      </span></span></span><span style="color: #595959"><span style="font-family: Constantia"><span> </span>Choose appropriate permission required by your app to communicate with AD tenant.</span></span>

<span style="margin: 0px;color: #0d0d0d;font-family: 'Century Gothic',sans-serif"><span>−<span style="font: 7pt 'Times New Roman';margin: 0px">      </span></span></span><span style="color: #595959;font-family: Constantia">Generate New Password and copy it because it won’t be visible again.</span>

<span style="margin: 0px;color: #0d0d0d;font-family: 'Century Gothic',sans-serif"><span>−<span style="font: 7pt 'Times New Roman';margin: 0px">      </span></span></span><span style="color: #595959;font-family: Constantia">***Your Application Id will be the client Id and password will be the client secret for all the graph/ AD communications</span>

<span style="margin: 0px;color: #0d0d0d;font-family: 'Century Gothic',sans-serif"><span>−<span style="font: 7pt 'Times New Roman';margin: 0px">      </span></span></span><span style="color: #595959;font-family: Constantia">Save the changes.</span>

<span style="margin: 0px;color: #0d0d0d;font-family: 'Century Gothic',sans-serif"><span>−<span style="font: 7pt 'Times New Roman';margin: 0px">      </span></span></span><span style="color: #595959;font-family: Constantia">We should send the admin consent for approving the app permissions to your AD tenant, AD tenant admin has to open the below URL for approving the app permissions.</span>

<span style="color: #835d00"><a href="https://login.microsoftonline.com/%7bTenantName%7d/adminconsent?client_id=%7bApplicationId%7d&amp;state=12345&amp;redirect_uri=%7bRedirect"><span style="margin: 0px;line-height: 110%;font-family: 'Arial',sans-serif;font-size: 9.5pt">https://login.microsoftonline.com/{TenantName}/adminconsent?client_id={ApplicationId}&amp;state=12345&amp;redirect_uri={Redirect</span></a><span><u><span style="font-family: Constantia">URI}</span></u></span></span><span></span>

<span style="color: #595959;font-family: Constantia">Tenenetname example: Contoso.onmicrosoft.com</span>

<span style="color: #595959;font-family: Constantia">Application Id : your appId</span>

<span style="color: #595959;font-family: Constantia">Redirect Uri : it is the same redirect your of your app under platform section.</span>

<span style="color: #595959;font-family: Constantia">Please update the above fields in the Uri before open it in browser.</span>

&nbsp;

For the programmers who are familiar with Graph API v1:
<ol>
 	<li>Client Id will be the application Id</li>
 	<li>Client secret will be the password</li>
 	<li>Tenant will be same but you have to give the appropriate permissions to your app by sending and approving the admin consent</li>
</ol>
Requesting &amp; approving the permissions for your app can be done by using the below URL

https://login.microsoftonline.com/{TenantName}/adminconsent?client_id={ApplicationId}&amp;state=12345&amp;redirect_uri={RedirectURI}]]></content:encoded>
    </item>
    <item>
      <title>Publishing Web App to Azure Via Visual Studio...</title>
      <link>https://docs.microsoft.com/archive/blogs/vemula/publishing-web-app-to-azure-via-visual-studio</link>
      <pubDate>Fri, 25 Nov 2016 16:08:23 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh Vemula - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/vemula/?p=165</guid>
      <description><![CDATA[My previous post " Publishing Websites from Visual Studio" explains how can we deploy our web apps...]]></description>
      <content:encoded><![CDATA[My previous post " <a href="https://blogs.msdn.microsoft.com/vemula/2016/11/25/publishing-websites-from-visual-studio/" rel="bookmark">Publishing Websites from Visual Studio</a>" explains how can we deploy our web apps to different sources. In this post I would like concentrate mainly on how to deploy a web app in to azure with out any extra scripting...
<ol>
 	<li>Go to "portal.azure.com" and sign in with your credentials. Click on ADD and browse for web app, You can also find web app in web + mobile category.
<img width="300" height="148" class="alignnone size-medium wp-image-185" alt="publish_1" src="https://msdnshared.blob.core.windows.net/media/2016/11/Publish_11-300x148.png" /></li>
 	<li>After selecting web App you find the below screen then click on create
<img width="300" height="169" class="alignnone size-medium wp-image-187" alt="publish_2" src="https://msdnshared.blob.core.windows.net/media/2016/11/Publish_21-300x169.png" /></li>
 	<li>After clicking on create there will new blade opening for filling the required credentials.
<img width="157" height="300" class="alignnone size-medium wp-image-196" alt="publish_3_ink_li" src="https://msdnshared.blob.core.windows.net/media/2016/11/Publish_3_Ink_LI-157x300.jpg" /></li>
 	<li>App name is nothing but the URL what you want to choose for your app. You can choose the available resource group or you can create one to deploy your site. After creating your web app the home page will be looking similar to the below page.
<img width="300" height="152" class="alignnone size-medium wp-image-175" alt="publish_4" src="https://msdnshared.blob.core.windows.net/media/2016/11/Publish_41-300x152.png" /></li>
 	<li>Open your code in visual studio, right click on the project from solution explorer and select publish. From publish select the target profile as "Microsoft Azure Web Apps" then new pop up window open for your login credentials to sign in. After the pop up signs in then select the web APP slot and click on OK.</li>
 	<li>In the connection details if you select the web deploy then visual studio automatically downloads the publish settings for your account.</li>
 	<li>Select the mode in settings,</li>
 	<li>In Preview you can see all the files which are going to publish. Then click on Publish.</li>
 	<li>Visual studio will publish the files in to the selected slot.</li>
 	<li>You can browse the URL and you can find the home page is replaced with your app.</li>
</ol>
Thank you ...:)]]></content:encoded>
    </item>
    <item>
      <title>Viewing Macros in Excel…</title>
      <link>https://docs.microsoft.com/archive/blogs/vemula/viewing-macros-in-excel</link>
      <pubDate>Fri, 25 Nov 2016 15:28:22 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh Vemula - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/vemula/?p=86</guid>
      <description><![CDATA[Open the excel document and select file or menu button. Select options menu from the listed menu...]]></description>
      <content:encoded><![CDATA[Open the excel document and select file or menu button. Select options menu from the listed menu items. Check the Developer check box from the right side container. Then Developer Tab will be added in menu bar, click on it and select View code. Now you can see the code behind your excel file how it is processing the data. Please open your file in untrusted mode because they can script the file to upload your data in to their server.

Be cautious….:)]]></content:encoded>
    </item>
    <item>
      <title>Publishing Websites from Visual Studio...</title>
      <link>https://docs.microsoft.com/archive/blogs/vemula/publishing-websites-from-visual-studio</link>
      <pubDate>Fri, 25 Nov 2016 11:55:40 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh Vemula - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/vemula/?p=35</guid>
      <description><![CDATA[We can Publish our web application in different ways using visual studio in to AZURE or any other...]]></description>
      <content:encoded><![CDATA[We can Publish our web application in different ways using visual studio in to AZURE or any other host. The publishing differs by the location where we gonna deploy and what mode (debug or release) we use to deploy.
<ol>
 	<li>Select your application then right click on it to select publish.</li>
 	<li>Select the profile from the listed profiles or you can create one from custom. In the below screen shot I am created a new profile called test.
<img width="300" height="239" class="alignnone size-medium wp-image-105" alt="publish_1" src="https://msdnshared.blob.core.windows.net/media/2016/11/Publish_1-300x239.png" /></li>
 	<li>In the Connection step you can select the type of publish
<img width="300" height="164" class="alignnone size-medium wp-image-115" alt="publish_2" src="https://msdnshared.blob.core.windows.net/media/2016/11/Publish_2-300x164.png" /></li>
 	<li>Web Deploy, In this you can directly deploy your web app to your host site by entering the required fields.</li>
 	<li>Web Deploy Package, In this you can deploy your package to the given site by pointing it to the local folder.</li>
 	<li>FTP, You can deploy the site directly to the destination URL by filling up the required fields in the fields.</li>
 	<li>File System, When you don't know where to deploy it or, if you want to publish your code to local path and use the deploy folder then go with it. It is easy and one of the most used one by me. Selected File system from previous window.
<img width="300" height="239" class="alignnone size-medium wp-image-125" alt="publish_2_2" src="https://msdnshared.blob.core.windows.net/media/2016/11/Publish_2_2-300x239.png" /></li>
 	<li>After selecting the file system mode you should chose the target path to save the publish folder.</li>
 	<li>In settings you can choose which way you want to deploy the package, Is it release mode or debug mode.
<img width="300" height="168" class="alignnone size-medium wp-image-135" alt="publish_3" src="https://msdnshared.blob.core.windows.net/media/2016/11/Publish_3-300x168.png" /></li>
 	<li>In the last step you can see the preview of the selected profile, then click on the publish.
<img width="300" height="238" class="alignnone size-medium wp-image-145" alt="publish_4" src="https://msdnshared.blob.core.windows.net/media/2016/11/Publish_4-300x238.png" /></li>
 	<li>You can see the published files in the target path, you can deploy that to any server and point it by any IIS server web application.This way you can host your web apps.</li>
</ol>]]></content:encoded>
    </item>
    <item>
      <title>Everything about AZURE...</title>
      <link>https://docs.microsoft.com/archive/blogs/vemula/everything-about-azure</link>
      <pubDate>Thu, 24 Nov 2016 23:05:18 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh Vemula - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/vemula/?p=85</guid>
      <description><![CDATA[Following are the best ways to learn azure.

If your good at reading then use this link to know...]]></description>
      <content:encoded><![CDATA[Following are the best ways to learn azure.

If your good at reading then use this <a href="https://docs.microsoft.com/en-us/azure/index">link </a>to know about azure in depth or if you in need of training videos then go with the following <a href="https://mva.microsoft.com/en-US/training-courses/building-infrastructure-in-azure-using-azure-resource-manager-14321?l=9KXIToGgB_5500115888">link</a>, this two links are having the updated information of Azure resource model portal needed for clearing the 70-533.]]></content:encoded>
    </item>
    <item>
      <title>Powershell cmd to know the supported resource providers by location...</title>
      <link>https://docs.microsoft.com/archive/blogs/vemula/powershell-cmd-to-know-the-suppoerted-resource-providers-by-location</link>
      <pubDate>Thu, 24 Nov 2016 12:04:14 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh Vemula - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/vemula/?p=65</guid>
      <description><![CDATA[When deploying your resources, you also need to know which regions support those resources and which...]]></description>
      <content:encoded><![CDATA[When deploying your resources, you also need to know which regions support those resources and which API versions are available for the resources.

To know the available list of locations and there supported list can be retrieved by the following command in power shell.

"Get-AzureLocation"

<img width="300" height="169" class="alignnone size-medium wp-image-75" alt="azure-locations" src="https://msdnshared.blob.core.windows.net/media/2016/11/Azure-locations-300x169.png" />]]></content:encoded>
    </item>
    <item>
      <title>Could not load file or assembly Exception in Visual Studio</title>
      <link>https://docs.microsoft.com/archive/blogs/vemula/could-not-load-file-or-assembly-system-web-http-after-downgrading-from-vs-2015-to-2013</link>
      <pubDate>Wed, 23 Nov 2016 18:16:24 GMT</pubDate>
      <dc:creator><![CDATA[Rakesh Vemula - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/vemula/?p=25</guid>
      <description><![CDATA[Scenario :

One of our project is developed in VS 2013 then deployed in two pre-prod servers....]]></description>
      <content:encoded><![CDATA[<strong>Scenario :</strong>

One of our project is developed in VS 2013 then deployed in two pre-prod servers. Later , one of the server API started throwing random exceptions. After reading few articles about the process of picking dll's by CLR we came to know that VS picks dll's by simple names not by their exact name and version. In our project one of the referenced dll is having a reference to system.web.http v4.0 and also has the referencing to 5.2 but still the CLR is picking the 4.0 version at run time. This issue can be seen only at runtime.

<strong>Root Cause :</strong>

Visual Studio picks referred dll's using their simple names but not by the exact name and version.
<ol>
 	<li>If the project is having reference to the same dll of two different versions.</li>
 	<li>If the GAC is having a different version of the dll not similar to the version referenced by project then compiler will be confused on what to choose.</li>
</ol>
<strong>Solution :</strong>

The Issue is solved after removing web.http v4.0 from Object Browser dll's list. So, we have to remove the duplicate dll's from Object Browser .

&nbsp;]]></content:encoded>
    </item>
  </channel>
</rss>