skip to Main Content

This is my trigger typeProperties,

"type": "ScheduleTrigger",
        "typeProperties": {
            "recurrence": {
                "frequency": "Day",
                "interval": 1,
                "startTime": "2023-07-07T05:28:00",
                "timeZone": "W. Europe Standard Time",
                "schedule": {
                    "minutes": [
                        10
                    ],
                    "hours": [
                        16
                    ]
                }
            }
        }

I want to change the hours 16 to 18 through the azure cli. I tried the multiple update statement but I couldn’t able to do so.

2

Answers


  1. Chosen as BEST ANSWER

    Hi @pratik every things goes well but when I use the same methodology to update the weekDays Value it fails to update,

    "typeProperties": {
                "recurrence": {
                    "frequency": "Week",
                    "interval": 1,
                    "startTime": "2023-01-23T032:00:00",
                    "timeZone": "W. Europe Standard Time",
                    "schedule": {
                        "minutes": [
                            0
                        ],
                        "hours": [
                            5
                        ],
                        "weekDays": [
                            "Monday",
                            "Tuesday",
                            "Wednesday",
                            "Thursday",
                            "Friday"
                        ]
                    }
                }
    

    I treid this way:

    az datafactory trigger update --factory-name "***" --resource-group "**" --name "Daily_pipeline" 
    --set properties.recurrence.schedule.weekDays=["Monday","Tuesday","Wednesday"]
    

    it seValue it fails to properly instead it updates as a null,


  2. To update schedule time using the Azure CLI You can use az datafactory trigger update Azure CLI command with –set parameter specifying a property as path and value for updating an existing trigger.

    az datafactory trigger update --resource-group "resourcegroup name" --factory-name "Datafactory name"  --name "Trigger name" --set properties.recurrence.schedule.minutes=[29]  --set properties.recurrence.schedule.hours=[29]
    

    Initial properties of my trigger:

    enter image description here

    After executing CLI command:

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search