如何使用Azure CLI更新ADF计划时间?

fcy6dtqo  于 2023-08-07  发布在  其他
关注(0)|答案(2)|浏览(138)

这是我的触发器类型属性,

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

字符串
我想通过azure cli将时间从16改为18。我尝试了多次update语句,但无法执行此操作。

vlju58qv

vlju58qv1#

要使用Azure CLI更新计划时间,您可以使用az datafactory trigger update Azure CLI命令和**--set**参数,将属性指定为用于更新现有触发器的路径和值。

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]

字符串

触发器初始属性:

x1c 0d1x的数据

执行CLI命令后:


0ejtzxu1

0ejtzxu12#

Hi @pratik一切都很顺利,但是当我使用相同的方法来更新weekDays Value时,它无法更新,

"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"
                    ]
                }
            }

字符串
我是这样说的:

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


它seValue它不能正确地代替它更新为空,

相关问题