MS Exam 70-533: Implementing Microsoft Azure Infrastructure Solutions

MS Exam 70-533: Implementing Microsoft Azure Infrastructure Solutions.

via MS Exam 70-533: Implementing Microsoft Azure Infrastructure Solutions.


Create VM within Azure Premium storage

  1. Working with Azure Powershell
  2. Create Azure Premium storage and create a VM into that storage

Import your azure account (step 1 above)

Get image:

Get-AzureVMImage | select ImageFamily -Unique

Select Image and run

$family=”SQL Server 2014 RTM Web on Windows Server 2012 R2″ <– note: I select this family, select the one you want.
$image=Get-AzureVMImage | where { $_.ImageFamily -eq $family } | sort PublishedDate -Descending | select -ExpandProperty ImageName -First 1
$storageAccount = “chinhprestr”
$adminName = “AdminName”
$adminPassword = “xxx”
$vmName =”HTEVM”
$location = “Southeast Asia”
$vmSize =”Standard_DS3″
$OSDiskPath = “https:// ” + $storageAccount + “” + $vmName + “_OS_PIO.vhd”
$vm = New-AzureVMConfig -Name $vmName -ImageName $image -InstanceSize $vmSize -MediaLocation $OSDiskPath
Add-AzureProvisioningConfig -Windows -VM $vm -AdminUsername $adminName -Password $adminPassword
New-AzureVM -ServiceName $vmName -VMs $VM -Location $location

Create a FlipClock counting down with Counter clock face.

If you are working on a requirement that need to count down and doing something. You are reading the right page.

Using FlipClock is the easiest way to create a count down. (My oppinion).


Their home page:

flip clock

For clock face MinuteCounter, counting up or down already has been supported, all you need to do is add the option

countdown: true,
countdown: false,

And you have what you need.

But, I need something else, I want to have a count down with counter clock face (Only show seconds). After 30 second, I will do something. So, below is what I did:

  1. Set up the FlipClock
<div class="clock"></div>

<script type="text/javascript">
	var clock = $('.counter').FlipClock(300, {
		clockFace: 'Counter'


2. Create my own interval

	function CountDown() {
var refreshIntervalId = setInterval(function () {
}, 1000);

setTimeout(function () {
// doing some thing after 30 second
//pause video
var myVideo = document.getElementById("video");

// clear interval for new counting down
alert('Time's Up');

// Do some other thing like loading sthing into a dialog:
//load result
$('#dialog').load("@Url.Action("Your url")",
function(response, status, xhr) {
}, 30000);

That’s all. Attach the function CountDown into your button click event or anything you want.

Now you have a count down flip clock with clock is face counter

Affinity Groups in Azure

Bookmark for read later


I see a lot of confusion about the current status of affinity groups in Microsoft Azure and thought it worthwhile to describe that status (or my view of it).

Until 2012, Azure used a north-south network built to handle traditional internet traffic. In this scenario a request comes in from the internet at the top and gets routed down to a server. The response then gets routed back up to the internet. A problem with a datacenter designed in this way is that traffic from one server to another also gets routed up and down – at the cost of increased latency between servers.

Azure applications make heavy use of Azure Storage, so to minimize latency Azure supports the colocation of compute and storage inside a datacenter. This is achieved by the deployment of a cloud service and related storage accounts into an affinity group, which is a logical name…

View original post 698 more words


       I.            Create Virtual machine and deploy first app (with DB)

A.     Prerequisite

  1. MS Azure Account (Of course)
  2. Your app & DB.

B.     Step by Step

v  Create A virtual machine ( by pass if you already has one)

  1. Open your Azure manage site: à Click on tab VIRTUAL MACHINES  à Click
  2. Select Compute àVirtual Machine à From Gallery. (I’m not gonna explain what other options)2
  3. Select your suitable image, click next (Im selecting SQL Server 2008 R2 SP2 Standard – Windows Server 2008 R2)3
  4. Name your virtual machine, Input User Name and password (Note: Noted your username and password down somewhere. We need this information for login later)


  1. You can leave everything as default now, we will come back and configure later5
  2. Click next and Done!

v  Install needed software

  1. Click on virtual machine tab -> click Connect to connect to your created virtual machine
  2. A pop up occur, click OK6
  3. It will down load a rdp file into your local, open this file
  4. Input your username/ Password in step 1.4 above7

Click ok to login

You are able to login to your virtual machine now? Congratulation!

Now, install IIS for your virtual machine

(You can google to know how to enable IIS for your virtual machine, It’s too easy so I just by pass)

  • Install your first application with DB
  1. Export your DB to scripts
  2. Public your Web app into a folder or your local IIS
  3. Update your web connection string
  4. Copy your scripts and webapp package into your virtual machine:


Click on your rpd file, click edit à Click Local resources Tab à click more à click Drives à Select your local driver, where you put your DB script and WebApp Package) à click connect

  1. Log in back to your virtual machine and you can see your local hard disk when open your virtual machine computer, Hard disk drives, Others. Copy scripts and web app package, deploy them in your virtual machine.

Well Done!

But you cannot access your website from outside world,right? We are  gona configure and make it can access from outside.

  1. Add your website port in to “allow list” Of your firewall.Inbound
  2. Go to your azure management site, Click to your virtual machine, click on EndPoints Tab à click add and add the port of your website.
  3. Now, try to call your website like <yourweb><yourport>

So, you can run your first website with Azure virtual machine!

Trouble shooting:

  1. Error occur when your user(in your web.config) don’t have permission to login into your database.
  2. Error occurs when your iis user don’t have permission to access your package folder
  3. Error

ASP.NET 4.0 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.0 in order for your site to run correctly.

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis –i