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
OpenTofu v1.10.3
on linux_amd64OpenTofu 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
- Checkout sample repo
- Follow steps in the README to create a sample ACR and module to publish.
- Run
tofu initto surface the error message.
Additional Context
Using Docker Desktop on windows for ACR credential store.
References
No response
Source: opentofu/opentofu