Avkash Chauhan's Blog

Windows Azure, Windows 8, Cloud Computing, Big Data and Hadoop: All together at one place.. One problem, One solution at One time...

Using Windows Azure Cmdlets to Delete old Windows Azure Diagnostics log from Windows Azure Storage

Using Windows Azure Cmdlets to Delete old Windows Azure Diagnostics log from Windows Azure Storage

Rate This
  • Comments 1

Windows Azure Power Shell Cmdlets 2.0 was released last month. You can download the latest version from the link below: 

Download Link:

Documentation and details:

Cmdlets 2.0 key features are included in the following area:

  • Windows Azure Service Management API
  • Windows Azure SDK
  • Windows Azure Storage Analytics
  • Windows Azure Diagnostics
  • SQL Azure REST API
  • Windows PowerShell

 

The one feature I like the most is to delete old diagnostics logs from Azure storage with a single command.

 

To delete old logs completely usethe command below:

  • Clear-WindowsAzureLog

 

Also all of the Clear* diagnostics cmdlets support –From and –To (and –FromUTC and –ToUTC) parameters. So if you want to delete logs between certain dates you can use command as below:

 

  • Clear-WindowsAzureLog -From "10/1/2011 12:00:00 AM" -To "10/31/2011 12:00:00 PM"
  • (Above command delete all logs in the month of October 2011)

One  caveat to above command is that after clearing the log, the container is not deleted. 

Leave a Comment
  • Please add 8 and 5 and type the answer here:
  • Post
  • Where has the Clear-WindowsAzureLog cmdlet gone? Codeplex is no more and it's not on GitHub either.

Page 1 of 1 (1 items)