Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

SCSensitivityLabel Issues with Locales

Open NikCharlebois opened this issue 2 years ago • 3 comments

Details of the scenario you tried and the problem that is occurring

All LocaleSettings for the SCSensitivity label need to define the same localizations, however, there are cases where the settings in the setting doesn't define them all. For example, in the following configuration:

MSFT_SCLabelLocaleSettings
                {
                    LocaleKey = 'DisplayName'
                    Settings  = @(
                        MSFT_SCLabelSetting
                        {
                            Key   = 'en-us'
                            Value = 'English Display Names'
                        }
                        MSFT_SCLabelSetting
                        {
                            Key   = 'fr-fr'
                            Value = 'Nom da''ffichage francais'
                        }
                        MSFT_SCLabelSetting
                        {
                            Key   = 'default'
                            Value = 'Demo label'
                        }
                    )
                }
                MSFT_SCLabelLocaleSettings
                {
                    LocaleKey = 'StopColor'
                    Settings  = @(
                        MSFT_SCLabelSetting
                        {
                            Key   = 'en-us'
                            Value = 'RedGreen'
                        }
                        MSFT_SCLabelSetting
                        {
                            Key   = 'fr-fr'
                            Value = 'Rouge'
                        }
                    )
                }
                MSFT_SCLabelLocaleSettings
                {
                    LocaleKey = 'tooltip'
                    Settings  = @(
                        MSFT_SCLabelSetting
                        {
                            Key   = 'default'
                            Value = 'Demo tool tip'
                        }
                    )
                }

The tooltip setting should also define en-us and fr-fr and the StopColor setting should also define default

Verbose logs showing the problem

All locale settings must contain the same list of localizations but they do not. Localizations detected for each setting: displayname: en-us, default. tooltip: default

Suggested solution to the issue

N/A

The DSC configuration that is used to reproduce the issue (as detailed as possible)

MSFT_SCLabelLocaleSettings { LocaleKey = 'DisplayName' Settings = @( MSFT_SCLabelSetting { Key = 'en-us' Value = 'English Display Names' } MSFT_SCLabelSetting { Key = 'fr-fr' Value = 'Nom da''ffichage francais' } MSFT_SCLabelSetting { Key = 'default' Value = 'Demo label' } ) } MSFT_SCLabelLocaleSettings { LocaleKey = 'StopColor' Settings = @( MSFT_SCLabelSetting { Key = 'en-us' Value = 'RedGreen' } MSFT_SCLabelSetting { Key = 'fr-fr' Value = 'Rouge' } ) } MSFT_SCLabelLocaleSettings { LocaleKey = 'tooltip' Settings = @( MSFT_SCLabelSetting { Key = 'default' Value = 'Demo tool tip' } ) }

NikCharlebois avatar Sep 01 '21 13:09 NikCharlebois

@desmay any updates on this one. I'm still hitting this on random tenants every now and then.

NikCharlebois avatar Jan 14 '22 18:01 NikCharlebois

@desmay Are there any news on this issue?

andikrueger avatar Jun 05 '22 19:06 andikrueger

Sorry Andi keep forgetting about this. Let me try to knock this out this week time permitting

desmay avatar Jun 06 '22 12:06 desmay

Let's close this one for now. I just ran additional tests, and this is not a situation the tenant should end up in when doing an extract. It would take someone to manually write the config and omit some locales for this to happen.

NikCharlebois avatar Sep 19 '22 17:09 NikCharlebois