New-AzADUser: Following documentation leads to "constructor not found" issue #19265
Labels
AAD
AzAd cmdlets in Az.Resources
Azure PS Team
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Doc - Reference
Milestone
Description
Issue
The documentation here states that you must construct a password profile object using the type:
Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile
However, despite importing both Az.Accounts and Az.Resources, this will result in an error:
Error: A constructor was not found. Cannot find an appropriate constructor for type Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile.
Issue script & Debug output
Environment data
Module versions
Error output
A constructor was not found. Cannot find an appropriate constructor for type Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Models.ApiV10.IMicrosoftGraphPasswordProfile.
The text was updated successfully, but these errors were encountered: