Ravi Khambhati
Ravi Khambhati

Reputation: 743

Set-AzureRmDataFactoryV2IntegrationRuntime : Method not found

When I am trying "Set-AzureRmDataFactoryV2IntegrationRuntime" command constantly getting below error.

Set-AzureRmDataFactoryV2IntegrationRuntime : Method not found: 'Newtonsoft.Json.Serialization.IAttributeProvider Newtonsoft.Json.Serialization.JsonProperty.get_AttributeProvider()'. At C:\Users\ravi\source\repos\test.ps1:12 char:5 + Set-AzureRmDataFactoryV2IntegrationRuntime ` + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Set-AzureRmData...egrationRuntime], MissingMethodException + FullyQualifiedErrorId : Microsoft.Azure.Commands.DataFactoryV2.SetAzureDataFactoryIntegrationRuntimeCommand

When I ran "Get-Module" command I see below list of modules

ModuleType Version Name
ExportedCommands

---------- ------- ---- ----------------

Script 0.5.10 AzureRM.DataFactoryV2
{Get-AzureRmDataFactoryV2, Get-AzureRmDataFactoryV2ActivityRun, Get-AzureRmDat...

Script 5.6.0 AzureRM.profile
{Add-AzureRmEnvironment, Clear-AzureRmContext, Clear-AzureRmDefault, Connect-A...

Manifest 3.1.0.0 Microsoft.PowerShell.Management
{Add-Computer, Add-Content, Checkpoint-Computer, Clear-Content...}

Manifest 3.0.0.0 Microsoft.PowerShell.Security
{ConvertFrom-SecureString, ConvertTo-SecureString, Get-Acl, Get-AuthenticodeSi...

Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object...}

Manifest 3.0.0.0 Microsoft.WSMan.Management
{Connect-WSMan, Disable-WSManCredSSP, Disconnect-WSMan, Enable-WSManCredSSP...}

Script 0.2.0 PowerShellEditorServices.Commands
{ConvertFrom-ScriptExtent, ConvertTo-ScriptExtent, Find-Ast, Get-Token...}

Script 0.2.0 PowerShellEditorServices.VSCode
{Close-VSCodeHtmlContentView, New-VSCodeHtmlContentView, Set-VSCodeHtmlContent...

I have installed Azure PowerShell MSI link given on below page.

Page URL: https://learn.microsoft.com/en-us/powershell/azure/other-install?view=azurermps-6.9.0

MSI URL: https://github.com/Azure/azure-powershell/releases/download/v6.9.0-September2018/azure-powershell.6.9.0.msi

Update: When I was trying to create IS manually I see that its created but with "Unavailable" status

enter image description here

Updated on 10/10 for Joy Wang enter image description here

Upvotes: 0

Views: 811

Answers (1)

Joy Wang
Joy Wang

Reputation: 42163

I test the Set-AzureRmDataFactoryV2IntegrationRuntime on my side, it works fine. I recommend you to remove the modules and install again, refer to this link.

My specific command:

Set-AzureRmDataFactoryV2IntegrationRuntime -ResourceGroupName 'joywebapp' -DataFactoryName 'joyfactoryv2' -Name 'integrationRuntime35' -Type "SelfHosted" -Description 'New description111'

enter image description here

My module :

enter image description here

When I was trying to create IS manually I see that its created but with "Unavailable" status

To fix this issue of Self-Hosted type runtime, you could install the Microsoft Integration Runtime Configuration Manager, in the runtime -> Edit -> Click here to launch the express setup for this computer, refer to the screenshot.

enter image description here

After installing it, you will see them like the screenshot.

enter image description here

Check in the portal:

enter image description here

Upvotes: 0

Related Questions