# ContainerAppManagedEnvironmentProxy

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

Represents the ContainerAppManagedEnvironment Azure Provisioning model.

## Definition

```typescript
interface ContainerAppManagedEnvironmentProxy {
  appLogsConfiguration: ContainerAppLogsConfigurationProxy;
  customDomainConfiguration: ContainerAppCustomDomainConfigurationProxy;
  daprAIConnectionString: BicepValueProxy | string;
  daprAIInstrumentationKey: BicepValueProxy | string;
  readonly daprVersion: BicepValueProxy | string;
  readonly defaultDomain: BicepValueProxy | string;
  readonly deploymentErrors: BicepValueProxy | string;
  readonly eventStreamEndpoint: BicepValueProxy | string;
  readonly id: BicepValueProxy;
  identity: AppContainersManagedServiceIdentityProxy;
  infrastructureResourceGroup: BicepValueProxy | string;
  ingressConfiguration: ManagedEnvironmentIngressConfigurationProxy;
  isEnabled: BicepValueProxy | boolean;
  isMtlsEnabled: BicepValueProxy | boolean;
  isZoneRedundant: BicepValueProxy | boolean;
  readonly kedaVersion: BicepValueProxy | string;
  kind: BicepValueProxy | string;
  location: BicepValueProxy;
  name: BicepValueProxy | string;
  readonly privateEndpointConnections: Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfContainerAppPrivateEndpointConnectionProxy;
  readonly provisioningState: BicepValueProxy | ContainerAppEnvironmentProvisioningState;
  publicNetworkAccess: BicepValueProxy | ContainerAppPublicNetworkAccess;
  readonly staticIP: BicepValueProxy;
  readonly systemData: AppContainersSystemDataProxy;
  tags: Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_DictionaryOfStringProxy;
  vnetConfiguration: ContainerAppVnetConfigurationProxy;
  workloadProfiles: Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfContainerAppWorkloadProfileProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearDaprAIConnectionString(): void;
  clearDaprAIInstrumentationKey(): void;
  clearInfrastructureResourceGroup(): void;
  clearIsEnabled(): void;
  clearIsMtlsEnabled(): void;
  clearIsZoneRedundant(): void;
  clearKind(): void;
  clearLocation(): void;
  clearName(): void;
  clearPublicNetworkAccess(): void;
  createRoleAssignment(
      role: AppContainersBuiltInRoleProxy,
      principalType: BicepValueProxy | RoleManagementPrincipalType,
      principalId: BicepValueProxy | guid,
      bicepIdentifierSuffix: string): AppContainersRoleAssignmentProxy;
}
```

## Properties

- `appLogsConfiguration`: [ContainerAppLogsConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerapplogsconfigurationproxy.md) `get - set` -- Gets or sets the AppLogsConfiguration provisioning property.
- `customDomainConfiguration`: [ContainerAppCustomDomainConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappcustomdomainconfigurationproxy.md) `get - set` -- Gets or sets the CustomDomainConfiguration provisioning property.
- `daprAIConnectionString`: `BicepValueProxy | string` `get - set` -- Gets or sets the DaprAIConnectionString provisioning property.
- `daprAIInstrumentationKey`: `BicepValueProxy | string` `get - set` -- Gets or sets the DaprAIInstrumentationKey provisioning property.
- `daprVersion`: `BicepValueProxy | string` `get` -- Gets the DaprVersion provisioning property.
- `defaultDomain`: `BicepValueProxy | string` `get` -- Gets the DefaultDomain provisioning property.
- `deploymentErrors`: `BicepValueProxy | string` `get` -- Gets the DeploymentErrors provisioning property.
- `eventStreamEndpoint`: `BicepValueProxy | string` `get` -- Gets the EventStreamEndpoint provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `identity`: [AppContainersManagedServiceIdentityProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/appcontainersmanagedserviceidentityproxy.md) `get - set` -- Gets or sets the Identity provisioning property.
- `infrastructureResourceGroup`: `BicepValueProxy | string` `get - set` -- Gets or sets the InfrastructureResourceGroup provisioning property.
- `ingressConfiguration`: [ManagedEnvironmentIngressConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/managedenvironmentingressconfigurationproxy.md) `get - set` -- Gets or sets the IngressConfiguration provisioning property.
- `isEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsEnabled provisioning property.
- `isMtlsEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsMtlsEnabled provisioning property.
- `isZoneRedundant`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsZoneRedundant provisioning property.
- `kedaVersion`: `BicepValueProxy | string` `get` -- Gets the KedaVersion provisioning property.
- `kind`: `BicepValueProxy | string` `get - set` -- Gets or sets the Kind provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `privateEndpointConnections`: [Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfContainerAppPrivateEndpointConnectionProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/aspire-hosting-azure-provisioning-appcontainers-generated-listofcontainerappprivateendpointconnectionproxy.md) `get` -- Gets the PrivateEndpointConnections provisioning property.
- `provisioningState`: `BicepValueProxy | ContainerAppEnvironmentProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `publicNetworkAccess`: `BicepValueProxy | ContainerAppPublicNetworkAccess` `get - set` -- Gets or sets the PublicNetworkAccess provisioning property.
- `staticIP`: `BicepValueProxy` `get` -- Gets the StaticIP provisioning property.
- `systemData`: [AppContainersSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/appcontainerssystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/aspire-hosting-azure-provisioning-appcontainers-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.
- `vnetConfiguration`: [ContainerAppVnetConfigurationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappvnetconfigurationproxy.md) `get - set` -- Gets or sets the VnetConfiguration provisioning property.
- `workloadProfiles`: [Aspire_Hosting_Azure_Provisioning_AppContainers_Generated_ListOfContainerAppWorkloadProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/aspire-hosting-azure-provisioning-appcontainers-generated-listofcontainerappworkloadprofileproxy.md) `get - set` -- Gets or sets the WorkloadProfiles provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappmanagedenvironmentproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearDaprAIConnectionString](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappmanagedenvironmentproxy/cleardapraiconnectionstring.md) -- `method` -- Clears the DaprAIConnectionString provisioning property.
    ```typescript
  clearDaprAIConnectionString(): void
  ```
- [clearDaprAIInstrumentationKey](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappmanagedenvironmentproxy/cleardapraiinstrumentationkey.md) -- `method` -- Clears the DaprAIInstrumentationKey provisioning property.
    ```typescript
  clearDaprAIInstrumentationKey(): void
  ```
- [clearInfrastructureResourceGroup](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappmanagedenvironmentproxy/clearinfrastructureresourcegroup.md) -- `method` -- Clears the InfrastructureResourceGroup provisioning property.
    ```typescript
  clearInfrastructureResourceGroup(): void
  ```
- [clearIsEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappmanagedenvironmentproxy/clearisenabled.md) -- `method` -- Clears the IsEnabled provisioning property.
    ```typescript
  clearIsEnabled(): void
  ```
- [clearIsMtlsEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappmanagedenvironmentproxy/clearismtlsenabled.md) -- `method` -- Clears the IsMtlsEnabled provisioning property.
    ```typescript
  clearIsMtlsEnabled(): void
  ```
- [clearIsZoneRedundant](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappmanagedenvironmentproxy/cleariszoneredundant.md) -- `method` -- Clears the IsZoneRedundant provisioning property.
    ```typescript
  clearIsZoneRedundant(): void
  ```
- [clearKind](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappmanagedenvironmentproxy/clearkind.md) -- `method` -- Clears the Kind provisioning property.
    ```typescript
  clearKind(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappmanagedenvironmentproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappmanagedenvironmentproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearPublicNetworkAccess](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappmanagedenvironmentproxy/clearpublicnetworkaccess.md) -- `method` -- Clears the PublicNetworkAccess provisioning property.
    ```typescript
  clearPublicNetworkAccess(): void
  ```
- [createRoleAssignment](/reference/api/typescript/aspire.hosting.azure.provisioning.appcontainers/containerappmanagedenvironmentproxy/createroleassignment.md) -- `method` -- Invokes CreateRoleAssignment on the ContainerAppManagedEnvironment provisioning model.
    ```typescript
  createRoleAssignment(role: AppContainersBuiltInRoleProxy, principalType: BicepValueProxy | RoleManagementPrincipalType, principalId: BicepValueProxy | guid, bicepIdentifierSuffix: string): AppContainersRoleAssignmentProxy
  ```
