26
26
27
27
namespace Microsoft . Azure . Commands . DataFactoryV2
28
28
{
29
- [ Cmdlet ( "Set" , ResourceManager . Common . AzureRMConstants . AzureRMPrefix + "DataFactoryV2IntegrationRuntime" , DefaultParameterSetName = ParameterSetNames . ByIntegrationRuntimeName , SupportsShouldProcess = true ) , OutputType ( typeof ( PSIntegrationRuntime ) ) ]
29
+ [ Cmdlet ( "Set" , ResourceManager . Common . AzureRMConstants . AzureRMPrefix + "DataFactoryV2IntegrationRuntime" , DefaultParameterSetName = ParameterSetNames . ByIntegrationRuntimeName , SupportsShouldProcess = true ) , OutputType ( typeof ( PSIntegrationRuntime ) ) ]
30
30
public class SetAzureDataFactoryIntegrationRuntimeCommand : IntegrationRuntimeCmdlet
31
31
{
32
32
[ Parameter (
@@ -286,8 +286,8 @@ public class SetAzureDataFactoryIntegrationRuntimeCommand : IntegrationRuntimeCm
286
286
ParameterSetName = ParameterSetNames . ByIntegrationRuntimeObject ,
287
287
Mandatory = false ,
288
288
HelpMessage = Constants . HelpIntegrationRuntimeDataFlowComputeType ) ]
289
- [ PSArgumentCompleter ( Management . DataFactory . Models . DataFlowComputeType . General ,
290
- Management . DataFactory . Models . DataFlowComputeType . MemoryOptimized ,
289
+ [ PSArgumentCompleter ( Management . DataFactory . Models . DataFlowComputeType . General ,
290
+ Management . DataFactory . Models . DataFlowComputeType . MemoryOptimized ,
291
291
Management . DataFactory . Models . DataFlowComputeType . ComputeOptimized ) ]
292
292
[ ValidateNotNullOrEmpty ]
293
293
public string DataFlowComputeType { get ; set ; }
@@ -334,6 +334,90 @@ public class SetAzureDataFactoryIntegrationRuntimeCommand : IntegrationRuntimeCm
334
334
HelpMessage = Constants . HelpIntegrationRuntimeDataFlowTimeToLive ) ]
335
335
public int ? DataFlowTimeToLive { get ; set ; }
336
336
337
+ [ Parameter (
338
+ ParameterSetName = ParameterSetNames . ByIntegrationRuntimeName ,
339
+ Mandatory = false ,
340
+ HelpMessage = Constants . HelpIntegrationRuntimeManagedVNetCopyComputeScaleDataIntegrationUnit ) ]
341
+ [ Parameter (
342
+ ParameterSetName = ParameterSetNames . ByResourceId ,
343
+ Mandatory = false ,
344
+ HelpMessage = Constants . HelpIntegrationRuntimeManagedVNetCopyComputeScaleDataIntegrationUnit ) ]
345
+ [ Parameter (
346
+ ParameterSetName = ParameterSetNames . ByIntegrationRuntimeObject ,
347
+ Mandatory = false ,
348
+ HelpMessage = Constants . HelpIntegrationRuntimeManagedVNetCopyComputeScaleDataIntegrationUnit ) ]
349
+ public int ? ManagedVNetCopyComputeScaleDataIntegrationUnit { get ; set ; }
350
+
351
+ [ Parameter (
352
+ ParameterSetName = ParameterSetNames . ByIntegrationRuntimeName ,
353
+ Mandatory = false ,
354
+ HelpMessage = Constants . HelpIntegrationRuntimeManagedVNetCopyComputeScaleTimeToLive ) ]
355
+ [ Parameter (
356
+ ParameterSetName = ParameterSetNames . ByResourceId ,
357
+ Mandatory = false ,
358
+ HelpMessage = Constants . HelpIntegrationRuntimeManagedVNetCopyComputeScaleTimeToLive ) ]
359
+ [ Parameter (
360
+ ParameterSetName = ParameterSetNames . ByIntegrationRuntimeObject ,
361
+ Mandatory = false ,
362
+ HelpMessage = Constants . HelpIntegrationRuntimeManagedVNetCopyComputeScaleTimeToLive ) ]
363
+ public int ? ManagedVNetCopyComputeScaleTimeToLive { get ; set ; }
364
+
365
+ [ Parameter (
366
+ ParameterSetName = ParameterSetNames . ByIntegrationRuntimeName ,
367
+ Mandatory = false ,
368
+ HelpMessage = Constants . HelpIntegrationRuntimeManagedVNetPipelineExternalComputeScaleTimeToLive ) ]
369
+ [ Parameter (
370
+ ParameterSetName = ParameterSetNames . ByResourceId ,
371
+ Mandatory = false ,
372
+ HelpMessage = Constants . HelpIntegrationRuntimeManagedVNetPipelineExternalComputeScaleTimeToLive ) ]
373
+ [ Parameter (
374
+ ParameterSetName = ParameterSetNames . ByIntegrationRuntimeObject ,
375
+ Mandatory = false ,
376
+ HelpMessage = Constants . HelpIntegrationRuntimeManagedVNetPipelineExternalComputeScaleTimeToLive ) ]
377
+ public int ? ManagedVNetPipelineExternalComputeScaleTimeToLive { get ; set ; }
378
+
379
+ [ Parameter (
380
+ ParameterSetName = ParameterSetNames . ByIntegrationRuntimeName ,
381
+ Mandatory = false ,
382
+ HelpMessage = Constants . HelpIntegrationRuntimeManagedVNetNumberOfPipelineNodes ) ]
383
+ [ Parameter (
384
+ ParameterSetName = ParameterSetNames . ByResourceId ,
385
+ Mandatory = false ,
386
+ HelpMessage = Constants . HelpIntegrationRuntimeManagedVNetNumberOfPipelineNodes ) ]
387
+ [ Parameter (
388
+ ParameterSetName = ParameterSetNames . ByIntegrationRuntimeObject ,
389
+ Mandatory = false ,
390
+ HelpMessage = Constants . HelpIntegrationRuntimeManagedVNetNumberOfPipelineNodes ) ]
391
+ public int ? ManagedVNetNumberOfPipelineNodeCount { get ; set ; }
392
+
393
+ [ Parameter (
394
+ ParameterSetName = ParameterSetNames . ByIntegrationRuntimeName ,
395
+ Mandatory = false ,
396
+ HelpMessage = Constants . HelpIntegrationRuntimeManagedVNetNumberOfExternalNodes ) ]
397
+ [ Parameter (
398
+ ParameterSetName = ParameterSetNames . ByResourceId ,
399
+ Mandatory = false ,
400
+ HelpMessage = Constants . HelpIntegrationRuntimeManagedVNetNumberOfExternalNodes ) ]
401
+ [ Parameter (
402
+ ParameterSetName = ParameterSetNames . ByIntegrationRuntimeObject ,
403
+ Mandatory = false ,
404
+ HelpMessage = Constants . HelpIntegrationRuntimeManagedVNetNumberOfExternalNodes ) ]
405
+ public int ? ManagedVNetNumberOfExternalNodeCount { get ; set ; }
406
+
407
+ [ Parameter (
408
+ ParameterSetName = ParameterSetNames . ByIntegrationRuntimeName ,
409
+ Mandatory = false ,
410
+ HelpMessage = Constants . HelpIntegrationRuntimeSelfContainedInteractiveAuthoringEnabled ) ]
411
+ [ Parameter (
412
+ ParameterSetName = ParameterSetNames . ByResourceId ,
413
+ Mandatory = false ,
414
+ HelpMessage = Constants . HelpIntegrationRuntimeSelfContainedInteractiveAuthoringEnabled ) ]
415
+ [ Parameter (
416
+ ParameterSetName = ParameterSetNames . ByIntegrationRuntimeObject ,
417
+ Mandatory = false ,
418
+ HelpMessage = Constants . HelpIntegrationRuntimeSelfContainedInteractiveAuthoringEnabled ) ]
419
+ public SwitchParameter SelfContainedInteractiveAuthoringEnabled { get ; set ; }
420
+
337
421
[ Parameter (
338
422
ParameterSetName = ParameterSetNames . ByIntegrationRuntimeName ,
339
423
Mandatory = false ,
@@ -613,7 +697,10 @@ public override void ExecuteCmdlet()
613
697
var authKey = ConvertToUnsecureString ( AuthKey ) ;
614
698
selfHosted . LinkedInfo = new LinkedIntegrationRuntimeKeyAuthorization ( new SecureString ( authKey ) ) ;
615
699
}
616
-
700
+ if ( SelfContainedInteractiveAuthoringEnabled . IsPresent )
701
+ {
702
+ selfHosted . SelfContainedInteractiveAuthoringEnabled = true ;
703
+ }
617
704
resource . Properties = selfHosted ;
618
705
}
619
706
}
@@ -629,6 +716,10 @@ public override void ExecuteCmdlet()
629
716
if ( selfHostedIr != null )
630
717
{
631
718
selfHostedIr . LinkedInfo = new LinkedIntegrationRuntimeRbacAuthorization ( SharedIntegrationRuntimeResourceId ) ;
719
+ if ( SelfContainedInteractiveAuthoringEnabled . IsPresent )
720
+ {
721
+ selfHostedIr . SelfContainedInteractiveAuthoringEnabled = true ;
722
+ }
632
723
}
633
724
else
634
725
{
@@ -790,7 +881,7 @@ private void HandleManagedIntegrationRuntime(ManagedIntegrationRuntime integrati
790
881
if ( DataFlowEnableQuickReuse . IsPresent )
791
882
{
792
883
integrationRuntime . ComputeProperties . DataFlowProperties . Cleanup = false ;
793
- }
884
+ }
794
885
else
795
886
{
796
887
// setting it as null as the default value for the cleanup variable is false, and the backend endpoint treats null value as true.
@@ -799,6 +890,37 @@ private void HandleManagedIntegrationRuntime(ManagedIntegrationRuntime integrati
799
890
800
891
}
801
892
893
+ if ( ManagedVNetCopyComputeScaleDataIntegrationUnit != null || ManagedVNetCopyComputeScaleTimeToLive != null )
894
+ {
895
+ if ( integrationRuntime . ComputeProperties == null )
896
+ {
897
+ integrationRuntime . ComputeProperties = new IntegrationRuntimeComputeProperties ( ) ;
898
+ }
899
+ if ( integrationRuntime . ComputeProperties . CopyComputeScaleProperties == null )
900
+ {
901
+ integrationRuntime . ComputeProperties . CopyComputeScaleProperties = new CopyComputeScaleProperties ( ) ;
902
+ }
903
+
904
+ integrationRuntime . ComputeProperties . CopyComputeScaleProperties . DataIntegrationUnit = ManagedVNetCopyComputeScaleDataIntegrationUnit ?? integrationRuntime . ComputeProperties . CopyComputeScaleProperties . DataIntegrationUnit ;
905
+ integrationRuntime . ComputeProperties . CopyComputeScaleProperties . TimeToLive = ManagedVNetCopyComputeScaleTimeToLive ?? integrationRuntime . ComputeProperties . CopyComputeScaleProperties . TimeToLive ;
906
+ }
907
+
908
+ if ( ManagedVNetPipelineExternalComputeScaleTimeToLive != null || ManagedVNetNumberOfPipelineNodeCount != null || ManagedVNetNumberOfExternalNodeCount != null )
909
+ {
910
+ if ( integrationRuntime . ComputeProperties == null )
911
+ {
912
+ integrationRuntime . ComputeProperties = new IntegrationRuntimeComputeProperties ( ) ;
913
+ }
914
+ if ( integrationRuntime . ComputeProperties . PipelineExternalComputeScaleProperties == null )
915
+ {
916
+ integrationRuntime . ComputeProperties . PipelineExternalComputeScaleProperties = new PipelineExternalComputeScaleProperties ( ) ;
917
+ }
918
+
919
+ integrationRuntime . ComputeProperties . PipelineExternalComputeScaleProperties . TimeToLive = ManagedVNetPipelineExternalComputeScaleTimeToLive ?? integrationRuntime . ComputeProperties . PipelineExternalComputeScaleProperties . TimeToLive ;
920
+ integrationRuntime . ComputeProperties . PipelineExternalComputeScaleProperties . NumberOfPipelineNodes = ManagedVNetNumberOfPipelineNodeCount ?? integrationRuntime . ComputeProperties . PipelineExternalComputeScaleProperties . NumberOfPipelineNodes ;
921
+ integrationRuntime . ComputeProperties . PipelineExternalComputeScaleProperties . NumberOfExternalNodes = ManagedVNetNumberOfExternalNodeCount ?? integrationRuntime . ComputeProperties . PipelineExternalComputeScaleProperties . NumberOfExternalNodes ;
922
+ }
923
+
802
924
if ( PublicIPs != null )
803
925
{
804
926
if ( string . IsNullOrWhiteSpace ( VNetId ) && string . IsNullOrWhiteSpace ( SubnetId ) )
0 commit comments