Skip to content

Azure Automation Runbook - The type initializer for 'Azure.Core.Pipeline.DiagnosticScopeFactory' threw an exception. #2478

Closed
@ibutbul1

Description

@ibutbul1

Describe the bug

Since the update of the Microsoft.Graph.Authentication on my Azure Automation account to the version 2.10, I'm unable to authenticate on with my App Registration when it's running on Azure.

To Reproduce
Steps to reproduce the behavior:

  1. Execute Connect-MgGraph -ClientId $AppIdForGraph -TenantId $TenantId -CertificateThumbprint $CertificateThumbprint.Thumbprint -ErrorAction Stop | Out-Null
  2. See error at The type initializer for 'Azure.Core.Pipeline.DiagnosticScopeFactory' threw an exception.

Expected behavior

Successfully authenticate to the Graph API as it does so on the Hybrid Worker.

Module Version
Hybrid Worker - 1.27.0
Azure Automation Account - 2.10

Environment Data

5.1

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