I'm trying to grant an Azure 'User Assigned Managed Identity' permissions to an Azure storage account via Terraform.
I'm struggling to find the best way to do this - any ideas would be much appreciated!
Background: I'm looking to deploy HDInsights and point it at a Data Lake Gen2 storage account. For the HDInsights deployment to succeed it needs to reference a Managed Identity that has 'Storage Blob Data Owner' permissions to the storage account.
I can successfully create the storage account and Managed Identity via Terraform. However, I'm stuck on the best way to assign the Managed Identity to the storage account.