Hello Tom Smith,
Sorry to hear you're encountering the "You don't have access" error when trying to work with your Azure File Share. Since you've already confirmed that your IAM role is set as Owner, let's consider a few potential troubleshooting steps:
Double-check your account permissions: Even with an Owner role assigned through Azure IAM, you may need specific storage account permissions for Azure Files. Ensure your account is granted "Storage File Data SMB Share Contributor" or "Storage File Data SMB Share Elevated Contributor" role at the storage account or file share level for full access.
Review authentication method: If you're trying to access the share using SMB, make sure you're authenticating with the correct Azure AD credentials or storage account key as required. Sometimes, if the share is configured for Azure AD authentication, using the legacy keys won't work.
Check network configurations: Ensure your client is connecting from an allowed network (such as a configured VNet, or permitted public IP if firewall rules are enabled).
Verify role assignment scope: The "Owner" role might be assigned at the subscription or resource group level. Confirm the scope includes the specific storage account hosting your Azure File Share.
If you've reviewed the above and are still getting a 401 access error, try to remove and re-add your permissions to the resource. Also, consider signing out and back into the portal to refresh your access token.
Let me know if you need more specific instructions for any of these steps!
Best regards,
Jerald Felix