Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test RoleEnvironment.Changing event on Azure local emulator?

How can I locally test the RoleEnvironment.Changing event using the Azure SDK 1.7? Which file do I have to change and do I have to run any other command after that file is changed?

The information on this thread is not very complete and it doesn't work on 1.7 anymore.

like image 396
Jonas Stawski Avatar asked Aug 01 '12 16:08

Jonas Stawski


1 Answers

After trial and error I discovered that the problem was the wrong cscfg. To test it:

  1. Change the ServiceConfiguration.Local.cscfg from the Azure project
  2. Open the Windows Azure SDK Environment as an Administrator
  3. Change the Directory (cd) to the Azure project where the ServiceConfiguration.Local.cscfg file is located
  4. run the command csrun /update:[DEPLOYMENT ID];ServiceConfiguration.Local.cscfg where [DEPLOYMENT ID] is the number in parenthesis following the label deployment (XX) of the Azure Emulator
like image 83
Jonas Stawski Avatar answered Nov 01 '22 16:11

Jonas Stawski