Wriju's BLOG

.NET, Cloud and everything

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

Delete an Azure Active Directory

Problem When you try to delete an Active Directory you will go crazy because  You will get an error   You will clean all the users but will still get the below error.   You try to clean up all the applications in the list of applications. You select “Applications my Company owns” and the… Read more

Azure Free E-Books

Azure eBooks Data Science in the Cloud with Microsoft Azure Machine Learning and R Azure Essentials – Azure Automation Azure Essentials – Fundamentals of Azure Azure Essentials – Azure Machine Learning Azure Essentials – Azure Web Apps for Developers Introducing Microsoft Azure HDInsight Developing Big Data Solutions on Microsoft Azure HDInsight   Namoskar!!!… Read more

Tips for Microsoft Certification : Developing Microsoft Azure Solutions (70-532)

Life is a continuous learning process and equally unlearning. Especially in the cloud space where everything is changing rapidly. I have been working with Azure since its inception. Much before Azure came into the market and got announced in PDC 2009 (if I recall), I was accessing it with early access. Back then it was… Read more

ADO.NET EF and Repository Pattern

This is a fantastic blog series by Julie and who don’t know Julie??? Repository Pattern this is ideal for testing and mocking. Julie is one of the wizards of EF has written a series, Agile Entity Framework 4 Repository: Part 1- Model and POCO Classes http://thedatafarm.com/data-access/agile-entity-framework-4-repository-part-1-model-and-poco-classes/ Agile Entity Framework 4 Repository: Part 2- The Repository… Read more

Connecting on-premises SQL Server using Azure Service Bus Relay

This issue seems very common rather we can call it a requirement. Business Need. We have a Web Site (assume hosted in Azure). Now we have a SQL Server located locally behind the firewall. We cannot move this database outside of our data center. One of the easiest ways to use it through Service Bus… Read more

Top 10 things while migrating existing Web Applications to Azure

Microsoft Azure is another sophisticated hosting platform. For Web Sites where we have code written and wanted to move it to Azure we would obviously be facing some challenges if it as never designed for distributed environment, 1. Should not use In-Proc Sessions. In Web development it is very common to use sessions. Sessions are… Read more

Azure PowerShell : Forbidden Error: The server failed to authenticate the request

You have used Add-AzureAccount command to connect to Azure Account or might have used .publishsettings file. But even after you have successfully connected you get this error every time you want to run any Azure command Forbidden Error: The server failed to authenticate the request Your frustration mounts. Many try, many searches in various forums…. Read more

Windows 10 – Latest Developer Resources

Microsoft Virtual Academy Training A Developer’s Guide to Windows 10 BUILD 2015 Sessions Introducing the Windows 10 App Model – https://channel9.msdn.com/Events/Build/2015/2-617 What’s New in XAML for Universal Apps – https://channel9.msdn.com/Events/Build/2015/2-629 UX Patterns and Responsive Techniques for Universal Windows Apps – https://channel9.msdn.com/Events/Build/2015/2-658 All That is New in the Windows Store – https://channel9.msdn.com/Events/Build/2015/2-664 From the Small Screen… Read more

DocumentDB Add and Read – Simple Approach

I wanted to create a simple sample which would Add and Read records in DocumentDB. Created one Windows Forms Application, added NuGet Package Then in the Windows Forms I have added simple Text box to enter data and grid to display it. The data model would look like, this has dependency using Newtonsoft.Json;   //Employee… Read more

Effectively use Azure MSDN Account to avoid exceeding the quota

Many of you use Free MSDN Azure account for Dev/Test. This post is all about using Free Azure account which has a limited quota for use. A lot of times where these kind accounts are temporarily suspected due to the excess use. I am writing this based on my personal experience maintaining similar account for… Read more

Azure Runbook Schedule Time Zone

When we select the time to create the Runbook Automation Scheduler we get confused which timezone it would take. Here are they, 1. When you use portal to create the Schedule Job for Runbook it takes the browser time and converts it to UTC 2. When you use PowerShell or SDK then you must use… Read more

Azure PowerShell : Shutdown All Azure VMs

To Shutdown all Azure VM you don’t need to go to individual and then press the button. But run an elegant PowerShell $AzureSubscriptions = Get-AzureSubscription foreach ($subscription in $AzureSubscriptions) { Write-Host $subscription.SubscriptionName Select-AzureSubscription -SubscriptionName $subscription.SubscriptionName #Write-Host $subscription.SubscriptionName foreach ($vm in Get-AzureVM) { $name = $vm.Name $servicename = $vm.ServiceName If($vm.Status -ne ‘StoppedDeallocated’) { # Add the… Read more

Azure PowerShell : Get the List of VM Images

Addition: Thanks Roy Lofthus, I love the comment and hence adding You can run below comment to get the grid. Get-AzureVMImage | Select * | Out-Gridview –Passthru The –Passthru will get the context back to PowerShell window. You can do the further filter etc in that Grid. To get all the VM Images you can… Read more

Azure and PowerShell

Azure and PowerShell are the couples. If you talk about only one of them then you are not talking complete story. We have got couple of PowerShell modules available in Azure and many things can only be done through PowerShell. Here are few easy steps to connect to Azure through PowerShell 1. Run “PowerShell_ISE” 2…. Read more