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

[IntuneRoleAssignment] Export creates an incorrect string for ScopeType #2889

Closed
ykuijs opened this issue Feb 10, 2023 · 1 comment · Fixed by #2874 or #2906
Closed

[IntuneRoleAssignment] Export creates an incorrect string for ScopeType #2889

ykuijs opened this issue Feb 10, 2023 · 1 comment · Fixed by #2874 or #2906
Assignees
Labels
Bug Something isn't working Intune

Comments

@ykuijs
Copy link
Member

ykuijs commented Feb 10, 2023

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

The Export does not create the value for ScopeType in String format. Therefore the import fails.

Verbose logs showing the problem

        IntuneRoleAssignment e4757144-8436-438d-a494-5ac3eca693e9
        {
            Credential                 = $Credscredential;
            Description                = "";
            DisplayName                = "TestTest";
            Ensure                     = "Present";
            Id                         = "f853ae0d-664c-420f-83b2-523d28e7b9bf";
            Members                    = @("1c68f7cb-0277-4d67-a6ad-d7913618da5f");
            MembersDisplayNames        = @("sg-IT");
            ResourceScopes             = @();
            ResourceScopesDisplayNames = @();
            RoleDefinition             = "5316645c-43ed-4aab-87b0-85ef07ccf2d0";
            RoleDefinitionDisplayName  = "Test";
            ScopeType                  = allDevices;
        }

Suggested solution to the issue

Make sure the ScopeType is exported as String

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

@ykuijs ykuijs added Bug Something isn't working Intune labels Feb 10, 2023
@ykuijs ykuijs self-assigned this Feb 10, 2023
@ykuijs
Copy link
Member Author

ykuijs commented Feb 10, 2023

Working on it

@ykuijs ykuijs linked a pull request Feb 10, 2023 that will close this issue
@ykuijs ykuijs closed this as completed in cb32213 Feb 13, 2023
ykuijs added a commit that referenced this issue Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Intune
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant