After successful export of AADEntitlementManagementAccessPackageAssignmentPolicy, execution of the resulting ps1-file fails with the following output:
PSDesiredStateConfiguration\Node : The term 'Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphUserSet' is not
recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At C:\Users\VssAdministrator\AppData\Local\Temp\M365DSCOutput\M365Configuration-AADEntitlementManagementAccessPackageAssignmentPolicy.ps1:15 char:5
'+ Node localhost
'+ ~~~~
' + CategoryInfo : ObjectNotFound: (Microsoft.Graph...oftGraphUserSet:String) [PSDesiredStateConfiguration\node], ParentContainsErrorRecordException
' + FullyQualifiedErrorId : CommandNotFoundException,PSDesiredStateConfiguration\node
Microsoft 365 DSC Version
1.23.628.1
Which workloads are affected
Azure Active Directory
The DSC configuration
Generated with Microsoft365DSC version 1.23.726.1
For additional information on how to use Microsoft365DSC, please visit https://aka.ms/M365DSC
[debug] Executing resulting ps1 at C:\Users\VSSADM~1\AppData\Local\Temp\M365DSCOutput\M365Configuration-AADEntitlementManagementAccessPackageAssignmentPolicy.ps1
PSDesiredStateConfiguration\Node : The term 'Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphUserSet' is not
recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At C:\Users\VssAdministrator\AppData\Local\Temp\M365DSCOutput\M365Configuration-AADEntitlementManagementAccessPackageAssignmentPolicy.ps1:15 char:5
Description of the issue
After successful export of AADEntitlementManagementAccessPackageAssignmentPolicy, execution of the resulting ps1-file fails with the following output:
PSDesiredStateConfiguration\Node : The term 'Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphUserSet' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\VssAdministrator\AppData\Local\Temp\M365DSCOutput\M365Configuration-AADEntitlementManagementAccessPackageAssignmentPolicy.ps1:15 char:5 '+ Node localhost '+ ~~~~ ' + CategoryInfo : ObjectNotFound: (Microsoft.Graph...oftGraphUserSet:String) [PSDesiredStateConfiguration\node], ParentContainsErrorRecordException ' + FullyQualifiedErrorId : CommandNotFoundException,PSDesiredStateConfiguration\node
Microsoft 365 DSC Version
1.23.628.1
Which workloads are affected
Azure Active Directory
The DSC configuration
Generated with Microsoft365DSC version 1.23.726.1
For additional information on how to use Microsoft365DSC, please visit https://aka.ms/M365DSC
param ( )
Configuration ConfigureMicrosoft365-AADEntitlementManagementAccessPackageAssignmentPolicy { param ( )
; ApplicationId = $ConfigurationData.NonNodeData.ApplicationId; CanExtend = $False; CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint; Description = "Toewijzing voor onbeperkte duur mogelijk. Gebruikers kunnen aanvragen. Reguliere toegangscontrole, iedere 3 maanden."; DisplayName = "Voor Business rollen; onbeperkte duur"; DurationInDays = 0; Ensure = "Present"; Id = "f997c7cd-191f-4953-bbbd-4eaf9c500afd"; RequestApprovalSettings = MSFT_MicrosoftGraphapprovalsettings{ ApprovalMode = 'SingleStage' IsRequestorJustificationRequired = $True IsApprovalRequired = $True IsApprovalRequiredForExtension = $False
; RequestorSettings = MSFT_MicrosoftGraphrequestorsettings{
; TenantId = $OrganizationName; } } }
ConfigureMicrosoft365-AADEntitlementManagementAccessPackageAssignmentPolicy -ConfigurationData .\ConfigurationData.psd1
Verbose logs showing the problem
[debug] Executing resulting ps1 at C:\Users\VSSADM~1\AppData\Local\Temp\M365DSCOutput\M365Configuration-AADEntitlementManagementAccessPackageAssignmentPolicy.ps1
PSDesiredStateConfiguration\Node : The term 'Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphUserSet' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\VssAdministrator\AppData\Local\Temp\M365DSCOutput\M365Configuration-AADEntitlementManagementAccessPackageAssignmentPolicy.ps1:15 char:5
Environment Information + PowerShell Version