create a job in gov cloud to restart PostgreSQL service once every 2 weeks in the gov cloud.

Farshadfar, Tony 0 Reputation points
2026-01-22T20:08:00.03+00:00

Hi. I need to create a job in gov cloud to restart this service once every 2 weeks at a specific day and time. How can I do that? The Automation feature is not available in the gov cloud.

Azure Database for PostgreSQL
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-01-22T20:08:08.6566667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To create a job to restart the PostgreSQL service in Azure Government Cloud every two weeks, you can use automation tasks. However, since you mentioned that the Automation feature is not available in the Gov Cloud, you may need to consider using Azure Logic Apps to achieve this.

    Here’s a general approach:

    1. Create a Logic App: In the Azure portal, create a new Logic App.
    2. Define the Trigger: Set the trigger to a recurrence schedule that runs every two weeks. You can specify the exact day and time in the recurrence settings.
    3. Add an Action: Use the action to restart your PostgreSQL server. You can use the Azure Management API or a built-in connector to perform the restart operation.
    4. Save and Test: Save your Logic App and test it to ensure it works as expected.

    This way, you can automate the restart of your PostgreSQL service according to your specified schedule, even in the absence of the Automation feature in the Gov Cloud.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.