Data Source: azurermContainerRegistry
Use this data source to access information about an existing Container Registry.
Example Usage
import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermContainerRegistryExample =
new azurerm.dataAzurermContainerRegistry.DataAzurermContainerRegistry(
this,
"example",
{
name: "testacr",
resource_group_name: "test",
}
);
new cdktf.TerraformOutput(this, "login_server", {
value: dataAzurermContainerRegistryExample.loginServer,
});
Argument Reference
name
- The name of the Container Registry.resourceGroupName
- The Name of the Resource Group where this Container Registry exists.
Attributes Reference
The following attributes are exported:
-
id
- The Container Registry ID. -
loginServer
- The URL that can be used to log into the container registry. -
adminUsername
- The Username associated with the Container Registry Admin account - if the admin account is enabled. -
adminPassword
- The Password associated with the Container Registry Admin account - if the admin account is enabled. -
dataEndpointEnabled
- Whether dedicated data endpoints for this Container Registry are enabled? -
location
- The Azure Region in which this Container Registry exists. -
adminEnabled
- Is the Administrator account enabled for this Container Registry. -
sku
- The SKU of this Container Registry, such asbasic
. -
tags
- A map of tags assigned to the Container Registry.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Container Registry.