Open
Description
During Azure CLI's migration to azure-mgmt-authorization
Track 2 SDK (Azure/azure-cli#23372), this change is spotted.
In the previous API 2020-04-01-preview
, RoleAssignmentProperties.principalType
has no default value:
In the latest API 2022-04-01
, it has a default value of User
:
This breaks Azure CLI as we assume principalType
is by default None
:
if assignee_principal_type:
parameters.principal_type = assignee_principal_type
There should be no assumption that principalType
is a User
.