如何使用azure cli更新ADF触发器weekDays参数?

33qvvth1  于 2023-08-07  发布在  其他
关注(0)|答案(1)|浏览(84)

我的触发器设置为一周7天,但我只想通过azure cli使用weekDays参数更新几天

"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它不能正确地代替它更新为空,

6mzjoqzu

6mzjoqzu1#

尝试将weekDays属性值包含在单个Quotes中。
下面是正确的命令:

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

字符串

更新前触发定义:


的数据

update命令后



注意:weekDays值需要用单引号括起来,天数数组需要用双引号括起来。

相关问题