SchemaDefinition.json not found after upgrade to 1.26.603.1
Description of the issue
After upgrading Microsoft365DSC from 1.25.1203.2 to 1.26.603.1, Delta operations fail with the error below:
TerminatingError(): "SchemaDefinition.json not found at expected path: C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.26.603.1\Modules..\SchemaDefinition.json. Ensure that the schema was properly included during module build and that the module is not being run from a non-standard location."
Environment
- Microsoft365DSC 1.26.603.1
- Previous version: 1.25.1203.2
- Windows PowerShell 5.1
What I tried
- Downloaded and installed version 1.26.603.1
- Ran Build-DllFiles.ps1 and built the DLLs successfully
- Updated dependencies
- Imported the module
The issue remains and occurs when running a Delta comparison. Is there an additional build or migration step required for 1.26.603.1, or should SchemaDefinition.json be included in the release package?
Microsoft 365 DSC Version
1.26.603.1
Which workloads are affected
Azure Active Directory (Entra ID), Exchange Online, other, Teams, SharePoint Online, Security & Compliance Center, Power Platform, Planner, OneDrive for Business, Office 365 Admin, Intune
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
Name Value
---- -----
PSVersion 5.1.20348.4294
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.20348.4294
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Can you try the latest version? You only need to install the module, nothing to build or something like that. It should be as simple as to only say New-M365DSCDeltaReport ... and done.