title: Connect-MSGraph command unable to execute in Azure Functions powershell core 6
body: <p>I have an azure function with Powershell core 6 environment create,</p>
  <p>Wanted to run some of the MS graph powershell modules like &quot;Get-IntuneManagedDevice | Get-MSGraphAllPages&quot;
  but this requires token which i tried to use &quot;Connect-MSGraph&quot; but when executed got the following error
  Error:
  Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.): Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.</p>
  <p>can anyone help me in the fix or correct me if I am doing it wrong at any point.</p>