Skip to content

Commit 502fbf1

Browse files
committed
Fixed integration runtime cmdlet issue.
1 parent 5c0ee38 commit 502fbf1

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

src/ResourceManager/DataFactories/Commands.DataFactoryV2/IntegrationRuntimes/UpdateAzureDataFactoryIntegrationRuntimeNodeCommand.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using System.Globalization;
1717
using System.Management.Automation;
1818
using System.Security.Permissions;
19+
using Microsoft.Azure.Commands.DataFactoryV2.Models;
1920
using Microsoft.Azure.Commands.DataFactoryV2.Properties;
2021
using Microsoft.Azure.Management.DataFactory.Models;
2122

@@ -26,7 +27,7 @@ namespace Microsoft.Azure.Commands.DataFactoryV2
2627
Constants.IntegrationRuntimeNode,
2728
DefaultParameterSetName = ParameterSetNames.ByIntegrationRuntimeName,
2829
SupportsShouldProcess = true),
29-
OutputType(typeof (SelfHostedIntegrationRuntimeNode))]
30+
OutputType(typeof(PSSelfHostedIntegrationRuntimeNode))]
3031
public class UpdateAzureDataFactoryIntegrationRuntimeNodeCommand : IntegrationRuntimeContextBaseCmdlet
3132
{
3233
[Parameter(
@@ -48,15 +49,23 @@ public override void ExecuteCmdlet()
4849

4950
Action updateIntegrationRuntimeNode = () =>
5051
{
51-
WriteObject(this.DataFactoryClient.UpdateIntegrationRuntimeNodesAsync(
52+
var node = this.DataFactoryClient.UpdateIntegrationRuntimeNodesAsync(
5253
ResourceGroupName,
5354
DataFactoryName,
5455
IntegrationRuntimeName,
5556
Name,
5657
new UpdateIntegrationRuntimeNodeRequest()
5758
{
5859
ConcurrentJobsLimit = ConcurrentJobsLimit
59-
}).ConfigureAwait(true).GetAwaiter().GetResult());
60+
}).ConfigureAwait(false).GetAwaiter().GetResult();
61+
62+
WriteObject(new PSSelfHostedIntegrationRuntimeNode(
63+
ResourceGroupName,
64+
DataFactoryName,
65+
IntegrationRuntimeName,
66+
Name,
67+
node,
68+
null));
6069
};
6170

6271
ConfirmAction(

src/ResourceManager/DataFactories/Commands.DataFactoryV2/help/Update-AzureRmDataFactoryV2IntegrationRuntime.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
external help file: Microsoft.Azure.Commands.DataFactoryV2.dll-Help.xml
3+
Module Name: AzureRM.DataFactoryV2
34
online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.datafactories/update-azurermdatafactoryv2integrationruntime
45
schema: 2.0.0
56
---

src/ResourceManager/DataFactories/Commands.DataFactoryV2/help/Update-AzureRmDataFactoryV2IntegrationRuntimeNode.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
external help file: Microsoft.Azure.Commands.DataFactoryV2.dll-Help.xml
3+
Module Name: AzureRM.DataFactoryV2
34
online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.datafactories/update-azurermdatafactoryv2integrationruntimenode
45
schema: 2.0.0
56
---
@@ -212,7 +213,7 @@ Microsoft.Azure.Commands.DataFactoryV2.Models.PSIntegrationRuntime
212213
213214
## OUTPUTS
214215
215-
### Microsoft.Azure.Management.DataFactory.Models.SelfHostedIntegrationRuntimeNode
216+
### Microsoft.Azure.Commands.DataFactoryV2.Models.PSSelfHostedIntegrationRuntimeNode
216217
217218
## NOTES
218219
Keywords: azure, azurerm, arm, resource, management, manager, data, factories, copy, activities, integration runtime

0 commit comments

Comments
 (0)