-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'azurerm_container_image' documentation
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
layout: "azurerm" | ||
page_title: "Azure Resource Manager: azurerm_container_registry" | ||
sidebar_current: "docs-azurerm-datasource-image" | ||
description: |- | ||
Get information about an Image | ||
--- | ||
|
||
# Data Source: azurerm_container_registry | ||
|
||
Use this data source to access information about a Container Registry. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "azurerm_container_registry" "test" { | ||
name = "testacr" | ||
resource_group_name = "test" | ||
} | ||
output "image_id" { | ||
value = "${data.azurerm_container_registry.test.id}" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
* `name` - (Required) The name of the Container Registry. | ||
* `resource_group_name` - (Required) The Name of the Resource Group where this Container Registry exists. | ||
|
||
## Attributes Reference | ||
|
||
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. |