#3086·opentofu

Unable to use OCI module source with Azure Container Registry

Author: JasonWhallCreated Jul 31, 2025Updated Sep 10, 2026
Labelsbugaccepted

Community note

[!TIP] Hi there, OpenTofu community! The OpenTofu team prioritizes issues based on upvotes. Please make sure to upvote this issue and describe how it affects you in detail in the comments to show your support.

OpenTofu Version

bash
OpenTofu v1.10.3
on linux_amd64

OpenTofu Configuration Files

Sample repository - https://github.com/JasonWhall/opentofu-acr-oci-bug

Debug Output

https://gist.github.com/JasonWhall/ac68b22e0add58051a0ebfcf44b95fee

Expected Behavior

Tofu module downloaded during init and can use OCI module from Azure Container Registry when authenticated

Actual Behavior

Error is returned, advising that it is unable to authenticate to the ACR.

Steps to Reproduce

  1. Checkout sample repo
  2. Follow steps in the README to create a sample ACR and module to publish.
  3. Run tofu init to surface the error message.

Additional Context

Using Docker Desktop on windows for ACR credential store.

References

No response