param ( ) Configuration export-test { param ( ) $OrganizationName = $ConfigurationData.NonNodeData.OrganizationName Import-DscResource -ModuleName 'Microsoft365DSC' -ModuleVersion '1.24.207.2' Node localhost { AADRoleSetting "AADRoleSetting-Application Administrator" { ActivateApprover = @(); ActivationMaxDuration = "PT8H"; ActivationReqJustification = $True; ActivationReqMFA = $False; ActivationReqTicket = $False; ActiveAlertNotificationAdditionalRecipient = @("someone@somewhere.com"); ActiveAlertNotificationDefaultRecipient = $False; ActiveAlertNotificationOnlyCritical = $False; ActiveApproveNotificationAdditionalRecipient = @(); ActiveApproveNotificationDefaultRecipient = $True; ActiveApproveNotificationOnlyCritical = $False; ActiveAssigneeNotificationAdditionalRecipient = @(); ActiveAssigneeNotificationDefaultRecipient = $True; ActiveAssigneeNotificationOnlyCritical = $False; ApplicationId = $ConfigurationData.NonNodeData.ApplicationId; ApprovaltoActivate = $False; AssignmentReqJustification = $True; AssignmentReqMFA = $False; CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint; DisplayName = "Application Administrator"; ElegibilityAssignmentReqJustification = $False; ElegibilityAssignmentReqMFA = $False; EligibleAlertNotificationAdditionalRecipient = @("someone@somwhere.com"); EligibleAlertNotificationDefaultRecipient = $False; EligibleAlertNotificationOnlyCritical = $False; EligibleApproveNotificationAdditionalRecipient = @(); EligibleApproveNotificationDefaultRecipient = $True; EligibleApproveNotificationOnlyCritical = $False; EligibleAssigneeNotificationAdditionalRecipient = @(); EligibleAssigneeNotificationDefaultRecipient = $True; EligibleAssigneeNotificationOnlyCritical = $False; EligibleAssignmentAlertNotificationAdditionalRecipient = @("someone@somewhere.com"); EligibleAssignmentAlertNotificationDefaultRecipient = $False; EligibleAssignmentAlertNotificationOnlyCritical = $False; EligibleAssignmentAssigneeNotificationAdditionalRecipient = @(); EligibleAssignmentAssigneeNotificationDefaultRecipient = $True; EligibleAssignmentAssigneeNotificationOnlyCritical = $False; Ensure = "Present"; ExpireActiveAssignment = "P180D"; ExpireEligibleAssignment = "P365D"; Id = "99999999-0000-0000-0000-000000000000"; PermanentActiveAssignmentisExpirationRequired = $False; PermanentEligibleAssignmentisExpirationRequired = $False; TenantId = $OrganizationName; } } }