Posts tagged ‘azure’

note: post is under development ūüôā

Azure Service Fabric implements great concepts of microservices ( sorry for saying that so simplified ), there’s a lot of demos and docs which demonstrate nice pictures and moving boxes, but I surely see that most important and key basement features of that service are tough to find, especially for those who just started with Service Fabric.

SWAP partitions in Azure are quite interesting thing – SWAP space can be created on the local resource disk with the Linux Agent by enable swap in /etc/waagent.conf. It will automatically use the resource disk (which comes with every VM) to create the swap ( i.e. there’s no need to create a disk for it and also it means that please do not use swap on OS or data disk ). Good links which surely may help here – it’s not a rocket science, just changing Azure Linux Agent configuration file.

There’s¬†a recommendation regarding where should be SWAP placed – we highly recommend to use resource disk for that ( i.e. /mnt/resources ) and not using system drive for that purpose. There’s several reason why it should be like that and all of them are about performance ( so yes, technically you can do it, but consequences of that configuration will be bad and non-so-predictable performance ):

  • OS¬†drive¬†is a storage account backed entity and it saved during restarting/moving VMs.¬†So it’s not good idea to slow down that account by additional workloads.
  • OS drive¬†is optimized¬†almost for¬†fast boot and other additional workloads will make performance of that resource not so good ( or very bad even ).
  • OS drive is from technical side¬†is a¬†remote storage, so latency might be higher compared to local resources.
  • Resource disk is located locally and not survived during host changed, but it’s much faster and this is a place designed especially for swap-like workloads.

Also we support a way inject a script or other metadata into a Microsoft Azure virtual machine at provision time – it’s custom data and cloud-init :


Examples of configuration :

As you know we recently add DNS services into preview mode and you can subscribe to this service using Request-AzureProvideFeature like that

Request-AzureProvideFeature -ProviderNamespace Microsoft.Network -FeatureName azurednspreview

So good question here is about how get list of all possible available options for FeatureName ?

Continue reading ‘List of all available preview services in Azure’ »

I will describe how this schema works for single VM with running Linux/Jelastic. So first of all let check that do we have for that VM by using Get-AzureDeployment command and then let go deep that happened inside that file

Continue reading ‘All about Azure Service Configuration Schema .cscfg’ »

Get-AzureVM | Where-Object {$_.InstanceSize -ne 'Basic_A0'} | Set-AzureVMSize "Basic_A0" | Update-AzureVM

Q: How to get Azure VM external IP address ( if you not use PublicIP service ) ?

A:¬† If you’re not using ReservedIP service field PublicIP will be empty ( as soon as there’s no reserved IP ) for command Get-AzureVM. I using Swtich-AzureMode just in case to be sure that we’re in right Azure mode in powershell right now.

PS C:\> Switch-AzureMode -Name AzureServiceManagement
PS C:\> Get-AzureVM

ServiceName                             Name                                    Status
———–¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬† —-¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬†¬† ——
abokov-jelastic                         abokov-jelastic                         ReadyRole

PS C:\> Get-AzureVM -ServiceName "abokov-jelastic" | Select-object  Name, DNSName, *IP*

Name                    : abokov-jelastic
DNSName                 :
IpAddress               :
PublicIPAddress         :
PublicIPName            :
PublicIPDomainNameLabel :
PublicIPFqdns           : {}
OperationDescription    : Get-AzureVM


You may see that this VM have DNS name, internal IP, but public IP is empty, nevertheless that there’s is an external IP address which is linked to that VM. To get external IP you may use command Get-AzureEndPoint which returns all information about all endpoints for that cloud service – in my case I have 7 open ports and to make this more readable I select only few fields from output.

PS C:\> Get-AzureVM -ServiceName "abokov-jelastic" | Get-AzureEndPoint | Select-Object Name, Port , *ip*

Name Port Vip VirtualIPName
—- —- — ————-
dns-TCP 53
dns-UDP 53
http 80
http4848 4848
https 443
https4949 4949
ssh 22


First of all you need to have Microsoft Azure PowerShell SDK installed, after this step is done you may type
and this will authenticate you via web browser in Azure account ( you need to have working Azure account obviously ). Alternatively you may use PublishSettings :

    1. Open that link to Donwload Azure Publish Settings Profile: , then save you credentials.
    2. Open Microsoft Azure Powershell and run Import-AzurePublishSettingsFile :

PS C:\> Import-AzurePublishSettingsFile C:\tools\azure\my_settings.publishsettings
Id : c09f1074-6e2e-45be-aeee-935d6642424d
Name : Windows Azure MSDN - Visual Studio Ultimate
Environment : AzureCloud
Account : 24636FAB2C68B96D43777561A3CD728092912C03
Properties : {[SupportedModes, AzureServiceManagement]}

Then you need to keep in mind that Azure PowerShell (from 0.8.0 )¬†contains¬†many¬†modules, here we will talk about¬†three main modules ( complete list of eveything which is inside SDK is here –¬†see Azure SDK CmdLets reference¬†):

  • AzureProfile : operates with profiles commands like Add-AzureAccount, Get-AzureSubscription, and Switch-AzureMode. Complete list of commands in AzureProfile module is availalbe here – see¬†Azure Profile Cmdlets. Commands from AzureProfile are always available –¬†not like two next modules which are not designed to be used in the¬†same PowerShell session.


  • Azure ( or AzureServiceManamagement ): contains commands which operated by core ( or basic :-)) cloud functionality like virtual machines, web sites, storage accounts and¬†¬†so on. Complete list of commands inside this module is here – see¬†Azure Service CmdLets. You can switch to that module using Switch-AzureMode -Name AzureServiceManagement


¬†Note: sometimes ( it happened with me as well ) default installation of Azure SDK cmdlets do not include some modules ( in my case it happened with DNS and Azure SQL Database ), then you have choice how to install them – first of all you always may use Azure powershell sources on github¬†to get full and latest one version of cmdlets or you also may check files inside “C:\Program Files (x86)\Microsoft SDKs\Azure” folder and try to import modules from there like this ( it worked for me ):

 import-module "C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureResourceManager.psd1"


Recently we made an update in CDN network, so right now it’s 29 nodes all around the world ( more than before ) and there’s some changes in locations. Full list of Azure CDN nodes is here Azure Content Delivery Network (CDN) Node Locationsand also you may take a look on them here – CDN node locations on bing map

Azure CDN points in Europe

For some people ( who doing Azure-related presentations and slides a lot¬†like me ūüôā¬†) this may be useful – now we have 17 datacenters ( including 2 in Australia and 2 Gov datacenters in US ), so here’s updated map :
Microsoft Azure datacenter locations and CDN locations map

Windows Azure portal - now and three years ago

  • How To: Bulletproof Server Backups with Amazon S – old, but good manual about S3 backup
  • HOW TO: Backup Your Website to Amazon S3 – detailed help about using S3Sync for backup
  • Server Backup with Amazon S3 (Howto) – good manual ( using bash and crontab )
  • List of S3 backup tools
  • For those who like to use Azure instead of AWS :

  • Backup files using CloudBerry