Reputation: 743
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
Update: When I was trying to create IS manually I see that its created but with "Unavailable" status
Upvotes: 0
Views: 811
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'
My module :
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.
After installing it, you will see them like the screenshot.
Check in the portal:
Upvotes: 0