How can I gain Microsoft.Authorization/roleAssignments/write permission to storage account that I created

Sorin Silaghi 1 Reputation point
2021-12-23T13:22:17.837+00:00

I'm trying to enable auditing on an SQL server but I don't have the Microsoft.Authorization/roleAssignments/write permission on the storage account to do it. I created the storage account myself, but I only have the Contributor role for it. Is there some way that I could get this permission?

Azure SQL Database
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Sumarigo-MSFT 47,466 Reputation points Microsoft Employee Moderator
    2022-01-09T03:24:51.927+00:00

    @Sorin Silaghi Adding more information to the above response! Let me firstly explain, How RBAC works and permission are assigned, Please refer to this thread
    What is Azure role-based access control (Azure RBAC)?

    163310-image.png

    Steps to assign an Azure role: https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-steps

    Please let us know if you have any further queries**. I’m happy to assist you further.**

    ----------

    Please do not forget to 163376-screenshot-2021-12-10-121802.pngand “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

  2. Julian Hüppauff 341 Reputation points Microsoft Employee
    2021-12-23T13:29:50.573+00:00

    If you have just contributor rights, you can't assign permissions.
    Try asking your admin/organisation for owner permissions either on the storage account or on a higher level

    0 comments No comments

  3. Mahmoud A. ATALLAH 226 Reputation points MVP
    2024-02-28T05:10:09.97+00:00

    Check that you're currently signed in with a user that is assigned a role that has the Microsoft.Authorization/roleAssignments/write permission such as Role Based Access Control Administrator at the scope you're trying to assign the role Or Assign Owner role, However, this is not a best practice as security principals

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.