Wriju's BLOG

.NET, Cloud and everything

Azure Automation with ARM and Azure Deploy – build the UI

Azure Resource Manager (ARM) templates are a great way to build your automation. These JSON files can be executed in many ways. One of them is through a portal experience where user can select a template and run them. The UI would show the progress step by step progress. Let’s see how we can do… Read more

Azure Resource Manager Training Video Series

Azure Resource Manager DevOps: (01) Overview https://channel9.msdn.com/Series/Azure-Resource-Manager-DevOps/01   Azure Resource Manager DevOps: (02) Tooling https://channel9.msdn.com/Series/Azure-Resource-Manager-DevOps/02   Azure Resource Manager DevOps: (03) Customizing Templates https://channel9.msdn.com/Series/Azure-Resource-Manager-DevOps/03   Azure Resource Manager DevOps: (04) Role-Based Access Control https://channel9.msdn.com/Series/Azure-Resource-Manager-DevOps/04   Azure Resource Manager DevOps: (05) ARM and ALM Integration https://channel9.msdn.com/Series/Azure-Resource-Manager-DevOps/05 Namoskar!!!… Read more

Azure App Services: Free Online Video Training

Mastering Azure App Service, Part 1: Building Azure Logic Apps https://mva.microsoft.com/en-US/training-courses/mastering-azure-app-service-part-1-building-azure-logic-apps-16829?l=N2TrqMY4C_305918563   Mastering Azure App Service, Part 2: Building Azure API Apps https://mva.microsoft.com/en-US/training-courses/mastering-azure-app-service-part-2-building-azure-api-apps-16830?l=jI6yrcY4C_9605918563   Mastering Azure App Service, Part 3: Building Azure Web Apps https://mva.microsoft.com/en-US/training-courses/mastering-azure-app-service-part-3-building-azure-web-apps-16835?l=VucUekp4C_4405918563   Mastering Azure App Service, Part 4: Building Azure Mobile Apps https://mva.microsoft.com/en-US/training-courses/mastering-azure-app-service-part-4-building-azure-mobile-apps-16836?l=clkpPiI5C_5106218965 Namoskar!!!    … Read more

Azure Resource Manager (ARM) – Find the template code of an Azure Resource

While you were exploring ARM, you may want to check how ARM needs to be created. One of the easiest ways is to explore the created Azure component. Here I have created Azure VM and wanted to check the ARM behind it. So, in the portal you will find a section “Automation” script. In that… Read more

Setting up Node.js Development to avoid manual server restart

In my previous post, I have shared how we can make the startup page for Node.js. Now every time we change anything to the server we need to go to command prompt and rerun the command. Instead we can make something which will keep watching changes in specific types of file and restart the server… Read more

How to make a startup page in Node.JS

In a typical Node.JS project you may have many JavaScript files. And running them from your command prompt you may need to explicitly type the name of the file. $ node app.js Instead in development we can get rid of this by creating startup page. To do that we need to add a line in… Read more

Node.JS Editor Bracket

While I was trying to find the editor for JavaScript Development, I found this Bracket. This is an Open Source Editor from Adobe and comes with many useful extensions. You may download it from http://brackets.io/ Here are the few extensions I have configured You may try them out. Namoskar!!!… Read more

Visual Studio 2015 as Node.JS Editor

Being a loyal Visual Studio 2015 user since 14 years I always prefer to use it for anything and luckily I have been fortunate enough to get all possible extensions. Now when I am getting my hand dirty with Node.JS I find another. You need to go under Visual Studio Menu > Tools and Extensions… Read more

Create CSV File List using PowerShell

  Text version to copy $arr = @() $rootFolder = “E:\Wriju_Documents\E-Books All\Art EBook” $a = Get-Date $fileDate = ($a.Day.ToString() + $a.Month.ToString() + $a.Year.ToString() + $a.Hour.ToString() + $a.Minute.ToString() + $a.Second.ToString()) $outputFile = “c:\temp\FileList_” + $fileDate +“.csv” $fileExtension = “.pdf”   Get-ChildItem -Path $rootFolder -Filter $fileExtension -recurse | ? {$_.PSIsContainer -eq $False} | % { $obj =… Read more

Add User to Azure Active Directory using Graph API

This post should have appeared before the other related posts. However let us see from the ground up how we can build an application to use Azure AD Graph API to add the user to AAD. We first need to add an application in AAD Open the Azure AD in portal and open the application… Read more

Azure AD Graph API Create List of Users

Getting the list of users from AD is bit tricky. Firstly the call is Asynchronous and it is delayed. So no such straight forward foreach loop can help, Define the data model After that we can write something like, private async Task GetUsers() { List<UserGridData> userData = new List<UserGridData>(); var adClient = GetAADClient();   var… Read more

How to delete Azure AD User using Graph API

Adding user to Azure AD (AAD) is straight forward. However when we want to delete the user we may face some issues. I have discussed that in my previous post “Error Authorization_RequestDenied while Editing Azure AD Object” https://blogs.msdn.microsoft.com/wriju/2016/07/20/error-authorization_requestdenied-while-editing-azure-ad-object/ Once you have the Application added to AAD and using that to manipulate the objects you may… Read more

Error Authorization_RequestDenied while Editing Azure AD Object

Azure Active Directory allows applications to add user via Graph API through an Application Key. Generally there is no such issue when adding a new record. However, when someone wants to modify or delete a particular record may face the below issue   System.Data.Services.Client.DataServiceRequestException: An error occurred while processing this request. —> System.Data.Services.Client.DataServiceClientException: {“odata.error”:{“code”:”Authorization_RequestDenied“,”message”:{“lang”:”en”,”value”:”Insufficient privileges… Read more

Azure Active Directory Limits and Restrictions

There are certain limits to Azure AD when we work. As from my experience we often run into roadblocks when we run automated tests and the created objects are not destroyed afterwards. Here are some limits as of today, Application Max 10 users can be the owner of a single application Objects Max of 500,000… Read more

Git Extension Videos

Recently I am using Git Extension tool to use Git check-in. Here are some videos available Clone – Git Extensions – http://www.youtube.com/watch?v=TlZXSkJGKF8 Commit changes – http://www.youtube.com/watch?v=B8uvje6X7lo Push changes – http://www.youtube.com/watch?v=JByfXdbVAiE Pull changes – http://www.youtube.com/watch?v=9g8gXPsi5Ko Handle merge conflicts – http://www.youtube.com/watch?v=Kmc39RvuGM8 Namoskar!!!… Read more

How to Calculate SLA for a Product

When we work against multiple Azure Services for a Single Product we need to handle the SLA (Service Level Agreement) carefully. It is not min or max or the average of SLA per services. Let’s take an example, Table 1 Service SLA App Service 99.95% Azure Active Directory 99.9%       What these %… Read more

Generating ASP.NET Web API Documentation

Swagger is one of the most popular documentation and code generation engine for Web API. Unlike ASMX WebServices where we could use WSDL to generate C# class file to refer and write code which could compile we need some client wrapper in Web API. Hence Swagger comes handy to perform those documentation and client code… Read more

Free Sequence Diagram Tool

I happen to find one free online Sequence Diagram Tool at https://www.websequencediagrams.com/  The name is pretty easy to remember and it has little command like interface which translates your text to diagram. You may also be able to choose the format, I find it very helpful and quick. Namoskar!!!… Read more

How to create TFS 2015 and Deploy as Scheduled Job

Many times we may need to deploy some code which will run in the back ground as a continuous process or scheduled job. For this we often create Server Plugins. But the problem with Server Plugin is, it runs every time something or other happens. Let’s say you have created one Server Plugin which monitors… Read more

Open XML Create Excel from scratch

Open XML SDK allows you to work with Office products without installing any COM component. It also solves the age old issue of Office automation in server. Mainly in web scenario, it is recommended that one should not automate any office components or activities. Reason behind it is, if anything is crashed while automating then… Read more

Building Simple Math Problems for Jounior School

My daughter studies in junior school and we often face issues getting her enough problem for simple addition and subtractions. So I decided to make an algorithm to generate them. Conditions I needed to follow, 1. It needs to be two digit 2. For addition it needs to be no carry forward, means addition needs… Read more

Getting Azure VM Remote Desktop File in PowerShell

I often just need the Remote Desktop file of a VM  to work. For that it takes a longer time to go to the portal and download. Rather I prefer the PowerShell way of doing it. $vm = "WGTFS2015" $service = "WGTFS2015" $file = "C:\Azure\WGTFS2015.rdp" Get-AzureRemoteDesktopFile -Name $vm -ServiceName $service -LocalPath $file Invoke-Item $file Namoskar!!!… Read more

How to create Shared Access Signature (SAS) for Blob and Container

There are few ways by which you could created Shared Access Signature (SAS) for Azure Storage Blob or Container. This one is probably the easiest. 1. Download and install Azure Storage Explorer from http://azurestorageexplorer.codeplex.com/ 2. Then add the storage account name and key 3. Then select a container or Blob and select “Security” 4. Then… Read more