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

Generated HTML from asserting blueprint does not contain all the variables from the blueprint #4516

Closed
dosLL opened this issue Apr 3, 2024 · 3 comments

Comments

@dosLL
Copy link

dosLL commented Apr 3, 2024

Hi.

when asserting a blueprint with the following command:

Assert-M365DSCBlueprint -BluePrintUrl <path to blueprint> -OutputReportPath <path to html> -Credentials $credential

the generated html does not contain all of the variables defined in the blueprint.

Blueprint looks like the following (contains about 144 variables to check):

param (
    [parameter()]
    [System.Management.Automation.PSCredential]
    $GlobalAdminAccount
)

Configuration M365TenantConfig
{
    param (
        [parameter()]
        [System.Management.Automation.PSCredential]
        $GlobalAdminAccount
    )

    if ($null -eq $GlobalAdminAccount)
    {
        <# Credentials #>
        $Credsglobaladmin = Get-Credential -Message "Global Admin credentials"
    }
    else
    {
        $Credsglobaladmin = $GlobalAdminAccount
    }

    $OrganizationName = $Credsglobaladmin.UserName.Split('@')[1]
    Import-DscResource -ModuleName Microsoft365DSC

    Node localhost
    {
       O365OrgSettings "O365OrgSettings" {
            AdminCenterReportDisplayConcealedNames                = $True;				
            AppsAndServicesIsAppAndServicesTrialEnabled           = $False;				
            AppsAndServicesIsOfficeStoreEnabled                   = $False;				
            CortanaEnabled                                        = $False;				
            Credential                                            = $Credscredential;
            DynamicsCustomerVoiceIsInOrgFormsPhishingScanEnabled  = $True;				
            DynamicsCustomerVoiceIsRecordIdentityByDefaultEnabled = $False;				
            DynamicsCustomerVoiceIsRestrictedSurveyAccessEnabled  = $False;				
            FormsIsBingImageSearchEnabled                         = $False;				
            FormsIsExternalSendFormEnabled                        = $False;				
            FormsIsExternalShareCollaborationEnabled              = $False;				
            FormsIsExternalShareResultEnabled                     = $False;				
            FormsIsExternalShareTemplateEnabled                   = $True;				
            FormsIsInOrgFormsPhishingScanEnabled                  = $True;				
            FormsIsRecordIdentityByDefaultEnabled                 = $False;				
            IsSingleInstance                                      = "Yes";
            M365WebEnableUsersToOpenFilesFrom3PStorage            = $False;				
            PlannerAllowCalendarSharing                           = $False;				
            ToDoIsExternalShareEnabled                            = $False; 			
            ToDoIsExternalJoinEnabled                             = $False; 			
            ToDoIsPushNotificationEnabled                         = $False;				
            VivaInsightsDigestEmail                               = $False;		 		
            VivaInsightsOutlookAddInAndInlineSuggestions          = $False;		 		
            VivaInsightsScheduleSendSuggestions                   = $False; 			
            VivaInsightsWebExperience                             = $False; 			
        }
		O365SearchAndIntelligenceConfigurations "O365SearchAndIntelligenceConfigurations" {
            Credential                            = $Credscredential;
            IsSingleInstance                      = "Yes";
            ItemInsightsIsEnabledInOrganization   = $True; 								
            PersonInsightsIsEnabledInOrganization = $False; 							
        }
        O365AdminAuditLogConfig "O365AdminAuditLogConfig"
        {
            Credential                      = $Credscredential;
            IsSingleInstance                = "Yes";
            UnifiedAuditLogIngestionEnabled = "Enabled";								
        }
		
		EXOOrganizationConfig "EXOOrganizationConfig"
        {
            ActivityBasedAuthenticationTimeoutEnabled                 = $True;			
            ActivityBasedAuthenticationTimeoutInterval                = "06:00:00";		
            ActivityBasedAuthenticationTimeoutWithSingleSignOnEnabled = $True;			
            AuditDisabled                                             = $False;			
            BookingsAddressEntryRestricted                            = $True;			
            BookingsAuthEnabled                                       = $True;			
            BookingsBlockedWordsEnabled                               = $True;			
            BookingsCreationOfCustomQuestionsRestricted               = $True;			
            BookingsEnabled                                           = $False;			
            BookingsExposureOfStaffDetailsRestricted                  = $True;			
            BookingsMembershipApprovalRequired                        = $True;			
            BookingsNamingPolicyEnabled                               = $True;			
            BookingsNamingPolicyPrefix                                = "";				
            BookingsNamingPolicyPrefixEnabled                         = $False;			
            BookingsNamingPolicySuffix                                = "";				
            BookingsNamingPolicySuffixEnabled                         = $False;			
            BookingsNotesEntryRestricted                              = $True;			
            BookingsPaymentsEnabled                                   = $True;			
            BookingsPhoneNumberEntryRestricted                        = $True;			
            BookingsSearchEngineIndexDisabled                         = $True;			
            BookingsSmsMicrosoftEnabled                               = $True;			
            BookingsSocialSharingRestricted                           = $True;			
            Credential                                                = $Credscredential;
            CustomerLockboxEnabled                                    = $False;			
            DefaultPublicFolderDeletedItemRetention                   = "30.00:00:00";	
            DisablePlusAddressInRecipients                            = $False;			
            DistributionGroupNameBlockedWordsList                     = @();			
			IsSingleInstance                                          = "Yes";
            LinkPreviewEnabled                                        = $True;			
            MailTipsAllTipsEnabled                                    = $True;			
            MailTipsExternalRecipientsTipsEnabled                     = $True;			
            MailTipsGroupMetricsEnabled                               = $True;			
            MailTipsLargeAudienceThreshold                            = 25;				
            MailTipsMailboxSourcedTipsEnabled                         = $True;			
            OutlookPayEnabled                                         = $True;			
            PublicComputersDetectionEnabled                           = $False;			
            ReadTrackingEnabled                                       = $False;			
            WorkspaceTenantEnabled                                    = $True;			
		}

		ODSettings "ODSettings" {
            BlockMacSync                              = $False;							
            Credential                                = $Credscredential;
            DisableReportProblemDialog                = $False;							
            Ensure                                    = "Present";
            IsSingleInstance                          = "Yes";
            NotificationsInOneDriveForBusinessEnabled = $False;							
            NotifyOwnersWhenInvitationsAccepted       = $True;							
            OneDriveForGuestsEnabled                  = $False;							
            TenantRestrictionEnabled                  = $False;							
			ODBAccessRequests                         = "Off";							
            ODBMembersCanShare                        = "Off";							
        }

		TeamsChannelsPolicy "TeamsChannelsPolicy-Global" {
            AllowChannelSharingToExternalUser             = $False;						
            AllowOrgWideTeamCreation                      = $True;						
            AllowPrivateChannelCreation                   = $True;						
            AllowSharedChannelCreation                    = $False;						
            AllowUserToParticipateInExternalSharedChannel = $False;						
            Credential                                    = $Credscredential;
			EnablePrivateTeamDiscovery                    = $False;						
            Ensure                                        = "Present";
            Identity                                      = "Global";
        }	
		TeamsClientConfiguration "TeamsClientConfiguration-Global" {
            AllowBox                         = $False;									
            AllowDropBox                     = $False;									
            AllowEgnyte                      = $False;									
			AllowEmailIntoChannel            = $True;									
            AllowGoogleDrive                 = $False;									
            AllowGuestUser                   = $False;									
            AllowOrganizationTab             = $False;									
            AllowResourceAccountSendMessage  = $True;									
			AllowScopedPeopleSearchandAccess = $False;									
            AllowShareFile                   = $False;									
            AllowSkypeBusinessInterop        = $True;									
			Credential                       = $Credscredential;
            Identity                         = "Global";
			ResourceAccountContentAccess     = "NoAccess";
        }
        TeamsComplianceRecordingPolicy "TeamsComplianceRecordingPolicy-Global" {
            ComplianceRecordingApplications                     = @();
            Credential                                          = $Credscredential;
            DisableComplianceRecordingAudioNotificationForCalls = $False;				
            Enabled                                             = $False;				
            Ensure                                              = "Present";
            Identity                                            = "Global";
            WarnUserOnRemoval                                   = $True;				
		}
        TeamsCortanaPolicy "TeamsCortanaPolicy-Global" {
            CortanaVoiceInvocationMode = "disabled";									
            Credential                 = $Credscredential;
            Ensure                     = "Present";
            Identity                   = "Global";
		}
		TeamsEventsPolicy "TeamsEventsPolicy-Global" {
			AllowedQuestionTypesInRegistrationForm  = "AllQuestions";				
			AllowedTownhallTypesForRecordingPublish = "None";						
            AllowedWebinarTypesForRecordingPublish  = "None";						
			AllowEmailEditing                       = "Enabled";					
            AllowEventIntegrations                  = $False;						
            AllowTownhalls                          = "Enabled";					
            AllowWebinars                           = "Enabled";					
            Credential                              = $Credscredential;
            Description                             = "Default policy";
            Ensure                                  = "Present";
            EventAccessType                         = "Everyone";					
            Identity                                = "Global";
			UseMicrosoftECDN                        = $True;						
        }
        TeamsFeedbackPolicy "TeamsFeedbackPolicy-Global" {
            AllowEmailCollection      = $False;										
            AllowLogCollection        = $False;										
            AllowScreenshotCollection = $False;										
            Credential                = $Credscredential;
            Ensure                    = "Present";
            Identity                  = "Global";
            ReceiveSurveysMode        = "Disabled";									
            UserInitiatedMode         = "Enabled";									
        }
		TeamsFilesPolicy "TeamsFilesPolicy-Global" {
            Credential            = $Credscredential;
            Ensure                = "Present";
            Identity              = "Global";
            NativeFileEntryPoints = "Disabled";										
            SPChannelFilesTab     = "Enabled";										
        }
        TeamsGuestMessagingConfiguration "TeamsGuestMessagingConfiguration-Global" {
            AllowUserDeleteChat    = $False;										
            AllowUserDeleteMessage = $False;										
            AllowUserEditMessage   = $False;										
            Credential             = $Credscredential;
            Identity               = "Global";
        }
		TeamsMeetingBroadcastPolicy "TeamsMeetingBroadcastPolicy-Global" {
            BroadcastAttendeeVisibilityMode = "InvitedUsersInCompanyAndExternal";	
            BroadcastRecordingMode          = "UserOverride";						
            Credential                      = $Credscredential;
            Ensure                          = "Present";
            Identity                        = "Global";
        }
		TeamsMeetingPolicy "TeamsMeetingPolicy-Global" {
            AllowAnonymousUsersToDialOut               = $False;					
            AllowAnonymousUsersToJoinMeeting           = $False;					
            AllowAnonymousUsersToStartMeeting          = $False;					
            AllowCloudRecording                        = $True;						
            AllowEngagementReport                      = "Disabled";				
            AllowRecordingStorageOutsideRegion         = $False;					
            ChannelRecordingDownload                   = "Allow";					
            Credential                                 = $Credscredential;
            Ensure                                     = "Present";
            ExplicitRecordingConsent                   = "enabled";					
            Identity                                   = "Global";
            WhoCanRegister                             = "Everyone";				
        }
		TeamsMessagingPolicy "TeamsMessagingPolicy-Global" {
			AllowOwnerDeleteMessage                      = $False;					
            AllowUserDeleteChat                          = $False;					
            AllowUserDeleteMessage                       = $False;					
            AllowUserEditMessage                         = $False;					
            AudioMessageEnabledType                      = "ChatsAndChannels";
            ChannelsInChatListEnabledType                = "DisabledUserOverride";
            Credential                                   = $Credscredential;
            Ensure                                       = "Present";
            Identity                                     = "Global";
            ReadReceiptsEnabledType                      = "None";					
        }
				
		SPOAccessControlSettings "SPOAccessControlSettings" {
            Credential                   = $Credscredential;
            Ensure                       = "Present";
            ExternalServicesEnabled      = $True;									
            IsSingleInstance             = "Yes";
		}
        SPOTenantSettings "SPOTenantSettings" {
            Credential                                    = $Credscredential;
            Ensure                                        = "Present";
            IsSingleInstance                              = "Yes";
            UserVoiceForFeedbackEnabled                   = $False;					
        }
		SPOSharingSettings "SPOSharingSettings" {
            BccExternalSharingInvitations              = $False;					
            Credential                                 = $Credscredential;
            DefaultLinkPermission                      = "View";
            DefaultSharingLinkType                     = "Internal";				
            Ensure                                     = "Present";
            ExternalUserExpirationRequired             = $False;					
            ExternalUserExpireInDays                   = 60;						
            FileAnonymousLinkType                      = "View";					
            FolderAnonymousLinkType                    = "Edit";					
            IsSingleInstance                           = "Yes";
            MySiteSharingCapability                    = "Disabled";				
            PreventExternalUsersFromResharing          = $True;						
            SharingCapability                          = "Disabled";				
        }

    }
}
M365TenantConfig -ConfigurationData .\ConfigurationData.psd1 -GlobalAdminAccount $GlobalAdminAccount

HTML looks like this:

<h1>Blueprint Assessment Report</h1>
<html><head><meta charset='utf-8'><title>Microsoft365DSC - Blueprint Assessment Report</title></head><body>
<div style='width:100%;text-align:center;'>
<img src='http://Microsoft365DSC.com/Images/Promo.png' alt='Microsoft365DSC Slogan' width='500' />
</div>
<br /><hr /><br />
<a id='Drift'></a><h2>Resources that are Configured Differently</h2>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='6'><img src='http://microsoft365dsc.com/Images/Exchange.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>EXOOrganizationConfig - EXOOrganizationConfig</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
BookingsBlockedWordsEnabled</td>
<td style='border:1px solid black;' width='15%'>
False</td>
<td style='border:1px solid black;' width='15%'>
True</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
BookingsEnabled</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
BookingsNamingPolicyEnabled</td>
<td style='border:1px solid black;' width='15%'>
False</td>
<td style='border:1px solid black;' width='15%'>
True</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
BookingsPaymentsEnabled</td>
<td style='border:1px solid black;' width='15%'>
False</td>
<td style='border:1px solid black;' width='15%'>
True</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='18'><img src='http://microsoft365dsc.com/Images/Office365.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>O365OrgSettings - O365OrgSettings</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AppsAndServicesIsAppAndServicesTrialEnabled</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AppsAndServicesIsOfficeStoreEnabled</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
DynamicsCustomerVoiceIsRecordIdentityByDefaultEnabled</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
FormsIsBingImageSearchEnabled</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
FormsIsExternalSendFormEnabled</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
FormsIsExternalShareCollaborationEnabled</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
FormsIsExternalShareResultEnabled</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
FormsIsRecordIdentityByDefaultEnabled</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
M365WebEnableUsersToOpenFilesFrom3PStorage</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
PlannerAllowCalendarSharing</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
ToDoIsExternalJoinEnabled</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
ToDoIsPushNotificationEnabled</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
VivaInsightsDigestEmail</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
VivaInsightsOutlookAddInAndInlineSuggestions</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
VivaInsightsScheduleSendSuggestions</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
VivaInsightsWebExperience</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='3'><img src='http://microsoft365dsc.com/Images/Office365.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>O365OrgSettings - </h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
CortanaEnabled</td>
<td style='border:1px solid black;' width='15%'>
</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='3'><img src='http://microsoft365dsc.com/Images/Office365.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>O365SearchAndIntelligenceConfigurations - O365SearchAndIntelligenceConfigurations</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
PersonInsightsIsEnabledInOrganization</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='5'><img src='http://microsoft365dsc.com/Images/OneDrive.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>ODSettings - ODSettings</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
NotificationsInOneDriveForBusinessEnabled</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
ODBAccessRequests</td>
<td style='border:1px solid black;' width='15%'>
Unspecified</td>
<td style='border:1px solid black;' width='15%'>
Off</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
ODBMembersCanShare</td>
<td style='border:1px solid black;' width='15%'>
Unspecified</td>
<td style='border:1px solid black;' width='15%'>
Off</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='8'><img src='http://microsoft365dsc.com/Images/SharePoint.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>SPOSharingSettings - SPOSharingSettings</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
DefaultLinkPermission</td>
<td style='border:1px solid black;' width='15%'>
Edit</td>
<td style='border:1px solid black;' width='15%'>
View</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
DefaultSharingLinkType</td>
<td style='border:1px solid black;' width='15%'>
AnonymousAccess</td>
<td style='border:1px solid black;' width='15%'>
Internal</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
FileAnonymousLinkType</td>
<td style='border:1px solid black;' width='15%'>
Edit</td>
<td style='border:1px solid black;' width='15%'>
View</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
MySiteSharingCapability</td>
<td style='border:1px solid black;' width='15%'>
ExternalUserAndGuestSharing</td>
<td style='border:1px solid black;' width='15%'>
Disabled</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
PreventExternalUsersFromResharing</td>
<td style='border:1px solid black;' width='15%'>
False</td>
<td style='border:1px solid black;' width='15%'>
True</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
SharingCapability</td>
<td style='border:1px solid black;' width='15%'>
ExternalUserAndGuestSharing</td>
<td style='border:1px solid black;' width='15%'>
Disabled</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='3'><img src='http://microsoft365dsc.com/Images/SharePoint.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>SPOTenantSettings - SPOTenantSettings</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
UserVoiceForFeedbackEnabled</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='5'><img src='http://microsoft365dsc.com/Images/Teams.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>TeamsChannelsPolicy - TeamsChannelsPolicy-Global</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowChannelSharingToExternalUser</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowSharedChannelCreation</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowUserToParticipateInExternalSharedChannel</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='9'><img src='http://microsoft365dsc.com/Images/Teams.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>TeamsClientConfiguration - TeamsClientConfiguration-Global</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowBox</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowDropBox</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowEgnyte</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowGoogleDrive</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowGuestUser</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowOrganizationTab</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowShareFile</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='3'><img src='http://microsoft365dsc.com/Images/Teams.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>TeamsCortanaPolicy - TeamsCortanaPolicy-Global</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
CortanaVoiceInvocationMode</td>
<td style='border:1px solid black;' width='15%'>
WakeWordPushToTalkUserOverride</td>
<td style='border:1px solid black;' width='15%'>
disabled</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='5'><img src='http://microsoft365dsc.com/Images/Teams.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>TeamsEventsPolicy - TeamsEventsPolicy-Global</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowedTownhallTypesForRecordingPublish</td>
<td style='border:1px solid black;' width='15%'>
Everyone</td>
<td style='border:1px solid black;' width='15%'>
None</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowedWebinarTypesForRecordingPublish</td>
<td style='border:1px solid black;' width='15%'>
Everyone</td>
<td style='border:1px solid black;' width='15%'>
None</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowEventIntegrations</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='3'><img src='http://microsoft365dsc.com/Images/Teams.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>TeamsFeedbackPolicy - TeamsFeedbackPolicy-Global</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
ReceiveSurveysMode</td>
<td style='border:1px solid black;' width='15%'>
EnabledUserOverride</td>
<td style='border:1px solid black;' width='15%'>
Disabled</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='3'><img src='http://microsoft365dsc.com/Images/Teams.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>TeamsFilesPolicy - TeamsFilesPolicy-Global</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
NativeFileEntryPoints</td>
<td style='border:1px solid black;' width='15%'>
Enabled</td>
<td style='border:1px solid black;' width='15%'>
Disabled</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='5'><img src='http://microsoft365dsc.com/Images/Teams.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>TeamsGuestMessagingConfiguration - TeamsGuestMessagingConfiguration-Global</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowUserDeleteChat</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowUserDeleteMessage</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowUserEditMessage</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='3'><img src='http://microsoft365dsc.com/Images/Teams.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>TeamsMeetingBroadcastPolicy - TeamsMeetingBroadcastPolicy-Global</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
BroadcastAttendeeVisibilityMode</td>
<td style='border:1px solid black;' width='15%'>
Everyone</td>
<td style='border:1px solid black;' width='15%'>
InvitedUsersInCompanyAndExternal</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='5'><img src='http://microsoft365dsc.com/Images/Teams.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>TeamsMeetingPolicy - TeamsMeetingPolicy-Global</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowAnonymousUsersToJoinMeeting</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowEngagementReport</td>
<td style='border:1px solid black;' width='15%'>
Enabled</td>
<td style='border:1px solid black;' width='15%'>
Disabled</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
ExplicitRecordingConsent</td>
<td style='border:1px solid black;' width='15%'>
Disabled</td>
<td style='border:1px solid black;' width='15%'>
enabled</td>
</tr>
</table><hr/>
<table width='100%' cellspacing='0' cellpadding='5'>
<tr>
<th style='width:25%;text-align:center;vertical-align:middle;border:1px solid black;;' rowspan='6'><img src='http://microsoft365dsc.com/Images/Teams.jpg' />
</th>
<th style='border:1px solid black;text-align:center;vertical-align:middle;background-color:#CCC' colspan='3'>
<h3>TeamsMessagingPolicy - TeamsMessagingPolicy-Global</h3>
</th></tr>
<tr>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='45%'><strong>Property</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Tenant's Current Value</strong></td>
<td style='text-align:center;border:1px solid black;background-color:#EEE;' width='15%'><strong>Blueprint's Value</strong></td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowUserDeleteChat</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowUserDeleteMessage</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
AllowUserEditMessage</td>
<td style='border:1px solid black;' width='15%'>
True</td>
<td style='border:1px solid black;' width='15%'>
False</td>
</tr>

<tr>
<td style='border:1px solid black;text-align:right;' width='45%'>
ReadReceiptsEnabledType</td>
<td style='border:1px solid black;' width='15%'>
UserPreference</td>
<td style='border:1px solid black;' width='15%'>
None</td>
</tr>
</table><hr/>
</body></html>

There are about 50% of the needed variables missing. I do not understand why. Verbose Output is not showing any errors.

Did I do something wrong?
Thank you for your help!

@dosLL dosLL changed the title Asserting a blueprint does not generate the html with all the variables Generated HTML from asserting blueprint does not contain all the variables from the blueprint Apr 3, 2024
@andikrueger
Copy link
Collaborator

Could you run a test with the latest release? We updated DSCParser with the first April release and this should improve the reports

@dosLL
Copy link
Author

dosLL commented Apr 15, 2024

I tried the assert with the new version - no change. If you need any more infos, let me know.

Edit: I removed the values that got queried from the blueprint, ran it and ended up with a html without any values.

@dosLL
Copy link
Author

dosLL commented Apr 19, 2024

The Update to the DSCParser seems to have changed something. Atleast I'm getting a Error Message with the -verbose parameter.

Error appears after all the data is collected and the html should be generated.

TerminatingError(Write-Progress): "Cannot validate argument on parameter 'PercentComplete'. The 101 argument is greater than the maximum allowed range of 100. Supply an argument that is less than or equal to 100 and then try the command again."
Write-Progress : Cannot validate argument on parameter 'PercentComplete'. The 101 argument is greater than the maximum 
allowed range of 100. Supply an argument that is less than or equal to 100 and then try the command again.
At C:\Program Files (x86)\WindowsPowerShell\Modules\DSCParser\2.0.0.3\Modules\DSCParser.psm1:28 char:41
+                        -PercentComplete $percent
+                                         ~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Write-Progress], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.WriteProgressCommand
Write-Progress : Cannot validate argument on parameter 'PercentComplete'. The 101 argument is greater than the maximum
allowed range of 100. Supply an argument that is less than or equal to 100 and then try the command again.
At C:\Program Files (x86)\WindowsPowerShell\Modules\DSCParser\2.0.0.3\Modules\DSCParser.psm1:28 char:41
+                        -PercentComplete $percent
+                                         ~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Write-Progress], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.WriteProgressCommand

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

No branches or pull requests

2 participants