我的触发器设置为一周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它不能正确地代替它更新为空,
1条答案
按热度按时间6mzjoqzu1#
尝试将
weekDays
属性值包含在单个Quotes中。下面是正确的命令:
字符串
更新前触发定义:
的数据
update命令后
的
注意:
weekDays
值需要用单引号括起来,天数数组需要用双引号括起来。