Skip to content

Commit

Permalink
Update Get-AzSynapseTriggerRun.md (#15231)
Browse files Browse the repository at this point in the history
The current example throws an errors

```
Cannot bind parameter 'RunStartedAfter'. Cannot convert value "[DateTimeOffset]2018-09-01T21:00" to 
type "System.DateTimeOffset". Error: "String was not recognized as a valid DateTime."
```
  • Loading branch information
MikeyBronowski authored Jun 11, 2021
1 parent 484533d commit 8542248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Synapse/Synapse/help/Get-AzSynapseTriggerRun.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ The **Get-AzSynapseTriggerRun** command returns detailed information about trigg

### Example 1
```powershell
PS C:\> Get-AzSynapseTriggerRun -WorkspaceName ContosoWorkspace -Name ContosoTrigger -RunStartedAfter [DateTimeOffset]"2018-09-01T21:00" -RunStartedBefore [DateTimeOffset]"2019-09-01T21:00"
PS C:\> Get-AzSynapseTriggerRun -WorkspaceName ContosoWorkspace -Name ContosoTrigger -RunStartedAfter "2018-09-01T21:00" -RunStartedBefore "2019-09-01T21:00"
```

This command shows information about runs for ContosoTrigger in the workspace ContosoWorkspace that started between "2018-09-01T21:00" and "2019-09-01T21:00".

### Example 2
```powershell
PS C:\> $ws = Get-AzSynapseWorkspace -Name ContosoWorkspace
PS C:\> $ws | Get-AzSynapseTriggerRun -Name ContosoTrigger -RunStartedAfter [DateTimeOffset]"2018-09-01T21:00" -RunStartedBefore [DateTimeOffset]"2019-09-01T21:00"
PS C:\> $ws | Get-AzSynapseTriggerRun -Name ContosoTrigger -RunStartedAfter "2018-09-01T21:00" -RunStartedBefore "2019-09-01T21:00"
```

This command shows information about runs for ContosoTrigger in the workspace ContosoWorkspace that started between "2018-09-01T21:00" and "2019-09-01T21:00" through pipeline.
Expand Down

0 comments on commit 8542248

Please sign in to comment.