AZ CLI - Set multiple values in a property - Pipeline Trigger

Martull 1 Reputation point
2022-11-11T13:50:38.103+00:00

Hello,

I want to set the frequency of a property to more than one value. It is a Pipeline Trigger in Azure Data Factory.

If I do it via Azure Portal, I can retrieve the current value via CLI

az datafactory trigger show --factory-name poc-df-01 --resource-group poc-df-rg --name trigger_poc

259428-t01.png

To set the value to Tuesday and Friday, how can I do it?

az datafactory trigger update --factory-name poc-df-01 --resource-group poc-df-rg --name trigger_poc --set properties.recurrence.schedule.weekDays[0]="Tuesday Friday"

It doesn't work, nor other tests I have done:

.weekDays[0]="Tuesday" "Friday"
.weekDays[0]='{"Tuesday","Friday"}'
.weekDays[0]="\"Tuesday\",\"Friday\""
.weekDays[0]="'Tuesday','Friday'"

In all cases includes both days as a string, and In the Portal you can see that no day is selected:

259550-t02.png

259602-t03.png

Portal:

259480-t04.png

I have tried what it states in the Official Doc without success. And I know I am missing something. Probably the stupidest thing xD

How can I do it?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,077 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shekhar Khadka 0 Reputation points
    2023-07-28T14:23:44.9566667+00:00

    Hi @Martull did you figure out any resolution on this? Actually I also stuck in updating the the weekDays to just set for couple of days like "sunday" and "monday" via azure CLI