Hi Victor Angelier@NGBlu,
You are having trouble mounting Azure Files in your Container App in the Staging environment. You mentioned that you have checked the permissions for the Managed Identities, Storage Account, Container App Environment, and Container App Based on the error message you provided, it seems like the issue is related to permission denied error. This could be due to incorrect permissions or credentials.__
Have you checked the credentials for the User Assigned Managed Identity in the Staging environment?
You may want to verify that the credentials are correct and that the Managed Identity has the necessary permissions to access the Azure Files.
Also, have you checked the firewall settings for the Storage Account? You may want to ensure that the firewall settings allow traffic from the Staging environment.
If you have already checked these settings, it may be helpful to review the BICEP file and compare it with the running configuration on the Development resource group to see if there are any differences.
And also, please consider:
Network Security Group (NSG) Rules: Ensure that the NSG rules for the Staging environment allow the necessary traffic between the Container App and the Storage Account.
Azure Files Firewall Settings: Double-check the firewall settings on the Azure Storage Account to ensure that the Staging environment’s subnet is allowed.
Managed Identity Permissions: Verify that the User Assigned Managed Identity in the Staging environment has the necessary permissions on both the Storage Account and the Container App. Sometimes, permissions might not propagate correctly.
Azure Role Assignments: Confirm that the role assignments for the Managed Identity are correctly set up in the Staging environment. You might want to reassign the roles to ensure they are applied correctly.
Bicep File Differences: Even though you’ve compared the Bicep files, there might be subtle differences. Ensure that all parameters and configurations are identical, especially those related to networking and identity.
Logs and Diagnostics: Check the logs for both the Container App and the Storage Account. Azure Monitor and Application Insights can provide detailed logs that might highlight the exact permission issue.
*I hope this helps, please let us know if you have any further queries. I’m happy to assist you further.