az synapse trigger

Manage Synapse's triggers.

Commands

az synapse trigger create

Create a trigger.

az synapse trigger delete

Delete a trigger.

az synapse trigger get-event-subscription-status

Get a trigger's event subscription status.

az synapse trigger list

List triggers.

az synapse trigger set

Update an exist trigger.

az synapse trigger show

Get a trigger.

az synapse trigger start

Starts a trigger.

az synapse trigger stop

Stops a trigger.

az synapse trigger subscribe-to-event

Subscribe event trigger to events.

az synapse trigger unsubscribe-from-event

Unsubscribe event trigger from events.

az synapse trigger update

Update an exist trigger.

az synapse trigger wait

Place the CLI in a waiting state until a condition of a trigger is met.

az synapse trigger create

Create a trigger.

az synapse trigger create --file
                          --name
                          --workspace-name
                          [--no-wait]

Examples

Create a trigger. Pay attention to add "@" at the front of the file path as the best practice for complex arguments like JSON string.

az synapse trigger create --workspace-name testsynapseworkspace \
  --name testtrigger --file @"path/trigger.json"

Required Parameters

--file

Properties may be supplied from a JSON file using the @{path} syntax or a JSON string.

--name -n

The trigger name.

--workspace-name

The workspace name.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

az synapse trigger delete

Delete a trigger.

az synapse trigger delete --name
                          --workspace-name
                          [--no-wait]
                          [--yes]

Examples

Delete a trigger.

az synapse trigger delete --workspace-name testsynapseworkspace \
  --name testtrigger

Required Parameters

--name -n

The trigger name.

--workspace-name

The workspace name.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

--yes -y

Do not prompt for confirmation.

az synapse trigger get-event-subscription-status

Get a trigger's event subscription status.

az synapse trigger get-event-subscription-status --name
                                                 --workspace-name

Examples

Get a trigger's event subscription status.

az synapse trigger get-event-subscription-status --workspace-name testsynapseworkspace \
  --name eventtrigger

Required Parameters

--name -n

The trigger name.

--workspace-name

The workspace name.

az synapse trigger list

List triggers.

az synapse trigger list --workspace-name

Examples

List triggers.

az synapse trigger list --workspace-name testsynapseworkspace

Required Parameters

--workspace-name

The workspace name.

az synapse trigger set

Update an exist trigger.

az synapse trigger set --file
                       --name
                       --workspace-name
                       [--no-wait]

Examples

Update an exist trigger. Pay attention to add "@" at the front of the file path as the best practice for complex arguments like JSON string.

az synapse trigger set --workspace-name testsynapseworkspace \
  --name testtrigger --file @"path/trigger.json"

Required Parameters

--file

Properties may be supplied from a JSON file using the @{path} syntax or a JSON string.

--name -n

The trigger name.

--workspace-name

The workspace name.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

az synapse trigger show

Get a trigger.

az synapse trigger show --name
                        --workspace-name

Examples

Get a trigger.

az synapse trigger show --workspace-name testsynapseworkspace \
  --name testtrigger

Required Parameters

--name -n

The trigger name.

--workspace-name

The workspace name.

az synapse trigger start

Starts a trigger.

az synapse trigger start --name
                         --workspace-name
                         [--no-wait]

Examples

Starts a trigger.

az synapse trigger start --workspace-name testsynapseworkspace \
  --name testtrigger

Required Parameters

--name -n

The trigger name.

--workspace-name

The workspace name.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

az synapse trigger stop

Stops a trigger.

az synapse trigger stop --name
                        --workspace-name
                        [--no-wait]

Examples

Stops a trigger.

az synapse trigger stop --workspace-name testsynapseworkspace \
  --name testtrigger

Required Parameters

--name -n

The trigger name.

--workspace-name

The workspace name.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

az synapse trigger subscribe-to-event

Subscribe event trigger to events.

az synapse trigger subscribe-to-event --name
                                      --workspace-name
                                      [--no-wait]

Examples

Subscribe event trigger to events.

az synapse trigger subscribe-to-event --workspace-name testsynapseworkspace \
  --name eventtrigger

Required Parameters

--name -n

The trigger name.

--workspace-name

The workspace name.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

az synapse trigger unsubscribe-from-event

Unsubscribe event trigger from events.

az synapse trigger unsubscribe-from-event --name
                                          --workspace-name
                                          [--no-wait]

Examples

Unsubscribe event trigger from events.

az synapse trigger unsubscribe-from-event --workspace-name testsynapseworkspace \
  --name eventtrigger

Required Parameters

--name -n

The trigger name.

--workspace-name

The workspace name.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

az synapse trigger update

Update an exist trigger.

az synapse trigger update --file
                          --name
                          --workspace-name
                          [--no-wait]

Examples

Update an exist trigger. Pay attention to add "@" at the front of the file path as the best practice for complex arguments like JSON string.

az synapse trigger update --workspace-name testsynapseworkspace \
  --name testtrigger --file @"path/trigger.json"

Required Parameters

--file

Properties may be supplied from a JSON file using the @{path} syntax or a JSON string.

--name -n

The trigger name.

--workspace-name

The workspace name.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

az synapse trigger wait

Place the CLI in a waiting state until a condition of a trigger is met.

az synapse trigger wait --name
                        --workspace-name
                        [--created]
                        [--custom]
                        [--deleted]
                        [--exists]
                        [--interval]
                        [--timeout]
                        [--updated]

Required Parameters

--name -n

The trigger name.

--workspace-name

The workspace name.

Optional Parameters

--created

Wait until created with 'provisioningState' at 'Succeeded'.

--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

--exists

Wait until the resource exists.

--interval

Polling interval in seconds.

default value: 30
--timeout

Maximum wait in seconds.

default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.