Hi @Edudzi
Welcome to Microsoft Q&A Forum. Thanks for posting your query here!
Based on the error message it states that there is "AuthorizationPermissionMismatch" on the source: Blob storage. It's permission issue. Please provide mentioned access for client_id = "xxxxxxxxxxxxxxxxxxxxxxx" (IAM permission) please go into your storage account > IAM > Add role assignment and add the special permissions for this type of request. Other possible ways are due to the Wrong Storage Account Keys and/or Storage Account name, or SAS Expired or Azure Storage Firewall has been configured and customer's IP/subnet has not been granted access. (You can also get a 403 error if the time on the server is not in sync with the time on storage servers.
Verify correct credentials:
- Ensure that the client ID you’re using has the necessary permissions. You mentioned that you’ve granted the Storage Blob Data Contributor role to the app, which is a good start.
- However, also verify that the app has the required permissions for the specific operation (PUT request in this case). Sometimes, it’s not just about the role but also about the specific permissions within that role.
- Go to your storage account in the Azure Portal, navigate to IAM (Identity and Access Management), and add the necessary permissions for your app.
Make sure that the Storage Account name is correct and has not been mistyped.
Also Enabling "Allow trusted Microsoft services to access this storage account" allows you to access storage account.
Ensure that you have _Contributor _and Blob Data Contributor permissions on the storage account.
Additional information: Assign an Azure role for access to blob data
Similar issue SO thread for reference - https://stackoverflow.com/questions/66525481/authorization-permission-mismatch-when-trying-to-put-a-file-in-azure-blob-with-a, https://stackoverflow.com/questions/52769758/azure-blob-storage-authorization-permission-mismatch-error-for-get-request-wit
Hope this answer helps! Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members