# ContainerServiceManagedClusterProxy

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

Represents the ContainerServiceManagedCluster Azure Provisioning model.

## Definition

```typescript
interface ContainerServiceManagedClusterProxy {
  aadProfile: ManagedClusterAadProfileProxy;
  addonProfiles: Aspire_Hosting_Azure_Provisioning_ContainerService_Generated_DictionaryOfManagedClusterAddonProfileProxy;
  agentPoolProfiles: Aspire_Hosting_Azure_Provisioning_ContainerService_Generated_ListOfManagedClusterAgentPoolProfileProxy;
  apiServerAccessProfile: ManagedClusterApiServerAccessProfileProxy;
  autoScalerProfile: ManagedClusterAutoScalerProfileProxy;
  autoUpgradeProfile: ManagedClusterAutoUpgradeProfileProxy;
  azureMonitorProfile: ManagedClusterAzureMonitorProfileProxy;
  readonly azurePortalFqdn: BicepValueProxy | string;
  bootstrapProfile: ManagedClusterBootstrapProfileProxy;
  clusterIdentity: ManagedClusterIdentityProxy;
  readonly currentKubernetesVersion: BicepValueProxy | string;
  diskEncryptionSetId: BicepValueProxy;
  dnsPrefix: BicepValueProxy | string;
  readonly eTag: BicepValueProxy;
  extendedLocation: ContainerServiceExtendedAzureLocationProxy;
  readonly fqdn: BicepValueProxy | string;
  fqdnSubdomain: BicepValueProxy | string;
  hostedSystemProfile: ManagedClusterHostedSystemProfileProxy;
  httpProxyConfig: ManagedClusterHttpProxyConfigProxy;
  readonly id: BicepValueProxy;
  identityProfile: Aspire_Hosting_Azure_Provisioning_ContainerService_Generated_DictionaryOfContainerServiceUserAssignedIdentityProxy;
  ingressProfile: ManagedClusterIngressProfileProxy;
  isAIToolchainOperatorEnabled: BicepValueProxy | boolean;
  isFipsEnabled: BicepValueProxy | boolean;
  isLocalAccountsDisabled: BicepValueProxy | boolean;
  isRbacEnabled: BicepValueProxy | boolean;
  kind: BicepValueProxy | string;
  kubernetesVersion: BicepValueProxy | string;
  linuxProfile: ContainerServiceLinuxProfileProxy;
  location: BicepValueProxy;
  readonly maxAgentPools: BicepValueProxy | number;
  metricsIsCostAnalysisEnabled: BicepValueProxy | boolean;
  name: BicepValueProxy | string;
  networkProfile: ContainerServiceNetworkProfileProxy;
  nodeProvisioningProfile: ManagedClusterNodeProvisioningProfileProxy;
  nodeResourceGroup: BicepValueProxy | string;
  nodeResourceGroupRestrictionLevel: BicepValueProxy | ManagedClusterNodeResourceGroupRestrictionLevel;
  oidcIssuerProfile: ManagedClusterOidcIssuerProfileProxy;
  podIdentityProfile: ManagedClusterPodIdentityProfileProxy;
  readonly powerStateCode: BicepValueProxy | ContainerServiceStateCode;
  readonly privateFqdn: BicepValueProxy | string;
  privateLinkResources: Aspire_Hosting_Azure_Provisioning_ContainerService_Generated_ListOfContainerServicePrivateLinkResourceDataProxy;
  readonly provisioningState: BicepValueProxy | string;
  publicNetworkAccess: BicepValueProxy | ContainerServicePublicNetworkAccess;
  readonly resourceId: BicepValueProxy;
  securityProfile: ManagedClusterSecurityProfileProxy;
  serviceMeshProfile: ServiceMeshProfileProxy;
  servicePrincipalProfile: ManagedClusterServicePrincipalProfileProxy;
  sku: ManagedClusterSkuProxy;
  readonly statusProvisioningError: BicepValueProxy;
  storageProfile: ManagedClusterStorageProfileProxy;
  supportPlan: BicepValueProxy | KubernetesSupportPlan;
  readonly systemData: ContainerServiceSystemDataProxy;
  tags: Aspire_Hosting_Azure_Provisioning_ContainerService_Generated_DictionaryOfStringProxy;
  upgradeOverrideSettings: UpgradeOverrideSettingsProxy;
  upstreamSchedulerConfigMode: BicepValueProxy | SchedulerConfigMode;
  windowsProfile: ManagedClusterWindowsProfileProxy;
  workloadAutoScalerProfile: ManagedClusterWorkloadAutoScalerProfileProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearDiskEncryptionSetId(): void;
  clearDnsPrefix(): void;
  clearFqdnSubdomain(): void;
  clearIsAIToolchainOperatorEnabled(): void;
  clearIsFipsEnabled(): void;
  clearIsLocalAccountsDisabled(): void;
  clearIsRbacEnabled(): void;
  clearKind(): void;
  clearKubernetesVersion(): void;
  clearLocation(): void;
  clearMetricsIsCostAnalysisEnabled(): void;
  clearName(): void;
  clearNodeResourceGroup(): void;
  clearNodeResourceGroupRestrictionLevel(): void;
  clearPublicNetworkAccess(): void;
  clearSupportPlan(): void;
  clearUpstreamSchedulerConfigMode(): void;
  createRoleAssignment(
      role: ContainerServiceBuiltInRoleProxy,
      principalType: BicepValueProxy | RoleManagementPrincipalType,
      principalId: BicepValueProxy | guid,
      bicepIdentifierSuffix: string): ContainerServiceRoleAssignmentProxy;
}
```

## Properties

- `aadProfile`: [ManagedClusterAadProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusteraadprofileproxy.md) `get - set` -- Gets or sets the AadProfile provisioning property.
- `addonProfiles`: [Aspire_Hosting_Azure_Provisioning_ContainerService_Generated_DictionaryOfManagedClusterAddonProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/aspire-hosting-azure-provisioning-containerservice-generated-dictionaryofmanagedclusteraddonprofileproxy.md) `get - set` -- Gets or sets the AddonProfiles provisioning property.
- `agentPoolProfiles`: [Aspire_Hosting_Azure_Provisioning_ContainerService_Generated_ListOfManagedClusterAgentPoolProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/aspire-hosting-azure-provisioning-containerservice-generated-listofmanagedclusteragentpoolprofileproxy.md) `get - set` -- Gets or sets the AgentPoolProfiles provisioning property.
- `apiServerAccessProfile`: [ManagedClusterApiServerAccessProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusterapiserveraccessprofileproxy.md) `get - set` -- Gets or sets the ApiServerAccessProfile provisioning property.
- `autoScalerProfile`: [ManagedClusterAutoScalerProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusterautoscalerprofileproxy.md) `get - set` -- Gets or sets the AutoScalerProfile provisioning property.
- `autoUpgradeProfile`: [ManagedClusterAutoUpgradeProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusterautoupgradeprofileproxy.md) `get - set` -- Gets or sets the AutoUpgradeProfile provisioning property.
- `azureMonitorProfile`: [ManagedClusterAzureMonitorProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusterazuremonitorprofileproxy.md) `get - set` -- Gets or sets the AzureMonitorProfile provisioning property.
- `azurePortalFqdn`: `BicepValueProxy | string` `get` -- Gets the AzurePortalFqdn provisioning property.
- `bootstrapProfile`: [ManagedClusterBootstrapProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusterbootstrapprofileproxy.md) `get - set` -- Gets or sets the BootstrapProfile provisioning property.
- `clusterIdentity`: [ManagedClusterIdentityProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusteridentityproxy.md) `get - set` -- Gets or sets the ClusterIdentity provisioning property.
- `currentKubernetesVersion`: `BicepValueProxy | string` `get` -- Gets the CurrentKubernetesVersion provisioning property.
- `diskEncryptionSetId`: `BicepValueProxy` `get - set` -- Gets or sets the DiskEncryptionSetId provisioning property.
- `dnsPrefix`: `BicepValueProxy | string` `get - set` -- Gets or sets the DnsPrefix provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `extendedLocation`: [ContainerServiceExtendedAzureLocationProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerserviceextendedazurelocationproxy.md) `get - set` -- Gets or sets the ExtendedLocation provisioning property.
- `fqdn`: `BicepValueProxy | string` `get` -- Gets the Fqdn provisioning property.
- `fqdnSubdomain`: `BicepValueProxy | string` `get - set` -- Gets or sets the FqdnSubdomain provisioning property.
- `hostedSystemProfile`: [ManagedClusterHostedSystemProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusterhostedsystemprofileproxy.md) `get - set` -- Gets or sets the HostedSystemProfile provisioning property.
- `httpProxyConfig`: [ManagedClusterHttpProxyConfigProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusterhttpproxyconfigproxy.md) `get - set` -- Gets or sets the HttpProxyConfig provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `identityProfile`: [Aspire_Hosting_Azure_Provisioning_ContainerService_Generated_DictionaryOfContainerServiceUserAssignedIdentityProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/aspire-hosting-azure-provisioning-containerservice-generated-dictionaryofcontainerserviceuserassignedidentityproxy.md) `get - set` -- Gets or sets the IdentityProfile provisioning property.
- `ingressProfile`: [ManagedClusterIngressProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusteringressprofileproxy.md) `get - set` -- Gets or sets the IngressProfile provisioning property.
- `isAIToolchainOperatorEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsAIToolchainOperatorEnabled provisioning property.
- `isFipsEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsFipsEnabled provisioning property.
- `isLocalAccountsDisabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsLocalAccountsDisabled provisioning property.
- `isRbacEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsRbacEnabled provisioning property.
- `kind`: `BicepValueProxy | string` `get - set` -- Gets or sets the Kind provisioning property.
- `kubernetesVersion`: `BicepValueProxy | string` `get - set` -- Gets or sets the KubernetesVersion provisioning property.
- `linuxProfile`: [ContainerServiceLinuxProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicelinuxprofileproxy.md) `get - set` -- Gets or sets the LinuxProfile provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `maxAgentPools`: `BicepValueProxy | number` `get` -- Gets the MaxAgentPools provisioning property.
- `metricsIsCostAnalysisEnabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the MetricsIsCostAnalysisEnabled provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `networkProfile`: [ContainerServiceNetworkProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicenetworkprofileproxy.md) `get - set` -- Gets or sets the NetworkProfile provisioning property.
- `nodeProvisioningProfile`: [ManagedClusterNodeProvisioningProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusternodeprovisioningprofileproxy.md) `get - set` -- Gets or sets the NodeProvisioningProfile provisioning property.
- `nodeResourceGroup`: `BicepValueProxy | string` `get - set` -- Gets or sets the NodeResourceGroup provisioning property.
- `nodeResourceGroupRestrictionLevel`: `BicepValueProxy | ManagedClusterNodeResourceGroupRestrictionLevel` `get - set` -- Gets or sets the NodeResourceGroupRestrictionLevel provisioning property.
- `oidcIssuerProfile`: [ManagedClusterOidcIssuerProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusteroidcissuerprofileproxy.md) `get - set` -- Gets or sets the OidcIssuerProfile provisioning property.
- `podIdentityProfile`: [ManagedClusterPodIdentityProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusterpodidentityprofileproxy.md) `get - set` -- Gets or sets the PodIdentityProfile provisioning property.
- `powerStateCode`: `BicepValueProxy | ContainerServiceStateCode` `get` -- Gets the PowerStateCode provisioning property.
- `privateFqdn`: `BicepValueProxy | string` `get` -- Gets the PrivateFqdn provisioning property.
- `privateLinkResources`: [Aspire_Hosting_Azure_Provisioning_ContainerService_Generated_ListOfContainerServicePrivateLinkResourceDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/aspire-hosting-azure-provisioning-containerservice-generated-listofcontainerserviceprivatelinkresourcedataproxy.md) `get - set` -- Gets or sets the PrivateLinkResources provisioning property.
- `provisioningState`: `BicepValueProxy | string` `get` -- Gets the ProvisioningState provisioning property.
- `publicNetworkAccess`: `BicepValueProxy | ContainerServicePublicNetworkAccess` `get - set` -- Gets or sets the PublicNetworkAccess provisioning property.
- `resourceId`: `BicepValueProxy` `get` -- Gets the ResourceId provisioning property.
- `securityProfile`: [ManagedClusterSecurityProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclustersecurityprofileproxy.md) `get - set` -- Gets or sets the SecurityProfile provisioning property.
- `serviceMeshProfile`: [ServiceMeshProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/servicemeshprofileproxy.md) `get - set` -- Gets or sets the ServiceMeshProfile provisioning property.
- `servicePrincipalProfile`: [ManagedClusterServicePrincipalProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusterserviceprincipalprofileproxy.md) `get - set` -- Gets or sets the ServicePrincipalProfile provisioning property.
- `sku`: [ManagedClusterSkuProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusterskuproxy.md) `get - set` -- Gets or sets the Sku provisioning property.
- `statusProvisioningError`: `BicepValueProxy` `get` -- Gets the StatusProvisioningError provisioning property.
- `storageProfile`: [ManagedClusterStorageProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusterstorageprofileproxy.md) `get - set` -- Gets or sets the StorageProfile provisioning property.
- `supportPlan`: `BicepValueProxy | KubernetesSupportPlan` `get - set` -- Gets or sets the SupportPlan provisioning property.
- `systemData`: [ContainerServiceSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicesystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_ContainerService_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/aspire-hosting-azure-provisioning-containerservice-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.
- `upgradeOverrideSettings`: [UpgradeOverrideSettingsProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/upgradeoverridesettingsproxy.md) `get - set` -- Gets or sets the UpgradeOverrideSettings provisioning property.
- `upstreamSchedulerConfigMode`: `BicepValueProxy | SchedulerConfigMode` `get - set` -- Gets or sets the UpstreamSchedulerConfigMode provisioning property.
- `windowsProfile`: [ManagedClusterWindowsProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusterwindowsprofileproxy.md) `get - set` -- Gets or sets the WindowsProfile provisioning property.
- `workloadAutoScalerProfile`: [ManagedClusterWorkloadAutoScalerProfileProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/managedclusterworkloadautoscalerprofileproxy.md) `get - set` -- Gets or sets the WorkloadAutoScalerProfile provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearDiskEncryptionSetId](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/cleardiskencryptionsetid.md) -- `method` -- Clears the DiskEncryptionSetId provisioning property.
    ```typescript
  clearDiskEncryptionSetId(): void
  ```
- [clearDnsPrefix](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/cleardnsprefix.md) -- `method` -- Clears the DnsPrefix provisioning property.
    ```typescript
  clearDnsPrefix(): void
  ```
- [clearFqdnSubdomain](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/clearfqdnsubdomain.md) -- `method` -- Clears the FqdnSubdomain provisioning property.
    ```typescript
  clearFqdnSubdomain(): void
  ```
- [clearIsAIToolchainOperatorEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/clearisaitoolchainoperatorenabled.md) -- `method` -- Clears the IsAIToolchainOperatorEnabled provisioning property.
    ```typescript
  clearIsAIToolchainOperatorEnabled(): void
  ```
- [clearIsFipsEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/clearisfipsenabled.md) -- `method` -- Clears the IsFipsEnabled provisioning property.
    ```typescript
  clearIsFipsEnabled(): void
  ```
- [clearIsLocalAccountsDisabled](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/clearislocalaccountsdisabled.md) -- `method` -- Clears the IsLocalAccountsDisabled provisioning property.
    ```typescript
  clearIsLocalAccountsDisabled(): void
  ```
- [clearIsRbacEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/clearisrbacenabled.md) -- `method` -- Clears the IsRbacEnabled provisioning property.
    ```typescript
  clearIsRbacEnabled(): void
  ```
- [clearKind](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/clearkind.md) -- `method` -- Clears the Kind provisioning property.
    ```typescript
  clearKind(): void
  ```
- [clearKubernetesVersion](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/clearkubernetesversion.md) -- `method` -- Clears the KubernetesVersion provisioning property.
    ```typescript
  clearKubernetesVersion(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearMetricsIsCostAnalysisEnabled](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/clearmetricsiscostanalysisenabled.md) -- `method` -- Clears the MetricsIsCostAnalysisEnabled provisioning property.
    ```typescript
  clearMetricsIsCostAnalysisEnabled(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearNodeResourceGroup](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/clearnoderesourcegroup.md) -- `method` -- Clears the NodeResourceGroup provisioning property.
    ```typescript
  clearNodeResourceGroup(): void
  ```
- [clearNodeResourceGroupRestrictionLevel](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/clearnoderesourcegrouprestrictionlevel.md) -- `method` -- Clears the NodeResourceGroupRestrictionLevel provisioning property.
    ```typescript
  clearNodeResourceGroupRestrictionLevel(): void
  ```
- [clearPublicNetworkAccess](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/clearpublicnetworkaccess.md) -- `method` -- Clears the PublicNetworkAccess provisioning property.
    ```typescript
  clearPublicNetworkAccess(): void
  ```
- [clearSupportPlan](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/clearsupportplan.md) -- `method` -- Clears the SupportPlan provisioning property.
    ```typescript
  clearSupportPlan(): void
  ```
- [clearUpstreamSchedulerConfigMode](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/clearupstreamschedulerconfigmode.md) -- `method` -- Clears the UpstreamSchedulerConfigMode provisioning property.
    ```typescript
  clearUpstreamSchedulerConfigMode(): void
  ```
- [createRoleAssignment](/reference/api/typescript/aspire.hosting.azure.provisioning.containerservice/containerservicemanagedclusterproxy/createroleassignment.md) -- `method` -- Invokes CreateRoleAssignment on the ContainerServiceManagedCluster provisioning model.
    ```typescript
  createRoleAssignment(role: ContainerServiceBuiltInRoleProxy, principalType: BicepValueProxy | RoleManagementPrincipalType, principalId: BicepValueProxy | guid, bicepIdentifierSuffix: string): ContainerServiceRoleAssignmentProxy
  ```
