The Windows Azure Platform Evangelism team has recently released a new version of the Windows Azure Service Management CmdLets. These cmdlets wrap the Windows Azure Management and Diagnostic APIs, and enable a user to more easily configure and manage their Windows Azure service operations. You can use these cmdlets to create a new deployment of your service, change the configuration of a specified role, or even manage your applications diagnostic configuration. Additionally, you can use these cmdlets to run unattended scripts that configure and manage your Windows Azure applications.
In addition to using these cmdlets with your existing Windows Azure applications, you can look at the source code of the cmdlets to better understand the Management and Diagnostic APIs.