Azure Multi App has windows service application called WindowsServiceApplicationSample that user can use to test it.
Steps:
Revisar command files
Azure Multi Application use command files to do custom action.
Service must be installed and started after installation or stop it before update or delete it.
before.cmd file can be use to stop service.
NET STOP "AzureMultiApp.Service"
IF ERRORLEVEL == 2 EXIT 0
IF ERRORLEVEL == 9009 EXIT 0
IF ERRORLEVEL == -1 EXIT 0
:end
setup.cmd file can be use to do create and start service.
"%Windir%\Microsoft.NET\Framework\v4.0.30319\installutil" /u "WindowsServiceSample.exe"
"%Windir%\Microsoft.NET\Framework\v4.0.30319\installutil" "WindowsServiceSample.exe"
NET START "AzureMultiApp.Service"
ERRORLEVEL == 2 EXIT 0
IF ERRORLEVEL == 9009 EXIT 0
IF ERRORLEVEL == -1 EXIT 0
:end
uninstall.cmd
NET STOP "AzureMultiApp.Service"
"%Windir%\Microsoft.NET\Framework\v4.0.30319\installutil" /u "WindowsServiceSample.exe"
ERRORLEVEL == 2 EXIT 0
IF ERRORLEVEL == 9009 EXIT 0
IF ERRORLEVEL == -1 EXIT 0
:end
Compile AzureMultiApp solution.
Zip published files.
Upload generated file to azureapps blob container.
Deploy application using admin tool
Open admin tool: .cloudapp.net:81">http://<youazureservice>.cloudapp.net:81
Test application
To test service deployment connect to role instance using remote desktop and review if service is running.