Seem to have hit a snag with the Integrated Environment on my App Service PSU - it doesn’t want to load the Msal.Ps module.
Importing it under the Windows Powershell 5.1 Environment throws a couple of “type name not found” errors if I leave debug logs on but loads and works fine - but really I want to use Integrated so I can set cache variables for my dashboards from scheduled scripts.
Trying to import it under Integrated, I get the following error and dashboards refuse to start - anyone else seen this?
Could not load file or assembly 'Microsoft.Identity.Client, Version=4.37.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae'. at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync) at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings) at System.Management.Automation.Runspaces.InitialSessionState.ProcessOneModule(Runspace initializedRunspace, String name, PSModuleInfo moduleInfoToLoad, String path, HashSet`1 publicCommands) at System.Management.Automation.Runspaces.InitialSessionState.ProcessModulesToImport(Runspace initializedRunspace, IEnumerable moduleList, String path, HashSet`1 publicCommands, HashSet`1 unresolvedCmdsToExpose) at System.Management.Automation.Runspaces.InitialSessionState.BindRunspace(Runspace initializedRunspace, PSTraceSource runspaceInitTracer) at System.Management.Automation.Runspaces.LocalRunspace.DoOpenHelper() at System.Management.Automation.Runspaces.RunspaceBase.CoreOpen(Boolean syncCall) at UniversalAutomation.Host.JobService.ExecuteScript(executeScriptRequest request) in D:\a\universal\universal\src\Host\JobService.cs:line 70
Doesn’t just seem to be when I try to load the module that it’s having problems either - this evening after I installed the module anything running in the Integrated environment (whether it calls Msal.Ps or not) is refusing to start (scripts and dashboards) and throwing the same error.