Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACR docker registry login server should be lower case #277

Closed
whiskeysierra opened this issue Jan 25, 2021 · 1 comment
Closed

ACR docker registry login server should be lower case #277

whiskeysierra opened this issue Jan 25, 2021 · 1 comment
Assignees

Comments

@whiskeysierra
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and Azure DevOps Provider) Version

Terraform v0.13.5
+ provider registry.terraform.io/hashicorp/azurerm v2.43.0
+ provider registry.terraform.io/microsoft/azuredevops v0.1.1

Affected Resource(s)

  • azuredevops_serviceendpoint_azurecr

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp

resource "azuredevops_serviceendpoint_azurecr" "default" {
  service_endpoint_name     = "acr-${var.realm.name}-${var.realm.stage}"
  project_id                = var.project.id
  resource_group            = azurerm_container_registry.default.resource_group_name
  azurecr_spn_tenantid      = data.azurerm_client_config.current.tenant_id
  azurecr_name              = azurerm_container_registry.default.name
  azurecr_subscription_id   = data.azurerm_subscription.current.subscription_id
  azurecr_subscription_name = data.azurerm_subscription.current.display_name
}

The ACR is named acrbosGA.

Debug Output

Panic Output

Expected Behavior

login server supplied to DevOps API should be acrbosga.azurecr.io.

Actual Behavior

login server supplied to DevOps API is acrbosGA.azurecr.io.

loginServer := fmt.Sprintf("%s.azurecr.io", d.Get("azurecr_name"))

When doing az acr login --name acrbosGA the CLI will issue a warning because of case-sensitivity:

Uppercase characters are detected in the registry name. When using its server url in docker commands, to avoid authentication errors, use all lowercase.

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@xuzhang3
Copy link
Collaborator

xuzhang3 commented Feb 5, 2021

Close this issue, has been fixed in v0.1.2.

@xuzhang3 xuzhang3 closed this as completed Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants