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

**URL:** <https://community.dynatrace.com/t/restart-the-java-service-in-direct-azure-vm-instead-of-routing-via-azure-services/54716>\
**Category:** Automations\
**Tags:** azure, workflows, services, automations\
**Created:** [January 22, 2026, 4:20pm UTC](https://community.dynatrace.com/t/restart-the-java-service-in-direct-azure-vm-instead-of-routing-via-azure-services/54716 "2026-01-22T16:20:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kodiramakrishna](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@kodiramakrishna](https://community.dynatrace.com/u/kodiramakrishna)\
**Post date:** [January 22, 2026, 4:20pm UTC](https://community.dynatrace.com/t/restart-the-java-service-in-direct-azure-vm-instead-of-routing-via-azure-services/54716/1 "2026-01-22T16:20:03Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [January 23, 2026, 1:38pm UTC](https://community.dynatrace.com/t/restart-the-java-service-in-direct-azure-vm-instead-of-routing-via-azure-services/54716/2 "2026-01-23T13:38:35Z")

</div>

Hi,

Do you restart that service manually?

Best regards

---

<div class="post-metadata">

**Author:** ![kodiramakrishna](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@kodiramakrishna](https://community.dynatrace.com/u/kodiramakrishna)\
**Post date:** [January 27, 2026, 6:34am UTC](https://community.dynatrace.com/t/restart-the-java-service-in-direct-azure-vm-instead-of-routing-via-azure-services/54716/3 "2026-01-27T06:34:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [January 27, 2026, 7:50am UTC](https://community.dynatrace.com/t/restart-the-java-service-in-direct-azure-vm-instead-of-routing-via-azure-services/54716/4 "2026-01-27T07:50:55Z")

</div>

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](https://docs.dynatrace.com/docs/shortlink/automation-workflows-red-hat-ansible).

Bset regards

---

<div class="post-metadata">

**Author:** ![kodiramakrishna](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@kodiramakrishna](https://community.dynatrace.com/u/kodiramakrishna)\
**Post date:** [January 27, 2026, 8:02am UTC](https://community.dynatrace.com/t/restart-the-java-service-in-direct-azure-vm-instead-of-routing-via-azure-services/54716/5 "2026-01-27T08:02:42Z")

</div>

Hi,

Nope. We doesn’t have API to restart.

Regards,

Kodi.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [January 27, 2026, 8:03am UTC](https://community.dynatrace.com/t/restart-the-java-service-in-direct-azure-vm-instead-of-routing-via-azure-services/54716/6 "2026-01-27T08:03:38Z")

</div>

Hi,

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

Best regards

---

<div class="post-metadata">

**Author:** ![kodiramakrishna](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@kodiramakrishna](https://community.dynatrace.com/u/kodiramakrishna)\
**Post date:** [January 27, 2026, 8:08am UTC](https://community.dynatrace.com/t/restart-the-java-service-in-direct-azure-vm-instead-of-routing-via-azure-services/54716/7 "2026-01-27T08:08:11Z")

</div>

Hi,

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

Regards,

Kodi.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [January 27, 2026, 9:24am UTC](https://community.dynatrace.com/t/restart-the-java-service-in-direct-azure-vm-instead-of-routing-via-azure-services/54716/8 "2026-01-27T09:24:33Z")

</div>

Hi,

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

Best regards
