I want to run an application when each VM starts up in a VMSS.
What I did is as follows:
Create an VM.
Put my application under C driver
Use Windows Scheduler to let it run during the windows start up (no need to logon) and it works.
Capture the image according:
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/classic/capture-image
- 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?