This tutorial will walk you through how to create a MiniBlog website on the cloud using Microsoft Azure.
Why do I choose this combination?
MiniBlog is a blogging engine based on HTML5 and ASP.NET.
Don't under estimate it by the name MiniBlog. Just like MiniProfiler, the "Mini" part has the meaning of "Simplicity". Indeed, they are very powerful tool to accomplish one mission at a time.
- It does not use database. This is a huge financial advantage because you don’t have to pay for a database.
- Besides, it's small and easy to use. You will master all its functionality in just a few minutes using it.
- I can use Windows Live Writer to create and edit the posts. Big time saver.
Why do I choose Microsoft Azure?
Let’s get started.
- Create an account with Microsoft. You can skip the walk through of this step if you have one already.
Go to https://signup.live.com
In my case, I choose to create a new Hotmail account so that I don’t have to go through email activation steps. If you enter your Gmail account, it may send an email asking you to click the link in the email to confirm that you own the email address. Any case, you should be able to sign in using the newly created account.
- Create Azure access for your Microsoft account.
Sign in to Azure: http://bit.ly/1oAZNQk
If this is the first time you sign in to Azure, it will ask you to provide billing information. I know, this is not an easy feeling when you are being asked for your credit card even before you can have a free trial. But I have got the first 1 month for free. After that I had to select a subscription to continue the service. My subscription costs only $10 a month.
Enter a phone number to receive an SMS for confirmation.
Once you have the SMS message, enter the number mentioned in the content of the SMS message to verify.
Enter credit card information.
- Create a website.
Go to Azure’s Portal.
Read the Tips. Or skip it.
Use Quick Create.
- Download and customize MiniBlog.
Download from https://github.com/madskristensen/MiniBlog.
Unzip and copy to a folder of choice (C:\AnyFolder\MiniBlog)
Double click to open the solution in Visual Studio.
Double click to open the web.config file. Enter your information to the appropriate lines.
Press F5 or click Debug to see your changes.
- Create your first post.
You must sign in to delete or create new posts.
Sign in using username “demo”, password “demo”.
Admin buttons will show only after successful login.
To delete a post, click its title. Then, delete.
To make a new post, click New post.
- Deploy everything to Azure.
Before you deploy, make sure you change the default login. I recommend you to change both username and password.
Do another test run, try the new login. If everything is good, right click the project and select Publish Website.
Select Windows Azure Web Sites as target.
Sign in using Microsoft account associated with the Azure website you have created above.
Select the website. Click OK.
Everything should be filled in automagically for you. Click Publish.
Visual Studio should shows successful deploy.
Congratulations! You now have your own blog!
You can create posts and promote your blog on social networks, forums, search engines… But don’t forget to add the source code to a source control repository. In my case, I use Visual Studio Online because Microsoft offers unlimited free private repositories for teams smaller than 5 people.
If you would like to have a domain (url) different than the default (ugly) *.azurewebsites.net, you will need to upgrade your Azure account to a subscription. Only then, you can hook your website up with a custom domain.
Happy owning (and keep spawning) a new blog. Now you don’t have to play by any publisher’s rule to publish your own content to the world.