# ContainerRegistryServiceProxy

- Module: [Aspire.Hosting.Azure.Provisioning.ContainerRegistry](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents the ContainerRegistryService Azure Provisioning model.

## Definition

```typescript
interface ContainerRegistryServiceProxy {
  readonly createdOn: BicepValueProxy | datetimeoffset;
  readonly dataEndpointHostNames: Aspire_Hosting_Azure_Provisioning_ContainerRegistry_Generated_ListOfStringProxy;
  encryption: ContainerRegistryEncryptionProxy;
  readonly id: BicepValueProxy;
  identity: ContainerRegistryManagedServiceIdentityProxy;
  isAdminUserEnabled: BicepValueProxy | boolean;
  isAnonymousPullEnabled: BicepValueProxy | boolean;
  isDataEndpointEnabled: BicepValueProxy | boolean;
  location: BicepValueProxy;
  readonly loginServer: BicepValueProxy | string;
  name: BicepValueProxy | string;
  networkRuleBypassOptions: BicepValueProxy | ContainerRegistryNetworkRuleBypassOption;
  networkRuleSet: ContainerRegistryNetworkRuleSetProxy;
  policies: ContainerRegistryPoliciesProxy;
  readonly privateEndpointConnections: Aspire_Hosting_Azure_Provisioning_ContainerRegistry_Generated_ListOfContainerRegistryPrivateEndpointConnectionDataProxy;
  readonly provisioningState: BicepValueProxy | ContainerRegistryProvisioningState;
  publicNetworkAccess: BicepValueProxy | ContainerRegistryPublicNetworkAccess;
  sku: ContainerRegistrySkuProxy;
  readonly status: ContainerRegistryResourceStatusProxy;
  readonly systemData: ContainerRegistrySystemDataProxy;
  tags: Aspire_Hosting_Azure_Provisioning_ContainerRegistry_Generated_DictionaryOfStringProxy;
  zoneRedundancy: BicepValueProxy | ContainerRegistryZoneRedundancy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearIsAdminUserEnabled(): void;
  clearIsAnonymousPullEnabled(): void;
  clearIsDataEndpointEnabled(): void;
  clearLocation(): void;
  clearName(): void;
  clearNetworkRuleBypassOptions(): void;
  clearPublicNetworkAccess(): void;
  clearZoneRedundancy(): void;
  createRoleAssignment(
      role: ContainerRegistryBuiltInRoleProxy,
      principalType: BicepValueProxy | RoleManagementPrincipalType,
      principalId: BicepValueProxy | guid,
      bicepIdentifierSuffix: string): ContainerRegistryRoleAssignmentProxy;
}
```

## Properties

- `createdOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the CreatedOn provisioning property.
- `dataEndpointHostNames`: [Aspire_Hosting_Azure_Provisioning_ContainerRegistry_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/aspire-hosting-azure-provisioning-containerregistry-generated-listofstringproxy.md) `get` -- Gets the DataEndpointHostNames provisioning property.
- `encryption`: [ContainerRegistryEncryptionProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistryencryptionproxy.md) `get - set` -- Gets or sets the Encryption provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `identity`: [ContainerRegistryManagedServiceIdentityProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistrymanagedserviceidentityproxy.md) `get - set` -- Gets or sets the Identity provisioning property.
- `isAdminUserEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsAdminUserEnabled provisioning property.
- `isAnonymousPullEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsAnonymousPullEnabled provisioning property.
- `isDataEndpointEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsDataEndpointEnabled provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `loginServer`: `BicepValueProxy | string` `get` -- Gets the LoginServer provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `networkRuleBypassOptions`: `BicepValueProxy | ContainerRegistryNetworkRuleBypassOption` `get - set` -- Gets or sets the NetworkRuleBypassOptions provisioning property.
- `networkRuleSet`: [ContainerRegistryNetworkRuleSetProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistrynetworkrulesetproxy.md) `get - set` -- Gets or sets the NetworkRuleSet provisioning property.
- `policies`: [ContainerRegistryPoliciesProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistrypoliciesproxy.md) `get - set` -- Gets or sets the Policies provisioning property.
- `privateEndpointConnections`: [Aspire_Hosting_Azure_Provisioning_ContainerRegistry_Generated_ListOfContainerRegistryPrivateEndpointConnectionDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/aspire-hosting-azure-provisioning-containerregistry-generated-listofcontainerregistryprivateendpointconnectiondataproxy.md) `get` -- Gets the PrivateEndpointConnections provisioning property.
- `provisioningState`: `BicepValueProxy | ContainerRegistryProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `publicNetworkAccess`: `BicepValueProxy | ContainerRegistryPublicNetworkAccess` `get - set` -- Gets or sets the PublicNetworkAccess provisioning property.
- `sku`: [ContainerRegistrySkuProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistryskuproxy.md) `get - set` -- Gets or sets the Sku provisioning property.
- `status`: [ContainerRegistryResourceStatusProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistryresourcestatusproxy.md) `get` -- Gets the Status provisioning property.
- `systemData`: [ContainerRegistrySystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistrysystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_ContainerRegistry_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/aspire-hosting-azure-provisioning-containerregistry-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.
- `zoneRedundancy`: `BicepValueProxy | ContainerRegistryZoneRedundancy` `get - set` -- Gets or sets the ZoneRedundancy provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistryserviceproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearIsAdminUserEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistryserviceproxy/clearisadminuserenabled.md) -- `method` -- Clears the IsAdminUserEnabled provisioning property.
    ```typescript
  clearIsAdminUserEnabled(): void
  ```
- [clearIsAnonymousPullEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistryserviceproxy/clearisanonymouspullenabled.md) -- `method` -- Clears the IsAnonymousPullEnabled provisioning property.
    ```typescript
  clearIsAnonymousPullEnabled(): void
  ```
- [clearIsDataEndpointEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistryserviceproxy/clearisdataendpointenabled.md) -- `method` -- Clears the IsDataEndpointEnabled provisioning property.
    ```typescript
  clearIsDataEndpointEnabled(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistryserviceproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistryserviceproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearNetworkRuleBypassOptions](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistryserviceproxy/clearnetworkrulebypassoptions.md) -- `method` -- Clears the NetworkRuleBypassOptions provisioning property.
    ```typescript
  clearNetworkRuleBypassOptions(): void
  ```
- [clearPublicNetworkAccess](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistryserviceproxy/clearpublicnetworkaccess.md) -- `method` -- Clears the PublicNetworkAccess provisioning property.
    ```typescript
  clearPublicNetworkAccess(): void
  ```
- [clearZoneRedundancy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistryserviceproxy/clearzoneredundancy.md) -- `method` -- Clears the ZoneRedundancy provisioning property.
    ```typescript
  clearZoneRedundancy(): void
  ```
- [createRoleAssignment](/reference/api/typescript/aspire.hosting.azure.provisioning.containerregistry/containerregistryserviceproxy/createroleassignment.md) -- `method` -- Invokes CreateRoleAssignment on the ContainerRegistryService provisioning model.
    ```typescript
  createRoleAssignment(role: ContainerRegistryBuiltInRoleProxy, principalType: BicepValueProxy | RoleManagementPrincipalType, principalId: BicepValueProxy | guid, bicepIdentifierSuffix: string): ContainerRegistryRoleAssignmentProxy
  ```
