/** * Get storage account property. * * @command-name GetProperty * @command-description Get storage account property. * @command-parameter-for $subscriptionId Microsoft_Console_Command_ParameterSource_Argv|Microsoft_Console_Command_ParameterSource_Env --SubscriptionId|-sid Required. This is the Windows Azure Subscription Id to operate on. * @command-parameter-for $certificate Microsoft_Console_Command_ParameterSource_Argv|Microsoft_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 Microsoft_Console_Command_ParameterSource_Argv|Microsoft_Console_Command_ParameterSource_Prompt --Passphrase|-p Required. The certificate passphrase. If not specified, a prompt will be displayed. * @command-parameter-for $accountName Microsoft_Console_Command_ParameterSource_Argv|Microsoft_Console_Command_ParameterSource_Env --AccountName Required. The storage account name to operate on. * @command-parameter-for $property Microsoft_Console_Command_ParameterSource_Argv --Property|-prop Required. The property to retrieve for the storage account. * @command-example Get storage account property "Url" for account "phptest": * @command-example GetProperty -sid:"<your_subscription_id>" -cert:"mycert.pem" * @command-example --AccountName:"phptest" --Property:Url */ public function getPropertyCommand($subscriptionId, $certificate, $certificatePassphrase, $accountName, $property) { $client = new Microsoft_WindowsAzure_Management_Client($subscriptionId, $certificate, $certificatePassphrase); $result = $client->getStorageAccountProperties($accountName); printf("%s\r\n", $result->{$property}); }