My Windows Azure Service Instance status – 1 liner

A long time ago, before the cloud, I did a whole bunch of work with the PowerShell team. The “in” thing to do when working on PowerShell is to solve IT problems with just 1 line of PowerShell. Ok sometimes this one line could be huge, but 1 line nevertheless.

A few weeks back when getting ready for the 1st cloud cover show, we (Steve Marx, Ryan and I) wanted to show how you could use the Windows Azure Management PowerShell Cmdlets to get the current service status, and show it in a chart. The solution never made the show, but here it is in all of its single line glory (i included the line number for fun)

   1:   (get-deployment -Slot Production -Servicename 'myapp' -Certificate (Get-Item cert:\CurrentUser\My\4445574B0BADAEAA6433E7A5A6169AF9D3136234) -subscriptionId 87654387-9876-9876-9867-987656543482).RoleInstanceList | group-object InstanceStatus | Select Name, Count | out-chart -gallery Lines -DataGrid_Visible true -refresh 0:1:0 -Glass -Title ‘MyApp Instances' 

 
So take a minute to digest that.
 
Yes, there are a few things you need to setup before this 1 liner works:
 
  1. Install the Windows Azure Management PowerShell Cmdlets.
  2. Create a certificate to manage your service and install into your subscription at the portal.
  3. Download and install a trial of PowerGadgets from http://www.softwarefx.com/sfxSqlProducts/powerGadgets/ (if you want the graphs)
 
Yes – the graph is refreshed every minute.
 
image
 
 
 
THIS POSTING IS PROVIDED “AS IS” WITH NO WARRANTIES, AND CONFERS NO RIGHTS
 
 
 

Cloud Cover on C9

Last week, Ryan & Steve launched the new weekly show about the cloud on C9 called Cloud Cover. The show takes a look at what is happening with the Microsoft Cloud, discusses hot topics and new features. If you haven’t already – take a look at http://channel9.msdn.com/shows/Cloud+Cover/Cloud-Cover-Episode-1/ 

THIS POSTING IS PROVIDED “AS IS” WITH NO WARRANTIES, AND CONFERS NO RIGHTS

Windows Azure Platform Status

If you need to find out if Windows Azure, SQL Azure or AppFabric is in good shape – check out http://www.microsoft.com/windowsazure/support/status/servicedashboard.aspx.

Note: I’m posting this so I remember the link too :)

THIS POSTING IS PROVIDED “AS IS” WITH NO WARRANTIES, AND CONFERS NO RIGHTS

Go to Top