Skip to content

Bump Newtonsoft.Json from 10.0.3 to 13.0.1 in /src/Authentication/Authentication.Core causes module version conflict - Azure Automation #1468

@FialaP

Description

@FialaP

Hello guys,
I have the same issue as was solved here, but in a slightly different environment. I am using Connect-MgGraph in Azure Automation - PowerShell runbook, where only PowerShell runtime version 5.1 or 7.1 (preview) is available (using now 7.1 (preview)). I'm afraid that upgrading to PowerShell runtime version 7.2 is not possible there. Or how to do it?

I also tried to use Microsoft.Graph.Authentication version 1.9.6 as a workaround from powershellgallery, but I can't get this version for PowerShell 7.1 runtime version. When I get it into the runbook via the Azure Automation tab, the runbook cannot find this module probably because of the runtime version 5.1 listed in the runbook modules for that runbook. So second question is how can I get Microsoft.Graph.Authentication version 1.9.6 for Powershell 7.1 runtime version to Azure powershell runbook (workaround)?
Or is there any another workaround?

Thanks.
PF

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions