gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 05:11:10 25 4
gpt4 key购买 nike

我的触发器设置为每周 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无法正确更新,而是更新为空,

最佳答案

尝试将 weekDays 属性值括在单引号中。

下面是正确的命令:

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

更新前的触发器定义:

enter image description here

更新命令后

enter image description here

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

关于azure - 如何使用 azure cli 更新 ADF 触发器 weekDays 参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76786172/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com