Automations
All questions related to Workflow Automation, AutomationEngine, and EdgeConnect, as well as integrations with various tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Restart the JAVA service in direct azure VM instead of routing via azure services

kodiramakrishna
Visitor

Hi Team,

I have java application which is running in my azure VM and its a private network. And accessing this service with the network using private DNS. I need to create a workflow which should check if the service was running or not. It should start if it down. I couldn't see any specific language trigger to trigger my service like shell or python. And http action also doesn't work as its not method invoking like GET or POST. Could you please tell me how I can start and stop the service by triggering workflow.

 

Note: I need to access the service directly in to azure VM not via azure services.

 

Thanks in Advance!

7 REPLIES 7

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

Do you restart that service manually?

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

kodiramakrishna
Visitor

Hi,

I am able to restart the process manually in VM, But I want to do the restart if its stopped via Workflow.

Regards,

Kodi.

 

Hi,

My point is, do you have any API to restart service on demand?

If not, you should integrate it with Ansible or Puppet. You can explore Red Hat Ansible Automation.

Bset regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

kodiramakrishna
Visitor

Hi,

Nope. We doesn't have API to restart.

Regards,

Kodi.

Hi,

Then, I would say integrate workflow with Ansible or Puppet.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

kodiramakrishna
Visitor

Hi, 

 

You mean to say, Need to install Ansible into the target server and call via ansible action from workflow?

Regards,

Kodi.

Hi,

I am not aware of any capabilities to execute OS remote command from OneAgent or workflows.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Featured Posts