Hello David Aguado Fernandez
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
Based on the issue description, looks like you have correctly assigned the AcrPull role to the user managed identity for the ACR.
However, there could be other reasons why the container instance is not getting created and is stuck in the "Pending" state until it times out after 30 minutes.
-One possible reason could be that the ACR is not publicly accessible and is only accessible within a virtual network. In this case, you need to ensure that the ACI is deployed within the same virtual network as the ACR and that the virtual network is properly configured to allow traffic between the ACI and the ACR.
-Another possible reason could be that the user managed identity does not have the necessary permissions to create a container instance. You need to ensure that the user managed identity has the necessary permissions to create a container instance in the specified resource group.
-To troubleshoot the issue further, I would suggest to check the logs for the container instance and the ACI deployment to see if there are any errors or issues that are preventing the container instance from getting created.
I would recommend you try creating a container instance using the Azure portal or Azure CLI to see if you encounter the same issue.
Hope that helps.