azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

AZ.Account module 2.7.1 Does Not Support User Password Reset

Open v-aderinokuna opened this issue 4 years ago • 6 comments

Description

I am reaching out regarding an Issue I am experiencing.

I just upgraded to Az.account Powershell module 2.7.1 that was released 14 days ago.

Since then the below cmdlet has been failing:

$RandomString = ConvertTo-SecureString -String 'dummypass' -AsPlainText -Force Update-AzADUser -Password $RandomString -UserPrincipalName $User.UserPrincipalName

I keep getting the following error:

“Parameter cannot be processed because the parameter name 'Password' is ambiguous. Possible matches include: -PasswordPolicy -PasswordProfile. (Parameter cannot be processed because the parameter name 'Password' is ambiguous. Possible matches include: -PasswordPolicy -PasswordProfile.) “

I have also tried to use the 2.7.1 module on a local machine and it returned an error too.

I am reaching just to confirm if this is a known issue and is being worked on.

Also, I want to find out if there is a workaround for this scenario, one that does not involve downgrading to an older version. (I am aware that the 1.13.0 and 1.7.5 versions work with the cmdlet)

Thank you for your anticipated response.

Best regards,

Issue script & Debug output

N/A

Environment data

N/A

Module versions

2.7.1 module

Error output

“Parameter cannot be processed because the parameter name 'Password' is ambiguous. Possible matches include: -PasswordPolicy -PasswordProfile. (Parameter cannot be processed because the parameter name 'Password' is ambiguous. Possible matches include: -PasswordPolicy -PasswordProfile.) “

v-aderinokuna avatar Jan 19 '22 07:01 v-aderinokuna

@VeryEarly , please look into this issue.

dingmeng-xue avatar Jan 19 '22 07:01 dingmeng-xue

Any update on this please?

v-aderinokuna avatar Jan 24 '22 07:01 v-aderinokuna

@VeryEarly please tell me this is being worked on? please its really urgent!

v-aderinokuna avatar Jan 24 '22 11:01 v-aderinokuna

@VeryEarly please tell me this is being worked on? please its really urgent!

Hi @Dblakhokage ,

Thanks for reporting this issue, I'm working on the fix, new version of Az.Resources will be available early next month.

VeryEarly avatar Jan 24 '22 14:01 VeryEarly

@VeryEarly, this appears to be a duplicate of an issue I opened #16795, can you confirm that this is a bug?

I initially reported similar strange behavior with -EnableAccount but added the -Password issue to the same report, is the -EnableAccount issue a bug too?

happywino avatar Jan 24 '22 19:01 happywino

@VeryEarly, this appears to be a duplicate of an issue I opened #16795, can you confirm that this is a bug?

I initially reported similar strange behavior with -EnableAccount but added the -Password issue to the same report, is the -EnableAccount issue a bug too?

Yes and it should be fixed in https://www.powershellgallery.com/packages/Az.Resources/5.3.0

VeryEarly avatar Feb 07 '22 07:02 VeryEarly