Search code examples
azureservice-management

ServiceManagement API to Delete Deployment


Im referring to this for deployment to Cloud Service http://www.packtpub.com/article/managing-azure-hosted-services-with-service-management-api

For Deleting the Package there is no straight forward way to delete package from cloud service. I'm referring to below code http://code.msdn.microsoft.com/windowsazure/Windows-Azure-CSManage-e3f1882c As per above code, It uses ServiceManagermentHelper class, But I cant use the code in ServiceManagementHelper class, since it is been uploaded in Code plex. But i need better solution from ServiceManagement API. Im unable to find dll or API for ServiceManagement API. Are there any dll available for Azure Client SDK 1.7 or above? Please let me know how to delete cloudservice functionality along with check the service is deployed or not.


Solution

  • Thanks to Mike for providing help. I'm able to fix problem by using Service Management API to delete Deployment. There are some Hiccups when I was deleting Deployment. If the Service Status is "Running" , Azure Service Management API throws Error, that Azure Service is in Running State. I have to change the Deployment Status to Suspended State before deleting deployment.

    -Mahender