This project is read-only.

Azure Multi App has windows service application called WindowsServiceApplicationSample that user can use to test it.

Steps:

  • Open AzureMultiApp solution.
  • Review ConsoleApplicationSample, cmd files.
  • Compile AzureMultiApp solution.
  • Open WindowsServiceApplicationSample debug or release directory.
  • Zip published files.
  • Upload generated file to azureapps blob container.
  • Deploy application using admin tool.
  • Test application.

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.

solutionexplorer_thumb[1]_thumb_thumb

Zip published files.

addfile_thumb[1]_thumb_thumb

Upload generated file to azureapps blob container.

storagestructure_thumb[1]_thumb_thumb

Deploy application using admin tool

Open admin tool: .cloudapp.net:81">http://<youazureservice>.cloudapp.net:81

service

servicelist

Test application

To test service deployment connect to role instance using remote desktop and review if service is running.

Last edited Aug 9, 2011 at 9:40 AM by ibonilm, version 4

Comments

No comments yet.