Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SCSensitivityLabel] ContentType cannot be set via AdvancedSettings #2992

Closed
ykuijs opened this issue Mar 10, 2023 · 0 comments · Fixed by #3037 or #3061
Closed

[SCSensitivityLabel] ContentType cannot be set via AdvancedSettings #2992

ykuijs opened this issue Mar 10, 2023 · 0 comments · Fixed by #3037 or #3061
Assignees
Labels

Comments

@ykuijs
Copy link
Member

ykuijs commented Mar 10, 2023

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

A Sensitivity Label has an Advanced Setting called 'contenttype'. In this property, the locations where this label can be used is stored.
When exporting a label, this property is also exported, but when importing the resource, the contenttype property is ignored.

As it turns out the New/Set-Label cmdlets have a dedicated ContentType parameter which has to be used instead.

Verbose logs showing the problem

Suggested solution to the issue

Change the resource to use the ContentType parameter instead of the AdvancedSettings. Also filter the contenttype property during export.

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

# insert configuration here

The operating system the target node is running

Version of the DSC module that was used ('dev' if using current dev branch)

dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant