-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MalformedRoleAssignmentRequest - PASRP RoleAssignment request is malforme #8143
Comments
Are you using a CLI command to try this? It looks like you are calling the REST API directly. |
i first attempted to use the sample provided: https://github.com/Azure/azure-sdk-for-node/tree/master/Documentation/ServicePrincipal and got the MalformedRoleAssignmentRequest then i attempted to manually executecalling REST API directly same error unfortunately |
@lanpar, this is the repo for the Azure CLI. Have you considered raising an issue on the repo you found the issue on, or reaching out to someone on the repo? |
Hitting same error through Python SDK from azure.mgmt.authorization import AuthorizationManagementClient role_definition_id = 'acdd72a7-3385-48ef-bd42-f606fba81ae7' role_assignment_properties = RoleAssignmentProperties(role_definition_id=role_definition_id, principal_id=group_id) |
Please open the issue at a right place: https://github.com/azure/azure-sdk-for-python/issues. At the same time, please run |
Attempting to perform a role assignment on a service principle
#1. var assignmentGuid = msrestazure.generateUuid();
#2. body payload has both principleId and roleDefinitionId (json format)
#3. roleDefinitionId is /subscriptions/{{subscription_id}}/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635
#4. Execute the PUT
https://management.azure.com/subscriptions/{{subscription_id}}/providers/Microsoft.Authorization/roleAssignments/{{assignmentGuid}}?api-version=2015-07-01
response:
{
"error": {
"code": "MalformedRoleAssignmentRequest",
"message": "PASRP RoleAssignment request is malformed"
}
}
any help on what i need to do to fix , thanks
The text was updated successfully, but these errors were encountered: