ACR docker registry login server lowercase
@@ -40,7 +40,7 @@ func expandServiceEndpointAzureCR(d *schema.ResourceData) (*serviceendpoint.Serv
"/subscriptions/%s/resourceGroups/%s/providers/Microsoft.ContainerRegistry/registries/%s",
subscriptionID, d.Get("resource_group"), d.Get("azurecr_name"),
)
- loginServer := fmt.Sprintf("%s.azurecr.io", d.Get("azurecr_name"))
+ loginServer := fmt.Sprintf("%s.azurecr.io", strings.ToLower(d.Get("azurecr_name").(string)))
serviceEndpoint.Authorization = &serviceendpoint.EndpointAuthorization{
Parameters: &map[string]string{
"authenticationType": "spnKey",
