Hi all,
after quite a bit of experimentation I got azure to work on community
edition. I suspect supported version is easier ( can anyone shed some light
on that ?? )
to get an image registered, you will have to use the azure CLI if you are
on linux. windows has it's own CLI, powershell, I assume.
. I tried, and could not get the import from a live image to work. (scalr
does not see a server running in the azure cloud. worse, it does not even
see azure as a cloud,
although it is configured in your account ...... )
reason for that: you cannot see the URN ( resource name of an image
existing in azure ) in the azure portal / admin UI.
reason for posting this: the URN that the azure CLI gives you, is invalid,
but can be made usable.
to get azure CLI :
install nodejs
apt-get nodejs or zypper nodejs or yum nodejs (whatever nodejs is called in
your distro )
my installer output was (suse, zypper)
*The following 3 NEW packages are going to be installed:*
* nodejs nodejs-devel npm*
which normally should also install node npm, the install manager of nodejs
then you need to use npm to install azure CLI (must be root)
*sudo npm install -g azure-cli*
once you have that, you need to login to azure. which is an interesting
experience, to say the least.. ( no worry, it works, but did it have to be
so complicated ??? )
command:
*azure login*
which will give you a response with a 1) URL and 2) a one time password,
which you then must use in a web browser to authorize your CLI
access.
once you are logged in, you are all set to find a URN of a valid image in a
location you like (images are the same in every location similar to google
CP, unlike AWS.
I was looking for ubuntu 14.04
first, you need to know a valid location. use westus or westeurope. images
are available in every location, so it does not really matter.
= azure vm image list-offers westeurope canonical
info: Executing command vm image list-offers
+ Getting virtual machine image offers (Publisher: "canonical"
Location:"westus")
data: Publisher Offer Location
data: --------- ------------------------- --------
data: canonical Ubuntu15.04Snappy westus
data: canonical Ubuntu15.04SnappyDocker westus
data: canonical UbunturollingSnappy westus
data: canonical UbuntuServer westus
data: canonical Ubuntu_Snappy_Core westus
data: canonical Ubuntu_Snappy_Core_Docker westus
info: vm image list-offers command OK
*= azure vm image list-offers westeurope canonical*
info: Executing command vm image list-offers
+ Getting virtual machine image offers (Publisher: "canonical"
Location:"westeurope")
data: Publisher Offer Location
data: --------- ------------------------- ----------
data: canonical Ubuntu15.04Snappy westeurope
data: canonical Ubuntu15.04SnappyDocker westeurope
data: canonical UbunturollingSnappy westeurope
data: canonical UbuntuServer westeurope
data: canonical Ubuntu_Snappy_Core westeurope
data: canonical Ubuntu_Snappy_Core_Docker westeurope
info: vm image list-offers command OK
*= azure vm image list westeurope canonical ubuntuserver 14.04.5-LTS*
info: Executing command vm image list
+ Getting virtual machine images (Publisher:"canonical"
Offer:"ubuntuserver" Sku: "14.04.5-LTS" Location:"westeurope")
data: Publisher Offer Sku OS Version
Location Urn
data: --------- ------------ ----------- ----- ---------------
---------- --------------------------------------------------
data: canonical ubuntuserver 14.04.5-LTS Linux 14.04.201608091
westeurope canonical:ubuntuserver:14.04.5-LTS:14.04.201608091
data: canonical ubuntuserver 14.04.5-LTS Linux 14.04.201608241
westeurope canonical:ubuntuserver:14.04.5-LTS:14.04.201608241
data: canonical ubuntuserver 14.04.5-LTS Linux 14.04.201608300
westeurope canonical:ubuntuserver:14.04.5-LTS:14.04.201608300
data: canonical ubuntuserver 14.04.5-LTS Linux 14.04.201609190
westeurope canonical:ubuntuserver:14.04.5-LTS:14.04.201609190
data: canonical ubuntuserver 14.04.5-LTS Linux 14.04.201610100
westeurope canonical:ubuntuserver:14.04.5-LTS:14.04.201610100
data: canonical ubuntuserver 14.04.5-LTS Linux 14.04.201610200
westeurope canonical:ubuntuserver:14.04.5-LTS:14.04.201610200
data: canonical ubuntuserver 14.04.5-LTS Linux 14.04.201611090
westeurope canonical:ubuntuserver:14.04.5-LTS:14.04.201611090
data: canonical ubuntuserver 14.04.5-LTS Linux 14.04.201611300
westeurope canonical:ubuntuserver:14.04.5-LTS:14.04.201611300
data: canonical ubuntuserver 14.04.5-LTS Linux 14.04.201612050
westeurope canonical:ubuntuserver:14.04.5-LTS:14.04.201612050
data: canonical ubuntuserver 14.04.5-LTS Linux 14.04.201612130
westeurope canonical:ubuntuserver:14.04.5-LTS:14.04.201612130
info: vm image list command OK
now, this URN does NOT work.
reason:
the colons ('*:*') need to be replaced by slashes ( '*/*')
*echo canonical:ubuntuserver:14.04.5-LTS:14.04.201612130 | sed 's/:/\//g' *
produces the correct URN:
*canonical/ubuntuserver/14.04.5-LTS/14.04.201612130*
which is usable in ScalR's create image.
you then have a base image, which you can add to a role, and a farm, and
finally see something happen in Azure.
It does not have scalarizr; I suspect you could then use this server for
importing a live server with additional functionality ( ??? )
haven't tried that yet :-)
regds
Rens
--
You received this message because you are subscribed to the Google Groups
"scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.