File tree 1 file changed +10
-2
lines changed
src/Modules/Microsoft.Azure.Functions.PowerShellWorker
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ function Get-DurableStatus {
80
80
The input value that will be passed to the orchestration Azure Function.
81
81
. PARAMETER DurableClient
82
82
The orchestration client object.
83
+ . PARAMETER InstanceId
84
+ The InstanceId for the new orchestration.
83
85
#>
84
86
function Start-DurableOrchestration {
85
87
[CmdletBinding ()]
@@ -98,7 +100,11 @@ function Start-DurableOrchestration {
98
100
99
101
[Parameter (
100
102
ValueFromPipelineByPropertyName = $true )]
101
- [object ] $DurableClient
103
+ [object ] $DurableClient ,
104
+
105
+ [Parameter (
106
+ ValueFromPipelineByPropertyName = $true )]
107
+ [string ] $InstanceId
102
108
)
103
109
104
110
$ErrorActionPreference = ' Stop'
@@ -107,7 +113,9 @@ function Start-DurableOrchestration {
107
113
$DurableClient = GetDurableClientFromModulePrivateData
108
114
}
109
115
110
- $InstanceId = (New-Guid ).Guid
116
+ if (-not $InstanceId ) {
117
+ $InstanceId = (New-Guid ).Guid
118
+ }
111
119
112
120
$Uri =
113
121
if ($DurableClient.rpcBaseUrl ) {
You can’t perform that action at this time.
0 commit comments