When creating a custom role definition with azure ...
# azure
b
When creating a custom role definition with azure next gen, I got the following error
Copy code
azure-nextgen:authorization/v20150701:RoleDefinition (roleDefinition):
    error: autorest/azure: Service returned an error. Status=405 Code="" Message="The requested resource does not support http method 'PUT'."
Is there an issue with the provider?
t
I think something is wrong with your value for
scope
or
RoleAssignmentName
indeed
b
yes, but this really lack of documentation from microsoft about what value is correct
t
name is a guid and scope is usually a resource id
b
okay, I got it 👍 roleDefinitionId should be a simple uuid like
roleDefinitionId: uuid.result
. I was trying to have a complex value like
/subscription/…
. It will be a challenge for pulumi to complete the doc, because azure doc or error message are sometimes very poor
thanks for your help