Hi Aravind,
We’ve encountered a similar issue at client sites before. Generally, the "When Last Stopped" option should be available when restarting an Azure Stream Analytics job that has been previously stopped, allowing the job to pick up from where it left off. However, if you’re only seeing the "Now" and "Custom" options, a few common factors could be at play:
First-Time Job Start: This option doesn’t appear when starting the job for the first time. It’s only available after the job has been stopped at least once.
Continuous Run Without Any Stops: If the job has run continuously without stopping, Azure Stream Analytics may not have a prior stopping point to reference, resulting in only "Now" and "Custom" options showing up.
Job State or Connectivity Issues: Occasionally, we’ve seen jobs in a degraded or error state due to connectivity or configuration problems, which can interfere with the availability of the "When Last Stopped" option.
What Worked for Us:
Check Job Stop History: Ensure that the job has indeed been stopped at least once. If this is the first stop, you’ll need to use "Now" or "Custom" for the first restart.
Verify Job Status: Confirm the job is not in an error state. If any underlying issues exist, like configuration or connectivity problems, resolving them should help make all restart options available.
Use the Custom Option as a Backup: When "When Last Stopped" isn’t an option, the "Custom" setting allows you to define a specific restart time as an alternative.
If these steps don’t resolve the issue, reaching out to Azure support might help uncover any specific conditions affecting the job in your environment.