The task fails with the following error:
The required module 'Microsoft.Graph.Authentication' is not loaded. Load the module or remove the module from 'RequiredModules' in the file 'C:\hostedtoolcache\windows\MSCRMBuildTools\12.0.95\Microsoft.Graph.Users.1.23.0\Microsoft.Graph.Users.psd1'.
But in the pipeline logs:
2023-04-05T09:45:36.1194912Z ##[debug]Retrieving package 'Microsoft.Graph.Authentication 1.23.0' from 'PowerShell Gallery'.
2023-04-05T09:45:36.1219035Z ##[debug]Retrieving package 'Microsoft.Graph.Users 1.23.0' from 'PowerShell Gallery'.
2023-04-05T09:45:36.1243992Z ##[debug] GET https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Users/1.23.02023-04-05T09:45:36.1268580Z ##[debug] GET https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.23.0
2023-04-05T09:45:36.1292457Z ##[debug] OK https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Users/1.23.0 210ms
2023-04-05T09:45:36.1316421Z ##[debug]Installing Microsoft.Graph.Users 1.23.0.
2023-04-05T09:45:36.1340707Z ##[debug] OK https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.23.0 422ms2023-04-05T09:45:36.1369245Z ##[debug]Installing Microsoft.Graph.Authentication 1.23.0.2023-04-05T09:45:36.1384700Z ##[debug]Adding package 'Microsoft.Graph.Authentication.1.23.0' to folder 'C:\hostedtoolcache\windows\MSCRMBuildTools\12.0.95'2023-04-05T09:45:36.1408819Z ##[debug]Added package 'Microsoft.Graph.Authentication.1.23.0' to folder 'C:\hostedtoolcache\windows\MSCRMBuildTools\12.0.95'
2023-04-05T09:45:36.1432765Z ##[debug]Successfully installed 'Microsoft.Graph.Authentication 1.23.0' to C:\hostedtoolcache\windows\MSCRMBuildTools\12.0.95
The task fails with the following error: The required module 'Microsoft.Graph.Authentication' is not loaded. Load the module or remove the module from 'RequiredModules' in the file 'C:\hostedtoolcache\windows\MSCRMBuildTools\12.0.95\Microsoft.Graph.Users.1.23.0\Microsoft.Graph.Users.psd1'.
But in the pipeline logs: 2023-04-05T09:45:36.1194912Z ##[debug]Retrieving package 'Microsoft.Graph.Authentication 1.23.0' from 'PowerShell Gallery'. 2023-04-05T09:45:36.1219035Z ##[debug]Retrieving package 'Microsoft.Graph.Users 1.23.0' from 'PowerShell Gallery'. 2023-04-05T09:45:36.1243992Z ##[debug] GET https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Users/1.23.0 2023-04-05T09:45:36.1268580Z ##[debug] GET https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.23.0 2023-04-05T09:45:36.1292457Z ##[debug] OK https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Users/1.23.0 210ms 2023-04-05T09:45:36.1316421Z ##[debug]Installing Microsoft.Graph.Users 1.23.0. 2023-04-05T09:45:36.1340707Z ##[debug] OK https://www.powershellgallery.com/api/v2/package/Microsoft.Graph.Authentication/1.23.0 422ms 2023-04-05T09:45:36.1369245Z ##[debug]Installing Microsoft.Graph.Authentication 1.23.0. 2023-04-05T09:45:36.1384700Z ##[debug]Adding package 'Microsoft.Graph.Authentication.1.23.0' to folder 'C:\hostedtoolcache\windows\MSCRMBuildTools\12.0.95' 2023-04-05T09:45:36.1408819Z ##[debug]Added package 'Microsoft.Graph.Authentication.1.23.0' to folder 'C:\hostedtoolcache\windows\MSCRMBuildTools\12.0.95' 2023-04-05T09:45:36.1432765Z ##[debug]Successfully installed 'Microsoft.Graph.Authentication 1.23.0' to C:\hostedtoolcache\windows\MSCRMBuildTools\12.0.95