Waclaw Chrabaszcz
... there is no spoon ...

AZURE - Stairway To Heaven

Saturday, August 2, 2014 8:10 AM


Before you’ll start reading please start to play this song.


OK boys and girls, time get familiar with clouds. Time to become a meteorologist. To be honest I don’t know how to start. Is cloud better or worse than on campus resources … hmm … it is just different. I think for successful adoption in cloud world IT Dinosaurs need to forget some “Private Cloud” virtualization bad habits, and learn new way of thinking.

Take a look:

- I don’t need any  tapes or  CDs  (Physical Kingdom of Windows XP and 2000)

- I don’t need any locally stored MP3s (CD virtualization :-)

- I can just stream music to your computer no matter whether my on-site infrastructure is powered on.

Why not to do exactly the same with WebServer, SQL, or just rented for a while Windows server ? Let’s go, to the other side of the mirror. 1st  - register yourself for free one month trial, as happy MSDN subscriber you’ve got monthly budget to spent. In addition in default setting your limit protects you against loosing real money, if your toys will consume too much traffic and space.


Once your account is ready forget WebPortal, we are PowerShell knights.


#Authenticate yourself in Azure

#download once your settings file

#Import it to your PowerShell Module
Import-AzurePublishSettingsFile "C:\Azure\[filename].publishsettings"


#where are Azure datacenters

#You will need it Smile

#storage account is related to physical location, there are two datacenters on each continent, try nearest to you
# all your VMs will store VHD files on your storage account
#your storage account must be unique globally, so I assume that words account or server are already used
New-AzureStorageAccount -StorageAccountName "[YOUR_STORAGE_ACCOUNT]" -Label "AzureTwo" -Location "West Europe"

#it looks like you are ready to deploy first VM, what templates we can use
Get-AzureVMImage | Select ImageName

#what a mess, let’s choose Server 2012
$ImageName = (Get-AzureVMImage)[74].ImageName

$cloudSvcName = '[YOUR_STORAGE_ACCOUNT]'
$AdminUsername = "[YOUR-ADMIN]"
$adminPassword = '[YOUR_PA$$W0RD]'
$MediaLocation = "West Europe"

$vmnameDC = 'DC01'

#burn baby burn !!!
$vmDC01 = New-AzureVMConfig -Name $vmnameDC -InstanceSize "Small" -ImageName $ImageName   `
    | Add-AzureProvisioningConfig -Windows -Password $adminPassword -AdminUsername $AdminUsername   `
    | New-AzureVM -ServiceName $cloudSvcName

#ice, ice baby …
Get-AzureRemoteDesktopFile -ServiceName "[YOUR_STORAGE_ACCOUNT]" -Name "DC01" -LocalPath "c:\AZURE\DC01.rdp"

As you can see it is not just a new-VM, you need to associate your VM with AzureVMConfig (it sets your template), AzureProvisioningConfig (it sets your customizations), and Storage account. In next releases you’ll need to put this machine in specific subnet, attach a HDD and many more. After second reading I found that I am using the same name for STORAGE and SERVICE account, please be aware of it if you need to split these values.

- pipe rules !
- at the beginning it is hard to change your mind and agree with fact that it is easier to remove and recreate a VM than move it to different subnet Smile
- by default everything is firewalled, limited access to DNS, but NATed outside on custom ports. It is good to check these translations sometimes on the webportal.
- if you remove your VMs your harddrives remains on storage and MS will charge you Smile. Remove-AzureVM -DeleteVHD

For me AZURE it is a lot of fun, once again I can be newbie and learn every page. For me Azure offers real freedom in deployment of VMs without arguing with NetAdmins, WinAdmins, DBAs, PMs and other Change Managers. Unfortunately soon or later they will come to my haven and change it into …



# re: AZURE - Stairway To Heaven

Haha, nice. I've been having a ton of fun with Azure and all the new services they've been releasing as well. One frustrating thing though is the rate of change makes scripts you wrote just a few weeks ago no longer work properly sometimes. But that definitely forces you to keep those skills sharp! 4/29/2015 6:56 PM | InTheClouds

# re: AZURE - Stairway To Heaven

Thanks! Next month I'm going to blog about AppSense, but for sure in two I'll review Azure content. Your feedback is very kind ! 5/3/2015 1:39 PM | wchrabaszcz

# re: AZURE - Stairway To Heaven

I love music, it's a good song
abcya 6/12/2017 11:46 AM | jack

# re: AZURE - Stairway To Heaven

Me encanta la música, que es una buena canción
friv 6/12/2017 11:48 AM | fhil

# re: AZURE - Stairway To Heaven

J'aime la musique, il est une bonne chanson
run 3 6/12/2017 11:49 AM | anna

# re: AZURE - Stairway To Heaven

Amo la musica, è una buona canzone
pbs kids 6/12/2017 11:50 AM | tomy

# re: AZURE - Stairway To Heaven

Compare Mi6 or samsung Galaxy S9, which one is best? 8/22/2017 1:09 PM | hagwon

# re: AZURE - Stairway To Heaven

We found this 100% Cotton Lucianna Collection Heavyweight Embroidered Decorative Shower Curtains by the brand Home Fashion Designs. 8/24/2017 11:46 AM | Cheap Shower Curtains

# re: AZURE - Stairway To Heaven

I like it. h isam 9/14/2017 3:57 PM | EZT

# re: AZURE - Stairway To Heaven

Wow, best tutorial - symptoms of brain aneurysm 9/14/2017 3:59 PM | Alice

# re: AZURE - Stairway To Heaven

This is extraordinarily essential. I found such countless stuff in your Escorts koramangala blog, especially its talk. I will industriously be proceeding a general commence you just read your posts.
10/17/2017 12:37 PM | Nisha

# re: AZURE - Stairway To Heaven

Thanks,internet leased line.
10/27/2017 3:11 PM | Ketzilla

# re: AZURE - Stairway To Heaven

Thanks for the article. A very complete and easy to understand. We wait for the latest posts from you. ford latest models 2018 10/29/2017 8:06 AM | Fordies

# re: AZURE - Stairway To Heaven

Thank you already publish this article, it is very useful for us.

what is mesothelioma and how did i get it

11/12/2017 11:55 AM | Vania

# re: AZURE - Stairway To Heaven

Thanks for the article on this page. Unfortunately, already understand and allow me to share it on my social media account. breast ultrasound cancer vs benign 1/6/2018 9:13 AM | canceroz

# re: AZURE - Stairway To Heaven

Thank you for sharing important seo tips. to buy pets online only4pets. 3/7/2018 7:24 AM | Kavita Singh

# re: AZURE - Stairway To Heaven

Great Article Really informative. Thanks
Website Development Company NYC
Website Design Company NYC
3/7/2018 12:00 PM | Kritik

# re: AZURE - Stairway To Heaven

How about this blog? Looks like there's no recent posts. Though very useful once.

2020 mustang gt 3/24/2018 1:03 PM | carfoss

# Escorts Agency

This is one of the really very helpful information. You provide a proper information. I really like it.

Manali Call Girls 5/23/2018 6:51 AM | shweta meneon

# re: AZURE - Stairway To Heaven

Know that your good knowledge in playing with all the pieces was very helpful. I notify that this is the first place where I find issues I've been searching for.
5/23/2018 6:54 AM | Shivani Rajput

Post a comment