Azure Storage Account custom domain nuances. I con...
# azure
w
Azure Storage Account custom domain nuances. I configured a storage account with Pulumi. Then after that I manually configured a cloudflare proxy for it, and updated the custom domain name on the storage account via Azure portal. That is all working and in-effect. I went to update my pulumi code with the custom domain name to avoid drift and got an error message from the Azure API:
Copy code
azure-native:storage:StorageAccount (zacdirectstorage):
    error: Code="StorageDomainNameCouldNotVerify" Message="The custom domain name could not be verified. CNAME mapping from www.zac.direct to any of <http://zacdirectstoragecc2391be.blob.core.windows.net|zacdirectstoragecc2391be.blob.core.windows.net>,<http://zacdirectstoragecc2391be.z19.web.core.windows.net|zacdirectstoragecc2391be.z19.web.core.windows.net> does not exist."
Terraform similar issue that seems like it might just need a special DNS verification record to work. Odd that it just takes it via entry in Azure Portal though. I wonder if there's a more direct API available that can just set this and skip the CNAME validation?
For grins I made a temp stack and imported it just to see how it came in. Comes in the exact same way I'm trying to set it 🥲.
Copy code
const zacdirectstoragecc2391be = new azure_native.storage.StorageAccount("zacdirectstoragecc2391be", {
    /// snipped
    customDomain: {
        name: "www.zac.direct",
    },
    /// snipped
}, {
    protect: true,
});