Posts

Showing posts from November, 2018

Setting up Free Custom Domain on Microsoft Azure Web App Service

Image
In this blog, we will see how we can get a free domain, create a web app on Microsoft Azure and configure a custom domain on it.We will look into following things: Registering a free domain with  Freenom Creating a Web App in  Microsoft Azure   Configuring a custom domain on Microsoft Azure Web Apps Registering CName and A records on Domain Host-name provider (Freenom) Create and deploy ASP.NET web application on Microsoft Azure Web App through Publish Profile Register Free Domain (.tk) Getting a free domain is not a myth, you can easily obtain a free domain from  Freenom . It provides domains of .tk, .ml, .ga, .cf and .gq host names. The procedure is as follow: Goto  Freenom  and search for the domain name (here I have searched breakthrough77). Search results show availability of name in different domain types. As we can see (as of now) there are five domains available for free. Click on Get it now . After selecting domain, click on Checkout . We can

Microsoft Azure Blob Storage - Managing Blobs and storage containers from C#

Image
This is the part two of Microsoft Azure Blob Storage where we will look into managing Microsoft Azure Blobs from C# and .NET. For this blog, we are going to keep this pretty simple. We will create a new .net console application and add two Nugget packages that make it super easy to work with Microsoft Azure Blobs. Include these two Nugget Packages: WindowsAzure.Storage Microsoft.WindowsAzure.ConfigurationManager Obtain Access keys from Azure Portal  Add it Access Key to App.Config Include Microsoft Azure Storage namespaces using Microsoft.Azure; using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Blob; Add a Container in Azure Blob Storage from C# var storageAccount = CloudStorageAccount.Parse(                 CloudConfigurationManager.GetSetting("AzureStorageConnection")); var blobClient = storageAccount.CreateCloudBlobClient(); var container = blobClient.GetContainerReference("mycontainer"); container

Microsoft Azure Blob Storage - Concepts and Portal Overview

Image
Microsoft Azure Blob Storage is a storage service for storing unstructured data which generally includes images, videos, text files, binary data and other files of unstructured nature. There are three categories of blob storage : Page Blob Block Blob Append Blob Page Blob: Ideal for files that requires frequent input/out operation.  For example, virtual hard drive .vhd files are ideal candidate for page blob. Block Blob: Block blob files are the ones that do change very often such as image and video files. Append Blob: Append blob files are optimal for saving log files that generally work in append mode. To storage unstructured data as blobs in Microsoft Azure, you need create a storage account then inside of storage account - you need to create a container under Blobs section and then upload data into that container. Containers are like workspace in which one or more blobs are grouped together. Now lets see how blobs are created in Microsoft Azure Clo