Closed
Description
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:
- Execute Connect-MgGraph -ClientId $AppIdForGraph -TenantId $TenantId -CertificateThumbprint $CertificateThumbprint.Thumbprint -ErrorAction Stop | Out-Null
- 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