File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Modules/Microsoft.Azure.Functions.PowerShellWorker Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public class OrchestrationContext
2020 public object Input { get ; internal set ; }
2121
2222 [ DataMember ]
23- internal string InstanceId { get ; set ; }
23+ public string InstanceId { get ; set ; }
2424
2525 [ DataMember ]
2626 internal string ParentInstanceId { get ; set ; }
Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ function Get-DurableStatus {
8080 The input value that will be passed to the orchestration Azure Function.
8181. PARAMETER DurableClient
8282 The orchestration client object.
83+ . PARAMETER InstanceId
84+ The InstanceId for the new orchestration.
8385#>
8486function Start-DurableOrchestration {
8587 [CmdletBinding ()]
@@ -98,7 +100,11 @@ function Start-DurableOrchestration {
98100
99101 [Parameter (
100102 ValueFromPipelineByPropertyName = $true )]
101- [object ] $DurableClient
103+ [object ] $DurableClient ,
104+
105+ [Parameter (
106+ ValueFromPipelineByPropertyName = $true )]
107+ [string ] $InstanceId
102108 )
103109
104110 $ErrorActionPreference = ' Stop'
@@ -107,7 +113,9 @@ function Start-DurableOrchestration {
107113 $DurableClient = GetDurableClientFromModulePrivateData
108114 }
109115
110- $InstanceId = (New-Guid ).Guid
116+ if (-not $InstanceId ) {
117+ $InstanceId = (New-Guid ).Guid
118+ }
111119
112120 $Uri =
113121 if ($DurableClient.rpcBaseUrl ) {
You can’t perform that action at this time.
0 commit comments