Add role assignments to the storage account/s

Before the solution can backup your storage tables, it needs to be granted access to the storage account containing the Azure tables that you want to backup. Specifically, the system managed identity of the function app needs to be granted the Storage Table Data Reader and Storage Blob Data Contributor roles to the storage account.

The script below can do this for you. You'll need to run this against every storage account where you are backing up tables.

Download the script and set the parameters at the top of the script:

  • Tenant (tenant Id)

  • Subscription (subscription name)

  • StorageAccountName (the name of the storage account containing the tables you want to backup)

Execute the script, and upon successful execution the new role assigments will be reported:

In the storage account in the Azure portal, in the Access Control (IAM) blade, in the Role assignments tab, you will see the new role assignments added.

Last updated