Hi Tom
When you wanted to use Managed Identity to connect to Azure Storage, make sure that your cluster is configured to use Managed Identity and linked to your storage account.
An example given below:
az aks create --resource-group <rg-name> --name <aks-name> --enable-managed-identity
Azure Storage account should have the access from the Managed Identity associated with your AKS cluster.
Following is the sample command to use
az role assignment create --assignee <principal-object-id> --role "Storage Blob Data Contributor" --scope /subscriptions/<subscription-id>/resourceGroups/<rg-name>/providers/Microsoft.Storage/storageAccounts/<storage-account-name>
An example as below:
Hope this helps.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--