Skip to content

Update Environment DataFiles & Templates to new schema #46

@titlerequired

Description

@titlerequired

Getting back into M365DSC for the first time since 2023, following the whitepaper to update my old DevOps environment.
https://aka.ms/m365dscwhitepaper

I'm at the point where I'm testing the Build MOF pipeline, but hitting issues because the example DataFiles (Basic#SharePoint.psd1 for example) are using the old Schema, at least that's what I think is happening.

NonNodeData.SharePoint.BrowserIdleSignout 1ms (0ms|1ms)
##[error] [-] NonNodeData.SharePoint.TenantCdnEnabled 18ms (6ms|11ms)
##[error] [0] Expected a value, because Required setting, but got $null or empty.
##[error] at $inputObject.NonNodeData.SharePoint.TenantCdnEnabled[0].UniqueId | Should -Not -BeNullOrEmpty -Because 'Required setting', C:\Users\VssAdministrator\AppData\Local\Temp\tmpsiqvzq.tests.ps1:17
##[error] [1] Expected a value, because Required setting, but got $null or empty.
##[error] at $inputObject.NonNodeData.SharePoint.TenantCdnEnabled[1].UniqueId | Should -Not -BeNullOrEmpty -Because 'Required setting', C:\Users\VssAdministrator\AppData\Local\Temp\tmpsiqvzq.tests.ps1:19

Using the new config example cmdlet, I get the following

TenantCdnPolicy = @(
@{
CDNType = 'String | Required | Type of Content Delivery Network. Can be ''Private'' or ''Public''. | Private / Public'
AccessTokens = @(
'String | Optional | Access token used for authentication.'
)
IncludeFileExtensions = @(
'String | Optional | List of file extensions to include in the Policy.'
)
UniqueId = 'String | Required | Unique ID to identify this specific object'
ExcludeRestrictedSiteClassifications = @(
'String | Optional | List of site classifications to exclude.'
)
}
)

In my DevOps Repo, the same section in Basic file is,

TenantCdnEnabled = @(
@{
CdnType = 'Public'
Enable = $False
}
@{
CdnType = 'Private'
Enable = $False
}
)

Is there a resource, or tool/download/script I can use to download a new set of Data Files, as this seems like a big task I don't want to do manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions