Skip to content

Commit 8542248

Browse files
Update Get-AzSynapseTriggerRun.md (#15231)
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." ```
1 parent 484533d commit 8542248

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Synapse/Synapse/help/Get-AzSynapseTriggerRun.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ The **Get-AzSynapseTriggerRun** command returns detailed information about trigg
3131

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

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

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

4545
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.

0 commit comments

Comments
 (0)