Java SDK / Add option to better manage roles / assign user managed identity to storage accounts via SDK #37452
kobaltoxid
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
I think SDK supports However, the name = GUID/UUID on role assignment is backend behavior. If one use a different pattern (like human-readable name), backend would reject it. Currently there is nothing SDK can do about it. For user-managed identity in storage account, it can be supported. Would you create an issue in https://github.com/Azure/azure-sdk-for-java/issues ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm writing since I've searched high and low for the above 2 things.
As of now, I have found that the features I'm looking for are not implemented in the SDK as of version 2.31.0 . The version 2.32.0 release notes mention nothing of this so I'm assuming there are no changes there either.
In essence, this would be my struggle:
I'm forced to do error handling if I were to touch the same storage account a second time. It would be very useful if the SDK would allow to search a given role assignment and to remove/add it to a resource afterwards. Instead, I have to create a brand new assignment and apply it here at the same time.
On the following note, an Azure role assignment seems to contain a GUID/UUID as a name field. This is confusing, it could be remedied by specifying an additional name field or by renaming the current name field to "RoleID". This would also help if we allow to search the available role assignments of an object.
This is from the SupportsCreating interface docs. Define accepts a "String name" field:
And finally, I have noticed that you can only assign a system-managed identity to a storage account via the SDK. It would be useful if we could assign a user-managed identity without having to resort to calling the REST API via an HTTP client request.
Thank you for sparing the time to hear my ideas! Let me know if I'm wrong somewhere.
Beta Was this translation helpful? Give feedback.
All reactions