Wriju's BLOG

.NET, Cloud and everything

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

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

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

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

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

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

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

Selling Azure Open Licensing for Partners

In Worldwide Partner Conference 2014 we have announced the Azure Open Licensing for Partners. This is going live from August 1, 2014. Here are some resources to help understand Watch this video at http://www.digitalwpc.com/Community/Perspectives/Pages/Announcing-Microsoft-Azure-in-Open-Licensing-for-partners.aspx#fbid=PsEQVDjbmOh Another very informative blog post Coming Next to Open Licensing: Microsoft Azure Ready To Go resources for partners   https://readytogo.microsoft.com/global/_layouts/RTG/DownloadCampaign.aspx?campurl=https://readytogo.microsoft.com/global/campaign/pages/(global)%20microsoft%20azure%20in%20open%20licensing.aspx Additional… Read more

SQL Server in Azure VM High Availability and Disaster Recovery

This is the most commonly asked question on SQL Server in Azure Virtual Machine. How to maintain SQL Server up and running all the time. Options are High Availability (Azure) 1. AlwaysOn Availability Groups (http://msdn.microsoft.com/en-us/library/azure/dn249504.aspx) 2. Database Mirroring (http://msdn.microsoft.com/en-us/library/azure/jj870961.aspx) Disaster Recovery (Azure) 1. AlwaysOn Availability Groups (http://msdn.microsoft.com/en-us/library/azure/dn690122.aspx) 2. Database Mirroring (http://msdn.microsoft.com/en-us/library/azure/jj870960.aspx) 3. Backup and Restore… Read more