https://pulumi.com logo
Title
b

boundless-airport-99052

01/12/2021, 12:39 PM
When creating a custom role definition with azure next gen, I got the following error
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

tall-librarian-49374

01/12/2021, 12:47 PM
I think something is wrong with your value for
scope
or
RoleAssignmentName
indeed
b

boundless-airport-99052

01/12/2021, 12:52 PM
yes, but this really lack of documentation from microsoft about what value is correct
t

tall-librarian-49374

01/12/2021, 12:56 PM
name is a guid and scope is usually a resource id
b

boundless-airport-99052

01/12/2021, 3:43 PM
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