Jonas Stawski
Jonas Stawski

Reputation: 6752

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.

Upvotes: 5

Views: 1345

Answers (2)

djn
djn

Reputation: 113

Also I noticed that the csrun /update:[DEPLOYMENT ID];ServiceConfiguration.Local.cscfg will terminate the deployment if we are debugging the solution (Start Debugging - F5), it will work normally only with (Start without Debugging - Ctrl F5) option.

Added just in case it helps anyone.

Upvotes: 3

Jonas Stawski
Jonas Stawski

Reputation: 6752

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

Upvotes: 4

Related Questions