azureazure-active-directoryazure-blob-storagerole-based-access-controlazure-node-sdk

Azure storage add role assignment AD group via nodejs


How do I add a new role assignment to an Azure Storage Blob Container where the role is Reader and the member is an Azure AD Group via javascript/nodejs?

I cannot seem to find which SDK to use. I found this page, but not sure if it the correct one to use?


Solution

  • For anyone looking to implement the same logic, here comes my findings.

    You need to use @azure/arm-authorization to create the client. More details can be found here

    For sample code, check this GitHub repo