Wriju's BLOG

.NET, Cloud and everything

Pointing an existing ASPNET Core WebAPI from MongoDB to CosmosDB

Use case: An existing Application was written using ASPNET Core pointing to an installed MongoDB in Ubuntu Server. Since CosmosDB is fully managed globally distributed NoSQL database and also supports Mongo API it is easy to reuse the same code and point it to CosmosDB by just changing the connection string at the application. No… Read more

Easy steps to create Azure Kubernetes Service

Step 1: Open the bash cloud shell from browser https://shell.azure.com Step 2: Create a resource group in AKS supported region (check https://docs.microsoft.com/en-us/azure/aks/container-service-quotas) $ az group create -l eastus -n rg-wgaks Step 3: $ az aks create -g rg-wgaks -nwgakscluster –generate-ssh-keys To check: Step a: Run below Step b: the output should look something like below… Read more

Download All Build 2018 Sessions offline

Edited All the build sessions are listed here in Youtube as a playlist https://www.youtube.com/playlist?list=PLlrxD0HtieHg7uB3_amVXvaRgxIcXLtYD Using this playlist, we can get all the individual session URLs via PowerShell After I was able to create the list, there are two options for me, The offline list https://github.com/wrijughosh/PowerShellWG/blob/master/Build2018All.pdf I can add only the URLs of my interest and… Read more

Build 2018 All Sessions

All of the Microsoft Build Sessions are here http://aka.ms/build2018all There are around 200 plus sessions. Time is the only challenge you have now…. Read more

Bulk VM creation from CSV using Azure PowerShell

This sample talks about few basic aspects of Azure PowerShell, 1. Reading from CSV 2. Parameterizing PowerShell 3. Calling another PowerShell from PowerShell with Parameters Now let’s see how the CSV lools like, And I am going to use these three columns as input parameters for another script. So to read this one might use… Read more

Azure April 2018 Updates

Power BI Embedded Q&A added to Edit and Create modes for report authors Power BI Embedded supports additional mobile gestures Power BI Embedded: Get visual data Power BI Embedded Bookmarks API General availability: New regions for Red Hat Update Infrastructure General availability: Azure zone-redundant snapshots and images for managed disks Support for operationalising Azure Databricks… Read more

Migrating from Azure Service Manager (ASM) Virtual Machines to Azure Resource Manager (ARM) VM

Time is up. With the announcement of http://manage.windowsazure.com is no more available since 2nd April 2018, it is high time you think around your classic Azure (ASM) resources. Most of the classic services can be managed from new portal i.e., https://portal.azure.com Here we will consider classic Virtual Machines with Virtual Networks. This is simple because… Read more

Azure Updates – March 2018

General availability: Global VNet Peering Global VNet Peering is now generally available. Global VNet Peering enables resources in your virtual network to communicate across Azure regions privately through the Microsoft backbone. VMs across virtual networks can communicate directly without gateways, extra hops, or transit over the public internet. This allows a high-bandwidth, low-latency connection across… Read more

One Azure Learning Video to make you a hero from zero

Great Azure Learning Video for 2 hour 40 min, this contains Content 00:05:00 – The Azure Portal 00:10:12 – Networking in Azure 00:22:16 – Azure Virtual Machines 00:50:57 – Containers and Kubernetes Orchestration 01:03:39 – Directory Services and Azure AD 01:18:23 – DevTest Labs 01:29:48 – Backup and Disaster Recovery 01:37:15 – WebApps 01:55:05 –… Read more

All about PaaS PostgreSQL and MySQL in Azure

Fully managed PostgreSQL and MySQL is now GA. This means you can use them in production. The announcement: https://azure.microsoft.com/en-us/blog/announcing-general-availability-of-azure-database-services-for-mysql-and-postgresql/ Video: https://youtu.be/ElKfEurMi9E Compliance: https://azure.microsoft.com/en-us/blog/compliance-offerings-for-azure-database-for-mysql-and-azure-database-for-postgresql/ Security: https://azure.microsoft.com/en-us/blog/securing-azure-database-for-mysql-and-azure-database-for-postgresql/ Check the Azure datacenter region availability: https://azure.microsoft.com/en-us/global-infrastructure/services/ User Feedback or feature request: https://feedback.azure.com/forums/597976-azure-database-for-postgresql Last but not the least is your beloved documentation: MySQL https://docs.microsoft.com/en-us/azure/mysql/ PostgreSQL https://docs.microsoft.com/en-us/azure/postgresql/ Migrate your on-premises data… Read more

Azure Labs are Free for you

https://www.microsoft.com/handsonlabs/SelfPacedLabs As of today there are 227 labs. For me time is the issue here. I wanted to do all of them. So why to wait for a classroom training? Enjoy the learning…. Read more

Azure Release Update February 2018

GUID migration: Stream Analytics Public preview: Azure Backup integration with Azure Files Power BI Workspace Collections is being retired General availability: Application consistent backup for Linux VMs by using Azure Backup Analytics Platform System: Hardware refresh available for HPE appliances from May 2018 Skip header rows on SQL Data Warehouse PolyBase load Seamlessly troubleshoot and… Read more

Azure Release Update January 2018

·       General availability: Virtual Network Service Endpoints and Firewalls for Azure Storage ·       .NET Core 2.0 support for App Service on Linux ·       General availability: Azure Network Watcher in Microsoft Azure Germany ·       General availability: Azure Network Watcher in Microsoft Azure Government ·       Azure DevTest Labs: Set expiration date for a lab announcement ·       Azure… Read more

Weekly Azure Blogs

Compute Continuous-Deployment to Azure Imperial College Hack – ICHack18 Cognitive Challenge Winners Spidentify Cloud Platform Release Announcements for February 21, 2018 Azure App Service Environment Available in Azure Government Cost Optimization on Azure Announcing Azure US Government regions on Azure Status page New Azure GxP guidelines help pharmaceutical and biotech customers build GxP solutions Networking… Read more

Find unused Managed Disks

In your Azure you might have created Managed disks and never used them. Do you still pay for disks which are not in use? Then delete them if they are not in use. https://github.com/wrijughosh/PowerShellWG/blob/master/OrphanDataDisk.ps1 Namoskar!!!… Read more

Quick Tip while working with Azure PowerShell

Azure PowerShell is an ocean of commands. Remembering them while working is next to impossible. Azure PowerShell gives you an elegant option to find out what you need. Few things I use while try to explore what’s there for me while exploring the options. Use Get-Help Get-Help is a powerful command. You can use it… Read more

Azure PowerShell Login “Remember Me”

We use “Remember Me” feature quite a lot in our personal computers for quick login. This seamless experience can be achieved in Azure PowerShell as well. When you work with Azure PowerShell it asks for the login. Once you close the PowerShell windows it automatically clears up the context. You may want to keep it… Read more

Know your Azure Subscription Quota and Usage

There are two ways by which you can face the Azure Subscription limit, Wait till you script fails provision the resources Check regularly on important services and their limit. Obviously the second option is the desired one and PowerShell do give few easy to run commandlets Few things you need, Login to Azure using PowerShell… Read more

Setting up Azure for your Enterprise

Did you hear about “Secure DevOps Kit for Azure”? This is all you need to set up Azure for your enterprise with control and compliance. It is a collection of tools, extensions, automations etc. It has six major areas, Secure the subscription Enable secure development Integrate security in CI/CD Continuous Assurance Alerting and Monitoring Cloud… Read more

Azure Update January 2018

Jan 31 General availability: Virtual Network Service Endpoints and Firewalls for Azure Storage Jan 30 .NET Core 2.0 support for App Service on Linux Jan 29 General availability: Azure Network Watcher in Microsoft Azure Germany Jan 29 General availability: Azure Network Watcher in Microsoft Azure Government Jan 29 Azure DevTest Labs: Set expiration date for… Read more

CentOS 7 changing other user password

I forgot one user’s password. Luckily, I could remember the root password. That enables me to change the other user password even if I don’t recall the current one. $ sudo su $ passwd username This prompted me to give the new password and confirm. That’s it…. Read more

Azure PowerShell Get to know about availability of the VM sizes

You may know that all Azure regions does not provide all types and sizes of VMs. So while designing a deployment it is important to understand what is in the store, A simple PowerShell would give you list of VM Sizes Get-AzureRmVMSize -location eastus You may also dump this to a .csv file Get-AzureRmVMSize -location… Read more

Microsoft Cognitive Services: The Language Understanding (LUIS) service generally available (GA)

Part of Microsoft Cognitive Services, the Language Understanding (LUIS) service provides simple tools that let you build your own language understanding models (intents/entities) to help any bot or app provide natural language-based interactions for users. They also let you: ✓ Use a comprehensive set of APIs that will interpret your sentences and identify intents and… Read more

DevOps in Azure

DevOps Project makes it easy to get started on Azure. It helps you launch an app on the Azure service of your choice in a few quick steps. DevOps Project set you up with everything you need for developing, deploying and monitoring your app. Creating a DevOps Project provisions Azure resources and comes with a… Read more

All Free Developer Tools

If you are a developer you may build applications without buying any tools you need. Most of the developer tools are free today. So go ahead and get them, https://www.visualstudio.com/dev-essentials/  All the tools you need Tools to develop for any platform – for free. Tools include an extensible integrated development environment and code editors to… Read more

Deploying with Azure

Production ready cloud applications need to be built for scalability, monitoring, management, security, resiliency, and more. The patterns covered in this guidance include example implementations for Microsoft Azure. Reference Architectures Best Practices Patterns Free Course Namoskar!!!… Read more

Microservices & Docker Architecture for Apps

Microservices are small, modular, and independently deployable services. Docker containers (for Linux and Windows) simplify deployment and testing by bundling a service and its dependencies into a single unit, which is then run in an isolated environment. Architecture e-book: PDF | Web | MOBI | EPUB DevOps e-book: PDF | Web Video Sample App Patterns… Read more

Azure Update – November 2017

Azure Notification Hubs .NET SDK now compatible with .NET Standard 2.0 Clearer choice of CLI: Azure CLI 2.0 for Resource Manager Public preview: Azure Automation watcher tasks GUID migration: Security and Audit solution for Azure Government Azure DevTest Labs: Post customized announcements to your lab Manage payment methods in the Azure portal General availability: Visual… Read more

Azure Container Service (AKS) and Kubernetes UI

Off late I was playing with new preview feature of Azure Container Services (AKS). This is a managed Kubernetes hosting environment. You don’t need to be an expert container orchestration. And with all managed Azure service this too takes the pain of infrastructure management. So, what I was doing and thought to share with you…. Read more

Microservices Guidance Is Now Available

Microservices guidance is now available at  Azure Architecture Center Microservices have become a popular architectural style for building cloud applications that are resilient, highly scalable, and able to evolve quickly. We explore how to model, build and operate a microservices architecture on Azure, using Kubernetes. Topics include: Using Domain Driven Design (DDD) to design a… Read more

Why a developer should not care about Serverless

Being a developer, one should be least bothered about Serverless. Why? Serverless is big bet and Gartner says “” etc. So what? Ask some basic questions to yourself, if Serverless going to reduce the coding effort? Those sleepless nights where you had debugged a thousand line JavaScript file with alert(‘1’), alert(‘function worked fine’) etc. The… Read more

Learn Power BI

The training is broken down in four self-contained modules: Module 0 – Exploring the portal Module 1 – Visualizations I Module 2 – Visualizations II Module 3 – Dashboard and sharing data Learn more about Power BI In this hands on lab, you have seen the basics of Power BI Service, creating out first reports… Read more

Azure Internet of Things IoT Hands on Labs

Easy: Node-Red will help you setting up a visual environment in your device and start creating a full IoT solution with very few code or even no code at all. Medium: Thing Labs is a step by step lab with an Intel Edison board, programming in Node.js and connecting it to IoT Hub. Requires basic… Read more

Azure IoT Security

Internet of Things security architecture When designing a system, it is important to understand the potential threats to that system, and add appropriate defenses accordingly, as the system is designed and architected. It is particularly important to design the product from the start with security in mind because understanding how an attacker might be able… Read more

Using Azure Storage for ClickOnce Deployment Windows Desktop application

ClickOnce and Windows Application are not new and so is Microsoft Azure. What appeals to me is the sleek way to distribute the apps across. This does not want any sort of deployment mechanism which enforces a large download and no auto update capability. ClickOnce has many such good features which I am in love… Read more

Azure Update – Oct 2017

Skylake Processors in FV2 Series VMs https://azure.microsoft.com/en-in/blog/fv2-vms-are-now-available-the-fastest-vms-on-azure/ Azure networking available only in the Azure portal from October 4 Starting October 4th, Azure Networking features will be available only in the new Azure portal, we will no longer be supporting classic portal for networking related resources   Azure Data Lake Analytics introduces capabilities to manage pipelines… Read more

Azure Learning Path

There are bunch of Azure Learning Paths available https://azure.microsoft.com/en-us/documentation/learning-paths/ As of today it covers a lot of major Azure services API Management App Service Mobile Apps documentation App Service Web Apps Azure Automation Azure Backup Azure IoT Suite and preconfigured solutions Learning Path Batch Cloud Services Cortana Analytics Process (CAP) Data Catalog Event Hubs IoT… Read more

All about Microservices

Microservices seems to be the end of the world now just like the legacy SOA, WCF, HTML5 and so on and so forth. If you are in Application Development industry you cant ignore it now. Better not. Here are some of the Microservices Resources Microservices – a definition of this new architectural term by Martin… Read more

উইণ্ডোজ অপারেটিং সিস্টেমে কিভাবে আপনার ডকুমেন্ট সুরক্ষিত করবেন

আমি মাঝে মধ্যেই দেখি আমার জানাশোনা লেখকবন্ধুরা তাঁদের ডেস্কটপ বা ল্যাপটপ খারাপ হয়ে যাবার কারনে লেখা হারিয়ে ফেলছেন। আমি লেখক নই কিন্তু জীবিকার খাতিরে আমায় নানারকম লেখালেখি করতে হয়। সেগুলি হারিয়ে গেলে বা মেশিন খারাপ হয়ে গেলে আমার পাগল দশা হবে। তার প্রতিকার হিসাবে আমি মাঝে মাঝেই আমার ফ্লপিতে বা সিডিতে কপি করে নিতাম। তা… Read more

Putting custom links to your Azure Portal Dashboard

How cool is it if you want to keep your custom links in Azure Portal Dashboard? Here are few simple steps, Open https://portal.azure.com and then click on “Edit Dashboard” Then you see “Tile Gallery” at the right side of the browser window at the left side. Select “Markdown” and drop it in your preferred location… Read more

Azure Update – March 2017

Mar 31 General availability: Azure Network Watcher Mar 31 General availability: Azure Monitor Mar 31 General availability: Azure resource health Mar 31 General availability: Azure Advisor Mar 31 Azure SQL Data Warehouse seamless integration with Azure Data Lake Store Mar 31 External file format support for UTF-16LE encoded files in SQL Data Warehouse Mar 31… Read more

Azure Update – April 2017

Apr 26 Azure Billing Reader role and preview of Invoice API Apr 20 Azure DevTest Labs: Use Azure CLI to create and manage lab VMs Apr 18 Release of Service Fabric SDK Preview 0.8.0.0 and Runtime Preview 5.5.0.2 for Linux Apr 18 Release of Service Fabric SDK 2.5.216 and Runtime 5.5.216 for Windows Apr 18… Read more

Azure Update – May 2017

May 31 Azure BizTalk Services: Simplifying our Azure offerings May 31 Azure DevTest Labs: Changes in exporting custom image VHD files May 29 Azure DevTest Labs: Use Azure CLI to claim VMs in a lab May 24 Azure Batch updates for May 2017 May 24 New Azure Data Catalog capabilities May 24 Azure DevTest Labs:… Read more

Introduction to Azure IoT

Microsoft is offering a free training on Azure IoT. If you really care about IOT you should check it out Join expert Jeremy Foster for this Azure IoT overview, and find out how to get started quickly. Explore the fundamentals of IoT and the Azure IoT platform, and see how the Azure IoT Hub easily… Read more

Azure CLI from Browser

Now you can run Azure CLI without installing it directly from //portal.azure.com On the top right corner you find the below icon “>_” next to notification This initiates a storage creation and one time setup.   After that Shell appears Then type “az” to enter into the Azure CLI. Rest is your playground. Troubleshooting Things… Read more

Azure App Services Security

Cloud and service and Security go hand in hand. Azure App Services is no exception to it. Here is the assorted list of security measures can be taken for App Services Secure your web app using various means of authentication and authorization Setup Azure Active Directory authentication for your app Secure traffic to your app… Read more

Azure App Services Migration Assistance

We have many tools paid and free to help us migrate workloads to cloud. There are a very few for Platform-as-a-service apps. It is believed that most of the time PaaS requires application re-write. However, a well-designed futuristic modern web application is ready for App Services most of the time. Microsoft provides state of the… Read more

What is your Azure SQL DTU

While sizing one of the points which comes to the mind is how can we SIZE our Azure SQL Database. Azure SQL Database tier is based on the unit known as DTU. This is combination of few things. Please refer the official Azure documentation for details. However Microsoft Azure also provides a small utility to… Read more

Latest Availability of Azure Services

Couple of Azure Services are now generally available (cloud version of RTM). Azure monitor: Built-in monitoring and diagnostics of Azure resources, enabling operational visibility across your cloud assets. For more please visit, https://azure.microsoft.com/en-us/blog/announcing-the-general-availability-of-azure-monitor/ Azure Analysis Services: is generally available, and is now available in three additional regions: UK South, Japan East, and West India, joining… Read more

Designing and moving applications to cloud

When working with customers we often come across the discussion on how one should plan on moving their line of business applications. Firstly, an enterprise needs to find the list of applications they are currently using which would then go to cloud. There are four types of applications, Applications which can be moved easily: now… Read more

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

Moving TFS 2015 VM to Azure as an Image and Creating Machine from It

As I had to use TFS 2015 and the quickest option was to get the ready VM by Visual Studio ALM team and push it to Azure. This is what I did 1. Created a VM in Azure 2. Downloaded the TFS VM as described in Blog http://vsalmvm.azurewebsites.net/alm-vm-2015-available-now/ 3. You must use Free Download Manager… Read more

Azure Certification Free Trainings

Below are the related courses for Azure Certification For 70-532 use Developing Microsoft Azure Solutions http://www.microsoftvirtualacademy.com/training-courses/developing-microsoft-azure-solutions For 70-533 use Establish Microsoft Azure IaaS Technical Fundamentals http://www.microsoftvirtualacademy.com/training-courses/establish-microsoft-azure-iaas-technical-fundamentals For 70-534 use Architecting Microsoft Azure Solutions http://www.microsoftvirtualacademy.com/training-courses/architecting-microsoft-azure-solutions Namoskar!!!… Read more

PowerShell why should you learn and how must start

If you really care about performing Automation in your System dominated by Microsoft products its high time that you start thinking seriously about PowerShell. Now since you are forced to use PowerShell a many of you might already have started but getting difficulties of interpreting the way it is written. Or you are writing in… Read more

Azure PowerShell Know the differences

There are a bunch of confusing PowerShell commands which looks the same by their name. Add-AzureDataDisk : Adds a data disk to a virtual machine. The Add-AzureDataDisk cmdlet adds a new or existing data disk to an Azure virtual machine object. Use the CreateNew  parameter to create a new data disk that has a specified… Read more

Azure PowerShell Getting the Remote Desktop File

When you are on Go and Portal is not responding well, you might be in need to get the remote desktop file of a Virtual machine Step 1: Login to Azure > Add-AzureAccount Point to the right subscription > Select-AzureSubscription -SubscriptionName "Your Subscription Name" Step 2: Then get the list of Virtual machines > Get-AzureVM… Read more

New Improved Blog Editor

Since the support for Live Writer was missing in Windows 10 I was heavily impacted. I am a blogger who is bit lazy and the Live Writer was just a perfect fit for me. Like many other things it was just like typing in word. You don’t need to worry about the place to keep… Read more

Manage your own Azure Subscription using PowerShell

You might be using a Dev/Test Azure account and to save the money you would like to Shutdown all the VMs. Since VMs are creating ad-hoc you don’t know the exact name. But you need to shut them down all. Let’s see 1.       Open Azure PowerShell 2.       Run Get-AzurePublishSettingsFile. This will ask login, log in… Read more