Something strange happened while I was working with HCP Terraform and the Azure provider. Out of nowhere, my configuration started failing.

I was using Azure/azapi as the provider source—capital “A,” just like it appears in the Terraform Registry. But HCP Terraform began throwing errors, insisting it couldn’t find azure/azapi.

It looked like somewhere along the line, a toLower had been applied to the provider source name, causing a mismatch. My local code hadn’t changed, and the registry still showed the correct casing. For a while, it was completely broken.

Then, just as mysteriously as it started, the issue resolved itself without any changes on my end. One of the weirdest bugs I’ve seen — still no clear explanation, but it serves as a reminder that even subtle things like case sensitivity can cause havoc when something upstream shifts unexpectedly.