Skip to content
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

Role Assignments API fails for new roles #1895

Closed
tombuildsstuff opened this issue May 23, 2018 · 1 comment
Closed

Role Assignments API fails for new roles #1895

tombuildsstuff opened this issue May 23, 2018 · 1 comment
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization.

Comments

@tombuildsstuff
Copy link
Contributor

👋

When attempting to use the Role Assignments API to create a role assignment for a new role (such as Virtual Machine User Login) - the API returns the following error message:

authorization.RoleAssignmentsClient#Create: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="UnsupportedApiVersionForRoleDefinitionHasDataActions" Message="Assignments to roles with DataActions and NotDataActions are not supported on API version '2015-07-01'. The minimum required API version for this operations is '2018-01-01-preview'."

Whilst I can understand this behaviour, this is a poor user experience when users would expect the role assignment to silently handle calling the new API in the background. Would it be possible to reach out to the service team here?

In the mean time it appears there's support for this new version in the SDK - so we could look into migrating across to that version.

Thanks!

@joshgav
Copy link
Contributor

joshgav commented Jul 17, 2018

Thanks for the insightful feedback as always @tombuildsstuff, cc @ravbhatnagar from Resource Manager service team. Azure APIs don't automatically transform requests and use updated versions cause semantic consistency between versions isn't guaranteed and we may not get the user's intention right. Also, the old API version is still live and supported for direct use, i.e. without any transformation.

Glad to see you were able to address this in Terraform by upgrading to the later API in hashicorp/terraform-provider-azurerm#1284.

@joshgav joshgav closed this as completed Jul 17, 2018
@ghost ghost removed the committed label Jul 17, 2018
@RickWinter RickWinter added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Jul 12, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

No branches or pull requests

4 participants