Closed willvelida closed 1 month ago
@willvelida can you please share your job's resource id with us at acasupport@ microsoft.com and reference this issue? Thanks! 🙂
Thanks @anthonychu, just emailed you now :)
@anthonychu we can mark this as resolved - Thanks to the team for helping me with this offline!
For those wondering what the solution is, I had a Container App that I was running as a Dapr cron job called biotrackr-auth. I used the same name for a normal job, and while the Terraform deployment destroyed the old Container App and created a new job, using the same name caused a transient issue as they were trying to execute at the same time.
I resolved it by using a new name for the job.
This issue is a: (mark with an x)
Issue description
I have a Container App Cron job that uses a user-assigned managed identity. The managed identity has the AcrPull role, but the Container App job fails, and Log Analytics logs the following error:
Steps to reproduce
Review the following Terraform template for creating the job:
This is the terraform for implementing the ACR, MSI, and role assignment:
This is the logic that the job is doing. Very basic .NET worker:
Implemented in a
Program.cs
file like so:The full code (with all Terraform modules and C# code) can be found here: https://github.com/willvelida/biotrackr
Expected behavior [What you expected to happen.]
For Log Analytics to log out the message, and for the container app job to be successful
Actual behavior [What actually happened.]
Container App job fails due to the following error: