ststv2_vms_Scheduled_stop logic app add a condition on specific days


Hello all,

I am new to logic apps, I am trying to use the Start/Stop VMs v2 feature on specific days (Saturday and Sunday).

Recurrence is correct, because the execution logs shows that it is executed daily at the defined time.

I added a condition to the flow, but it always sends back False.

Here is the condition (page is in Italian, the O means OR, è uguale a means equals to):

User's image

For example on Saturday, this is the result:

User's image

The "Mostra input non elaborati" means "Raw inputs".

User's image

What should I do to check if it is Saturday or Sunday?

Thank you very much!


Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,904 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 2023-10-05T09:17:47.44+00:00

    Hello, the solution was to modify the Recurrence, set it to WEEK, this adds a field with days of the week, and you don't need the condition.

    Thank you,