File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 20
20
21
21
## Upcoming Release
22
22
* Remove the unnecessary breaking change of parameter '-SparkConfigFilePath' for ` New-AzSynapseSparkPool ` and ` Update-AzSynapseSparkPool ` cmdlets
23
+ * Fixed the issue for "Start-AzSynapseTrigger/Stop-AzSynapseTrigger" to not throw exception when Request Status is 202
23
24
24
25
## Version 2.3.1
25
26
* Updated Azure.Core to 1.31.0.
Original file line number Diff line number Diff line change 21
21
using Microsoft . Azure . Management . Internal . Resources . Utilities . Models ;
22
22
using Microsoft . Azure . Management . Synapse . Models ;
23
23
using Microsoft . Rest . Azure ;
24
+ using Newtonsoft . Json ;
24
25
using System ;
25
26
using System . Collections ;
26
27
using System . Collections . Generic ;
@@ -238,8 +239,10 @@ public static Response Poll(this Operation operation)
238
239
{
239
240
var result = operation . WaitForCompletionResponseAsync ( ) . Result ;
240
241
var responseContent = result . Content ;
241
- if ( responseContent ? . ToString ( ) . IsEmptyOrWhiteSpace ( ) == false )
242
+
243
+ if ( responseContent ? . ToString ( ) != "{}" && responseContent ? . ToString ( ) . IsEmptyOrWhiteSpace ( ) == false )
242
244
{
245
+
243
246
throw new Exception ( responseContent ? . ToString ( ) ) ;
244
247
}
245
248
return result ;
You can’t perform that action at this time.
0 commit comments