Category: Azure

0

Deploy .Net Core Console Application based Azure WebJob using PowerShell

In this tutorial, We are going to see how to deploy an Azure WebJob which is based out of an .Net Core Console Application using PowerShell. At this point of time there is no built-in support in Visual Studio to deploy .Net Core based application as an Azure WebJob. We can either deploy the WebJob directly at Azure Portal (which is straight forward) or by using PowerShell. We are going to use combination of PowerShell and Azure Cmdlets to deploy the WebJob.

2

Azure WebJob with .Net Core Console Application

In this tutorial we are going to see how to use .Net Core Console Application as an Azure WebJob. .Net Core Console application is different from traditional .Net framework Console Application in generating the project outputs. Traditional .Net framework Console App generates executable as project output, but .Net Core Console App will generate DLL (library). We have to do little extra work to make .Net Core Console Application work as Azure WebJob.

5

Create a simple Azure WebJob with parameters

In this tutorial we are going to see how to create a simple Azure WebJob using a C# console application with parameters. Azure WebJobs are used to run scripts or programs (typically long running) as background processes on Azure Web Apps. WebJobs can be ran in three different ways – Manually triggered, Trigger on a Schedule and continuously trigger. WebJobs are capable of executing different scripts(for example cmd, bat, exe, js, jar, ps1 etc.,).

0

Enable and retrieve AzureWebsite Diagnostics logs using PowerShell

In this article, I am going to show how to enable AzureWebsite diagnostic logs using PowerShell. An AzureWebsite supports both Web Server logs and custom application logs. We can identify IIS level request and response information using Web Server logs. Using custom application logs, we can write custom trace messages to track the code flow. We are also going to see how to retrieve these logs for a particular AzureWebsite using PowerShell.

0

Create/Publish/Delete AzureWebsites using Azure PowerShell

In this short tutorial, I am going to narrate step by step process on how to create an AzureWebsite and publish a Visual Studio 2013 ASP.Net MVC Website using Microsoft Azure PowerShell. Even though we can perform the same operations from Azure Management Portal (and also through Visual Studio), we get more flexibility and control while automating deployment and maintenance tasks from PowerShell. One can create simple scripts which can perform end to end deployment activity (a deployment is not just deploying website, it usually involves creating Databases, Users etc.,).

0

JumpStart # 37– Get the list of all AzureWebsites Cmdlets

In this short jumpstart, I am going to show how to get list of all AzureWebsites Cmdlets from latest Microsoft Azure PowerShell – May 2015 release. This jumpstart is the starting point of series of blog posts which will narrate different automation techniques involved around AzureWebsites. As the first step, we get list of AzureWebsites cmdlets and keep them as a reference.

0

Book Review – HDInsight Essentials by Rajesh Nadipalli

Being a tech geek, I always find different sources to educate myself with new technical trends. So far I found World Wide Web (blogs, columns, webcasts, podcasts etc.,) as the most preferable medium to maintain consistency in our daily learning activity. Having said that, one cannot find a proper learning path for a given technology very easily over internet. This gap in continuous learning is filled by reading books which suggests and exemplifies a proper learning path. “HDInsight Essentials” by Rajesh Nadipalli is a perfect example which falls in the afore mentioned category.

2

Publish Two Visual Studio Projects to single AzureWebsite

In this short tutorial, I am going to show how to publish TWO different Visual Studio Web Projects to a single AzureWebsite. At times we might required to separate architecturally our web components to multiple physical Visual Studio projects to address separation of code concerns. Even though we maintain them separately, we have to publish them (or host them) on a single website. I am going to demonstrate step by step process on how to publish multiple projects to a single AzureWebsite and make every web component work as expected.

2

Staged Publishing support for AzureWebsites

ScottGu recently (yesterday) announced the staged publishing support for Windows AzureWebsites. The concept of staging deployment is not new in Azure world, we have this support from long time for Cloud Services. In Cloud Services, we can simply make a staging deployment and then test it thoroughly to ensure the integrity and new features of new version, once we test the staging deployment we can simply make a swap between staging and production versions. Thus we get new features and changes included in new version into production with a single button click.

2

Azure Table Storage Concurrency Test and Importance of ETag Property

In this tutorial, I am going to show how Azure Table Storage entities are being protected for their data integrity during concurrent transactions. Table storage entities are using a property called ETag (included for every entity by default) to keep track of version of an entity. When a outdated Etag or an invalid ETag comes along with an update operation, table storage is going to throw an exception “412 – Pre-condition failed”. Table storage entities also provide an option to force update an entity if in case ETag is allotted a value of “*”.

0

Access SQL Server on Azure VM from SSMS of another machine

In this tutorial, I am going to show how to quickly configure SQL Server hosted on Azure VM so that it can be accessible from external SQL Server Management Studio. First we add an end point for the VM in a Azure Management portal. As a second step we open that port (of added end point) to the inbound rules of VM firewall. As a next step we enable TCP connections of the SQL Server on VM and restart the SQL Server instance. Finally we enable SQL Authentication (along with Windows Authentication) for SQL Server and create a SQL Login. We then use the created login to access SQL Server from remote SSMS.

0

Azure Gotcha # 2–Use Save-AzureServiceProjectPackage to create CSPKG deployment package

In this short gotcha, I am going to show how to use an Azure PowerShell Cmdlet. Save-AzureServiceProjectPackage to generate CSPKG format cloud deployment package. CSPKG is a cloud ready package and can be upload directly to a cloud service either through management portal or through PowerShell. Previously when there is no support (this cmdlet not used to work before Azure PowerShell 0.7.2) for Save-AzureServiceProjectPackage, we were forced to use CSPack to generate the package.

0

Azure Gotcha # 1–HDInsight Hive Query PowerShell Cmdlets Double Quote Issue

In this quick gotcha, I am going to show how double quotes can create issues which running Apache Hive query using Windows Azure PowerShell Cmdlets. We have Azure cmdlets like New-AzureHDInsightHiveJobDefinition, Start-AzureHDInsightJob etc., which support running hive queries as map reduce jobs in HDInsight. But there will be a format issue when double quotes are included in the query. To bypass the format issues, one cane use Invoke-Hive cmdlet to invoke the same query. This gotcha applies for cmdlets of version 0.7.2.

5

JumpStart # 31– Create and deploy new Azure Cloud Service using Package (CSPKG) generated by Azure PowerShell

In this short tutorial, we are going to learn how to create new Azure Cloud Service deployments through Windows Azure PowerShell cmdlets. Deployment though PowerShell can be achieved by first creating a package (CSPKG) for the Visual studio project which is intended to be deployed. As a second step we upload the package to a Windows Azure Blob Storage. Finally we create a new Azure Cloud Service and deploy the uploaded package to it.

2

JumpStart # 30– Create Azure Cloud Service Package (CSPKG) of Visual Studio 2013 project solution using PowerShell

There can be scenarios where we need to have control on building the Azure Cloud Service Packages, say for example when we want to dynamically override some files in the project and build the package on the fly. In this short tutorial, we are going to see how to create a CSPKG file, which can be deployed to a Azure Cloud Service. Although Windows Azure PowerShell Cmdlets provide an option Save-AzureServiceProjectPackage to create a package file for a cloud project, this cmdlet is NOT (atleast with Windows Azure PowerShell 0.7.1 version) going to work for the project solutions which are created using Visual Studio IDE. Save-AzureServicePRojectPackage is only going to work for solutions which are created using cmdlets.

0

JumpStart # 29– Remote Debugging an AzureWebsite from Visual Studio 2013

With the new release of Windows Azure SDK 2.2 for Visual Studio 2013, we can now remotely debug all the application in the cloud in a easier way. In this short tutorial I am going to show on how to remotely debug a website which is hosted in Windows Azure in simple steps. Prerequisite for this tutorial is Windows Azure SDK 2.2, anyone can download it from Microsoft Windows Azure Downloads.