Update-AzRoleManagementPolicy does not handle empty array for EnabledRule #26196
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
Description
Hi,
Rule Enablement_EndUser_Assignment support the following values MultiFactorAuthentication, Justification and Ticketing for EnabledRule.
I have a situation where EnabledRule contains Justification, I want to remove this value. It works fine via the Azure Portal. But when I try to do it via PowerShell nothing happens.
I do not get any errors but Justification is not removed.
If I try with adding an array that only contains Ticketing it works fine and EnabledRule is updated.
It seems like EnabledRule does not handle empty arrays.
Regards Peter
Issue script & Debug output
It is not possible to add the debug output because it is longer than 65536 characters
Environment data
Module versions
Error output
No response
The text was updated successfully, but these errors were encountered: