Use this data source to access information about an existing Container Registry.
data "azurerm_container_registry" "example" {
name = "testacr"
resource_group_name = "test"
}
output "login_server" {
value = data.azurerm_container_registry.example.login_server
}
name
- The name of the Container Registry.resource_group_name
- The Name of the Resource Group where this Container Registry exists.The following attributes are exported:
id
- The Container Registry ID.
login_server
- The URL that can be used to log into the container registry.
admin_username
- The Username associated with the Container Registry Admin account - if the admin account is enabled.
admin_password
- The Password associated with the Container Registry Admin account - if the admin account is enabled.
data_endpoint_enabled
- Whether dedicated data endpoints for this Container Registry are enabled?
location
- The Azure Region in which this Container Registry exists.
admin_enabled
- Is the Administrator account enabled for this Container Registry.
sku
- The SKU of this Container Registry, such as Basic
.
tags
- A map of tags assigned to the Container Registry.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Container Registry.