microsoft / Microsoft365DSC

Manages, configures, extracts and monitors Microsoft 365 tenant configurations
https://aka.ms/M365DSC
MIT License
1.46k stars 441 forks source link

Discussion: Support for read-only properties and resources in M365DSC #4443

Open andikrueger opened 3 months ago

andikrueger commented 3 months ago

Right now, M365DSC only supports properties for resources that are made available by the used Set-cmdLets for the resource. PowerShell DSC does support read-only properties that are populated after by the Get-TargetResource function within a resource.

In M365DSC we have the built in Export-TargetResource function. It would add a lot value for documenting a tenant if we could export all available properties and/or even create resources that would export settings for objects in M365 and Azure that cannot be set.

https://learn.microsoft.com/en-us/powershell/dsc/resources/authoringresourceclass?view=dsc-1.1#declare-properties

cc/ @ykuijs and @NikCharlebois What do you think?

jagatjb commented 3 months ago

This will be really helpful especially for configuration backups and configuration changes done by Microsoft for a tenant as well as Role Entry parameter for Management Role component.