Use Azure policy to assign a role to a storage account
I am trying to make an Azure policy that adds a RBAC role assignment to each existing and future storage account. The code shown below works on the hard coded hardcodedstorageaccountname and performs remediation without a problem. Next step, in…