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

Export does not convert tenant name into generic $OrganizationName variable #5559

Closed
ykuijs opened this issue Dec 16, 2024 · 1 comment · Fixed by #5561
Closed

Export does not convert tenant name into generic $OrganizationName variable #5559

ykuijs opened this issue Dec 16, 2024 · 1 comment · Fixed by #5561
Assignees
Labels
Bug Something isn't working

Comments

@ykuijs
Copy link
Member

ykuijs commented Dec 16, 2024

Description of the issue

Export does not convert tenant URL into the $OrganizationName variable. This means the exports require editing before applying them to a different tenant.

Microsoft 365 DSC Version

Dev

Which workloads are affected

Azure Active Directory (Entra ID), Exchange Online, Intune, Office 365 Admin, OneDrive for Business, Planner, Power Platform, Security & Compliance Center, SharePoint Online, Teams

The DSC configuration

AADAdministrativeUnit "AADAdministrativeUnit-test"
        {
            ApplicationId                = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint        = $ConfigurationData.NonNodeData.CertificateThumbprint;
            DisplayName                  = "test";
            Ensure                       = "Present";
            Id                           = "4a0c44a5-6e38-48b9-8472-a56470e8e75e";
            IsMemberManagementRestricted = $False;
            Members                      = @(
                MSFT_MicrosoftGraphMember{
                    Type = "User"
                    Identity = "[email protected]"
                }
            );
            ScopedRoleMembers            = @(
                MSFT_MicrosoftGraphScopedRoleMembership{
                    RoleName = "User Administrator"
                    RoleMemberInfo = MSFT_MicrosoftGraphMember{
                        Type = "User"
                        Identity = "[email protected]"
                    }

                }
            );
            TenantId                     = $ConfigurationData.NonNodeData.TenantId;
        }

Verbose logs showing the problem

Environment Information + PowerShell Version

PSv5.1
@ykuijs ykuijs added Bug Something isn't working DSCParser Issues related to DSCParser labels Dec 16, 2024
@ykuijs ykuijs self-assigned this Dec 16, 2024
@ykuijs ykuijs removed the DSCParser Issues related to DSCParser label Dec 16, 2024
@ykuijs
Copy link
Member Author

ykuijs commented Dec 16, 2024

Working on a PR. This requires changes in M365DSC and ReverseDSC

ykuijs added a commit to ykuijs/Microsoft365DSC that referenced this issue Dec 16, 2024
ykuijs added a commit to ykuijs/Microsoft365DSC that referenced this issue Dec 16, 2024
ykuijs added a commit to ykuijs/Microsoft365DSC that referenced this issue Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
1 participant