Когда я пытаюсь выполнить команду «Set-AzureRmDataFactoryV2IntegrationRuntime», я постоянно получаю ошибку ниже.
Set-AzureRmDataFactoryV2IntegrationRuntime: метод не найден: «Newtonsoft.Json.Serialization.IAttributeProvider Newtonsoft.Json.Serialization.JsonProperty.get_AttributeProvider ()». В C: \ Users \ ravi \ source \ repos \ test.ps1: 12 символов: 5 + Set-AzureRmDataFactoryV2IntegrationRuntime `+ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo: CloseError: (:) [Set-AzureRmData ... egrationRuntime], MissingMethodException + FullyQualifiedErrorId: Microsoft.Azure.Commands.DataFactoryV2. SetAzureDataFactoryIntegrationRuntimeCommand
Когда я запустил команду "Get-Module", я увидел ниже список модулей.
Название версии ModuleType
ExportedCommands---------- ------- ---- ----------------
Сценарий 0.5.10 AzureRM.DataFactoryV2
{Get-AzureRmDataFactoryV2, Get-AzureRmDataFactoryV2ActivityRun, Get-AzureRmDat ...Сценарий 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 ...}Манифест 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 ...}
Манифест 3.0.0.0 Microsoft.WSMan.Management
{Connect-WSMan, Disable-WSManCredSSP, Disconnect-WSMan, Enable-WSManCredSSP ...}Сценарий 0.2.0 PowerShellEditorServices.Commands
{ConvertFrom-ScriptExtent, ConvertTo-ScriptExtent, Find-Ast, Get-Token ...}Сценарий 0.2.0 PowerShellEditorServices.VSCode
{Close-VSCodeHtmlContentView, New-VSCodeHtmlContentView, Set-VSCodeHtmlContent ...
Я установил ссылку MSI для Azure PowerShell, указанную на странице ниже.
URL страницы: https://docs.microsoft.com/en-us/powershell/azure/other-install?view=azurermps-6.9.0.
URL-адрес MSI: https://github.com/Azure/azure-powershell/releases/download/v6.9.0-September2018/azure-powershell.6.9.0.msi
Обновление: когда я пытался создать IS вручную, я вижу, что он создан, но со статусом «Недоступен».