Search code examples
c#azureazure-cloud-services

Azure Cloud Service - Monitoring a deployment


Is there an event raised the moment a website is published and updated?

I've tried Application_End in global.asax but that event does not seem to be raised.


Solution

  • I figured it out. In the Application_Start event I bind

    RoleEnvironment.Stopping += RoleEnvironmentStopping;
    
    private void RoleEnvironmentStopping(object sender, RoleEnvironmentStoppingEventArgs e)
    {
           // do something ...
    }