Open Kelvin-Rundle opened 7 months ago
This error appeared on nearly every module and appears to have been caused by the Microsoft Hosted Agents having Microsoft.Graph.Authentication 2.15.0 already installed and Microsoft365DSC having a required version dependency of 2.14.1. Adding Uninstall-M365DSCOutdatedDependencies after Update-M365DSCDependencies resolved this issue.
Perhaps dependecies should be a minimum version rather than forcing a downgrade when using hosted agent?
Description of the issue
When deploying the MOF as part of Azure DevOps Pipeline using Microsoft Hosted Agent Windows-Latest the deployment fails with the following errors: 2024-02-28T21:45:15.2522389Z VERBOSE: [fv-az775-139]: [[AADRoleSetting]Application Developer] Getting configuration of Role 2024-02-28T21:45:15.2969565Z VERBOSE: [fv-az775-139]: [[AADRoleSetting]Application Developer] Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions.
[snip] 2024-02-28T21:45:47.2967456Z VERBOSE: [fv-az775-139]: LCM: [ End Test ] [[AADRoleSetting]Application Developer] in 43.4500 seconds. 2024-02-28T21:45:47.3372664Z PowerShell DSC resource MSFT_AADRoleSetting failed to execute Test-TargetResource functionality with error message
[snip]
2024-02-28T21:45:51.6715741Z PowerShell DSC resource MSFT_AADRoleSetting failed to execute Test-TargetResource functionality with error message: 2024-02-28T21:45:51.6717275Z One or more errors occurred. 2024-02-28T21:45:51.6720236Z + CategoryInfo : InvalidOperation: (:) [], CimException VERBOSE: [fv-az775-139]: LCM: [ End Set ] + FullyQualifiedErrorId : ProviderOperationExecutionFailure + PSComputerName : localhost
2024-02-28T21:45:51.6782501Z The SendConfigurationApply function did not succeed. 2024-02-28T21:45:51.6788069Z + CategoryInfo : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException 2024-02-28T21:45:51.6788508Z VERBOSE: Operation 'Invoke CimMethod' complete. 2024-02-28T21:45:51.6788736Z + FullyQualifiedErrorId : MI RESULT 1 2024-02-28T21:45:51.6795861Z + PSComputerName : localhost 2024-02-28T21:45:51.6796578Z
2024-02-28T21:45:51.6797143Z VERBOSE: Time taken for configuration job to complete is 48.256 seconds 2024-02-28T21:45:51.6896399Z 2024-02-28T21:45:51.6896835Z 2024-02-28T21:45:51.7393342Z ##[section]Finishing: Deploying PIM RoleSettings MOF
Microsoft 365 DSC Version
1.24.221.1
Which workloads are affected
Azure Active Directory
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version