0

I want to run an application when each VM starts up in a VMSS.

What I did is as follows:

  1. Create an VM.

  2. Put my application under C driver

  3. Use Windows Scheduler to let it run during the windows start up (no need to logon) and it works.

  4. Capture the image according:

https://learn.microsoft.com/en-us/azure/virtual-machines/windows/classic/capture-image

  1. Use ARM template to create VMSS based on the image I captured

I cannot remotely desktop to the VM of VMSS, so I cannot check if my application runs. The application will call a web API when it runs. I found the API is not called so I guess my application did not run.

Does any know the reason?

Luboš Turek
  • 6,273
  • 9
  • 40
  • 50
  • "*I cannot remotely desktop to the VM of VMSS*" - why not? – Munchkin Oct 18 '17 at 13:02
  • I can remotely desktop to VM now by configuring the inbound NAT of the balancer. And I found I need to restart the created the VM by vmss, then my application will run after VM starts up. – Xiangwen Zhu Oct 19 '17 at 06:42

0 Answers0