/**
  * List storage accounts for a specified subscription.
  *
  * @command-name ListAccounts
  * @command-description List storage accounts for a specified subscription.
  * @command-parameter-for $subscriptionId Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env --SubscriptionId|-sid Required. This is the Windows Azure Subscription Id to operate on.
  * @command-parameter-for $certificate Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env --Certificate|-cert Required. This is the .pem certificate that user has uploaded to Windows Azure subscription as Management Certificate.
  * @command-parameter-for $certificatePassphrase Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Prompt --Passphrase|-p Required. The certificate passphrase. If not specified, a prompt will be displayed.
  * @command-example List storage accounts for subscription:
  * @command-example ListAccounts -sid:"<your_subscription_id>" -cert:"mycert.pem"
  */
 public function listAccountsCommand($subscriptionId, $certificate, $certificatePassphrase)
 {
     $client = new Zend_Service_WindowsAzure_Management_Client($subscriptionId, $certificate, $certificatePassphrase);
     $result = $client->listStorageAccounts();
     if (count($result) == 0) {
         echo 'No data to display.';
     }
     foreach ($result as $object) {
         $this->_displayObjectInformation($object, array('ServiceName', 'Url'));
     }
 }