Hello @William Kruse
The error is interesting because the hostname you've shown appears syntactically valid. For ACI, imageRegistryCredentials.server must contain only the registry login server hostname, without https://, a port, repository path, or image tag. Microsoft documents this explicitly.
For example:
server: companynamecontainerregistry-fthyjju6ymqerta1.azurecr.io
image: companynamecontainerregistry-fthyjju6ymqerta1.azurecr.io/repository/image:tag
The -fthyjju6ymqerta1 portion is also not necessarily an error. Azure Container Registry can now use Domain Name Label (DNL) protection, where the login server includes a DNS hash such as myregistry-abc123.azurecr.io.
I would first verify what Azure considers the actual login server:
az acr show \
--name <registry-name> \
--query loginServer \
--output tsv
Then inspect what ACI actually stored:
az container show \
--resource-group <resource-group> \
--name <container-group> \
--query properties.imageRegistryCredentials
The server value should exactly match the ACR loginServer value.
Since you're selecting the registry through the Azure Portal and you've reproduced this even with newly created registries/container instances, I'd also try one deployment using CLI rather than the portal:
az container create \
--resource-group <resource-group> \
--name aci-test \
--image <login-server>/<repository>:<tag> \
--registry-login-server <login-server> \
--registry-username <username> \
--registry-password <password>
Microsoft documents this syntax for ACI pulling from ACR.
If the CLI deployment succeeds while the Portal-generated deployment fails with InvalidImageRegistryServer, that strongly points to a Portal-generated configuration issue rather than your VNet or ACR Basic tier.
Also, this error occurs while ACI validates the registry server value. A registry network-access problem would more typically surface later as an image accessibility/pull/connectivity failure, so I wouldn't start changing your VNet configuration yet.
If CLI fails as well, please share the output of:
az acr show -n <registry-name> --query loginServer -o tsv
and the imageRegistryCredentials section from:
az container show -g <resource-group> -n <container-group>
with credentials removed. That should show whether ACI is receiving a malformed hostname or whether this needs investigation as a service-side regression.
Sharing this reference with you:
Microsoft: Deploy an ACR image to Azure Container Instances
https://learn.microsoft.com/en-us/azure/container-instances/container-instances-using-azure-container-registry
Please "Accept the Answer" if this information helped you. This will help us and others in the community.