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

The issue with "PPTenantIsolationSettings" Component's Rule values while mof file. #2979

Closed
maheshdalavi opened this issue Mar 8, 2023 · 0 comments · Fixed by #3013 or #3014
Closed
Labels
Bug Something isn't working Power Platform

Comments

@maheshdalavi
Copy link

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

ISSUE TITLE:

The issue with "PPTenantIsolationSettings" Component's Rule values while mof file.

ISSUE DESCRIPTION (this template):
  • While configuring the localhost.mof got the error for the below value.
  • If I remove this key-value pair, things work fine.
       _PPTenantIsolationSettings 342dd968-8fbc-4dfa-9671-9e38695b4c4e
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Enabled               = $False;
            IsSingleInstance      = "Yes";
            Rules                 = "@(ule {r
                TenantName          = ''
                Direction           = 'unknown'
            }
            )";
            TenantId              = $ConfigurationData.NonNodeData.TenantId;_

Verbose logs showing the problem

At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1:2369 
char:21
+ ...             Write-NodeMOFFile $Name $mofNode $Script:NodeInstanceAlia ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Write-Error], InvalidOperationException
    + FullyQualifiedErrorId : InvalidMOFDefinition,Write-NodeMOFFile
Write-NodeMOFFile : Invalid MOF definition for node 'localhost': Exception calling "ValidateInstanceText" with "1"
argument(s): "Convert property 'Rules' value from type 'STRING[]' to type 'INSTANCE[]' failed
 At line:304, char:2
 Buffer:
"M365TenantConfig";
};^
insta
"
At
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1:2369
char:21
+ ...             Write-NodeMOFFile $Name $mofNode $Script:NodeInstanceAlia ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Write-Error], InvalidOperationException
    + FullyQualifiedErrorId : InvalidMOFDefinition,Write-NodeMOFFile

Suggested solution to the issue

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)

@andikrueger andikrueger added Bug Something isn't working Power Platform labels Mar 8, 2023
NikCharlebois added a commit to NikCharlebois/Microsoft365DSC that referenced this issue Mar 15, 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 Power Platform
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants