ManagedClusterInner Class

public final class ManagedClusterInner
extends Resource

Managed cluster.

Constructor Summary

Constructor Description
ManagedClusterInner()

Creates an instance of ManagedClusterInner class.

Method Summary

Modifier and Type Method and Description
ManagedClusterAadProfile aadProfile()

Get the aadProfile property: AADProfile specifies attributes for Azure Active Directory integration.

Map<String,ManagedClusterAddonProfile> addonProfiles()

Get the addonProfiles property: The profile of managed cluster add-on.

List<ManagedClusterAgentPoolProfile> agentPoolProfiles()

Get the agentPoolProfiles property: The agent pool properties.

ManagedClusterApiServerAccessProfile apiServerAccessProfile()

Get the apiServerAccessProfile property: The access profile for managed cluster API server.

ManagedClusterPropertiesAutoScalerProfile autoScalerProfile()

Get the autoScalerProfile property: Parameters to be applied to the cluster-autoscaler when enabled.

ManagedClusterAutoUpgradeProfile autoUpgradeProfile()

Get the autoUpgradeProfile property: The auto upgrade configuration.

ManagedClusterAzureMonitorProfile azureMonitorProfile()

Get the azureMonitorProfile property: Azure Monitor addon profiles for monitoring the managed cluster.

String azurePortalFqdn()

Get the azurePortalFqdn property: The special FQDN used by the Azure Portal to access the Managed Cluster.

String currentKubernetesVersion()

Get the currentKubernetesVersion property: The version of Kubernetes the Managed Cluster is running.

Boolean disableLocalAccounts()

Get the disableLocalAccounts property: If local accounts should be disabled on the Managed Cluster.

String diskEncryptionSetId()

Get the diskEncryptionSetId property: The Resource ID of the disk encryption set to use for enabling encryption at rest.

String dnsPrefix()

Get the dnsPrefix property: The DNS prefix of the Managed Cluster.

Boolean enablePodSecurityPolicy()

Get the enablePodSecurityPolicy property: (DEPRECATED) Whether to enable Kubernetes pod security policy (preview).

Boolean enableRbac()

Get the enableRbac property: Whether to enable Kubernetes Role-Based Access Control.

ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the Virtual Machine.

String fqdn()

Get the fqdn property: The FQDN of the master pool.

String fqdnSubdomain()

Get the fqdnSubdomain property: The FQDN subdomain of the private cluster with custom private dns zone.

ManagedClusterHttpProxyConfig httpProxyConfig()

Get the httpProxyConfig property: Configurations for provisioning the cluster with HTTP proxy servers.

ManagedClusterIdentity identity()

Get the identity property: The identity of the managed cluster, if configured.

Map<String,UserAssignedIdentity> identityProfile()

Get the identityProfile property: Identities associated with the cluster.

ManagedClusterIngressProfile ingressProfile()

Get the ingressProfile property: Ingress profile for the managed cluster.

String kubernetesVersion()

Get the kubernetesVersion property: The version of Kubernetes specified by the user.

ContainerServiceLinuxProfile linuxProfile()

Get the linuxProfile property: The profile for Linux VMs in the Managed Cluster.

Integer maxAgentPools()

Get the maxAgentPools property: The max number of agent pools for the managed cluster.

ContainerServiceNetworkProfile networkProfile()

Get the networkProfile property: The network configuration profile.

String nodeResourceGroup()

Get the nodeResourceGroup property: The name of the resource group containing agent pool nodes.

ManagedClusterOidcIssuerProfile oidcIssuerProfile()

Get the oidcIssuerProfile property: The OIDC issuer profile of the Managed Cluster.

ManagedClusterPodIdentityProfile podIdentityProfile()

Get the podIdentityProfile property: The pod identity profile of the Managed Cluster.

PowerState powerState()

Get the powerState property: The Power State of the cluster.

String privateFqdn()

Get the privateFqdn property: The FQDN of private cluster.

List<PrivateLinkResourceInner> privateLinkResources()

Get the privateLinkResources property: Private link resources associated with the cluster.

String provisioningState()

Get the provisioningState property: The current provisioning state.

PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: PublicNetworkAccess of the managedCluster Allow or deny public network access for AKS.

String resourceUid()

Get the resourceUid property: The resourceUID uniquely identifies ManagedClusters that reuse ARM ResourceIds (i.e: create, delete, create sequence).

ManagedClusterSecurityProfile securityProfile()

Get the securityProfile property: Security profile for the managed cluster.

ServiceMeshProfile serviceMeshProfile()

Get the serviceMeshProfile property: Service mesh profile for a managed cluster.

ManagedClusterServicePrincipalProfile servicePrincipalProfile()

Get the servicePrincipalProfile property: Information about a service principal identity for the cluster to use for manipulating Azure APIs.

ManagedClusterSku sku()

Get the sku property: The managed cluster SKU.

ManagedClusterStorageProfile storageProfile()

Get the storageProfile property: Storage profile for the managed cluster.

KubernetesSupportPlan supportPlan()

Get the supportPlan property: The support plan for the Managed Cluster.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

ClusterUpgradeSettings upgradeSettings()

Get the upgradeSettings property: Settings for upgrading a cluster.

void validate()

Validates the instance.

ManagedClusterWindowsProfile windowsProfile()

Get the windowsProfile property: The profile for Windows VMs in the Managed Cluster.

ManagedClusterInner withAadProfile(ManagedClusterAadProfile aadProfile)

Set the aadProfile property: AADProfile specifies attributes for Azure Active Directory integration.

ManagedClusterInner withAddonProfiles(Map<String,ManagedClusterAddonProfile> addonProfiles)

Set the addonProfiles property: The profile of managed cluster add-on.

ManagedClusterInner withAgentPoolProfiles(List<ManagedClusterAgentPoolProfile> agentPoolProfiles)

Set the agentPoolProfiles property: The agent pool properties.

ManagedClusterInner withApiServerAccessProfile(ManagedClusterApiServerAccessProfile apiServerAccessProfile)

Set the apiServerAccessProfile property: The access profile for managed cluster API server.

ManagedClusterInner withAutoScalerProfile(ManagedClusterPropertiesAutoScalerProfile autoScalerProfile)

Set the autoScalerProfile property: Parameters to be applied to the cluster-autoscaler when enabled.

ManagedClusterInner withAutoUpgradeProfile(ManagedClusterAutoUpgradeProfile autoUpgradeProfile)

Set the autoUpgradeProfile property: The auto upgrade configuration.

ManagedClusterInner withAzureMonitorProfile(ManagedClusterAzureMonitorProfile azureMonitorProfile)

Set the azureMonitorProfile property: Azure Monitor addon profiles for monitoring the managed cluster.

ManagedClusterInner withDisableLocalAccounts(Boolean disableLocalAccounts)

Set the disableLocalAccounts property: If local accounts should be disabled on the Managed Cluster.

ManagedClusterInner withDiskEncryptionSetId(String diskEncryptionSetId)

Set the diskEncryptionSetId property: The Resource ID of the disk encryption set to use for enabling encryption at rest.

ManagedClusterInner withDnsPrefix(String dnsPrefix)

Set the dnsPrefix property: The DNS prefix of the Managed Cluster.

ManagedClusterInner withEnablePodSecurityPolicy(Boolean enablePodSecurityPolicy)

Set the enablePodSecurityPolicy property: (DEPRECATED) Whether to enable Kubernetes pod security policy (preview).

ManagedClusterInner withEnableRbac(Boolean enableRbac)

Set the enableRbac property: Whether to enable Kubernetes Role-Based Access Control.

ManagedClusterInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the Virtual Machine.

ManagedClusterInner withFqdnSubdomain(String fqdnSubdomain)

Set the fqdnSubdomain property: The FQDN subdomain of the private cluster with custom private dns zone.

ManagedClusterInner withHttpProxyConfig(ManagedClusterHttpProxyConfig httpProxyConfig)

Set the httpProxyConfig property: Configurations for provisioning the cluster with HTTP proxy servers.

ManagedClusterInner withIdentity(ManagedClusterIdentity identity)

Set the identity property: The identity of the managed cluster, if configured.

ManagedClusterInner withIdentityProfile(Map<String,UserAssignedIdentity> identityProfile)

Set the identityProfile property: Identities associated with the cluster.

ManagedClusterInner withIngressProfile(ManagedClusterIngressProfile ingressProfile)

Set the ingressProfile property: Ingress profile for the managed cluster.

ManagedClusterInner withKubernetesVersion(String kubernetesVersion)

Set the kubernetesVersion property: The version of Kubernetes specified by the user.

ManagedClusterInner withLinuxProfile(ContainerServiceLinuxProfile linuxProfile)

Set the linuxProfile property: The profile for Linux VMs in the Managed Cluster.

ManagedClusterInner withLocation(String location)
ManagedClusterInner withNetworkProfile(ContainerServiceNetworkProfile networkProfile)

Set the networkProfile property: The network configuration profile.

ManagedClusterInner withNodeResourceGroup(String nodeResourceGroup)

Set the nodeResourceGroup property: The name of the resource group containing agent pool nodes.

ManagedClusterInner withOidcIssuerProfile(ManagedClusterOidcIssuerProfile oidcIssuerProfile)

Set the oidcIssuerProfile property: The OIDC issuer profile of the Managed Cluster.

ManagedClusterInner withPodIdentityProfile(ManagedClusterPodIdentityProfile podIdentityProfile)

Set the podIdentityProfile property: The pod identity profile of the Managed Cluster.

ManagedClusterInner withPrivateLinkResources(List<PrivateLinkResourceInner> privateLinkResources)

Set the privateLinkResources property: Private link resources associated with the cluster.

ManagedClusterInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: PublicNetworkAccess of the managedCluster Allow or deny public network access for AKS.

ManagedClusterInner withSecurityProfile(ManagedClusterSecurityProfile securityProfile)

Set the securityProfile property: Security profile for the managed cluster.

ManagedClusterInner withServiceMeshProfile(ServiceMeshProfile serviceMeshProfile)

Set the serviceMeshProfile property: Service mesh profile for a managed cluster.

ManagedClusterInner withServicePrincipalProfile(ManagedClusterServicePrincipalProfile servicePrincipalProfile)

Set the servicePrincipalProfile property: Information about a service principal identity for the cluster to use for manipulating Azure APIs.

ManagedClusterInner withSku(ManagedClusterSku sku)

Set the sku property: The managed cluster SKU.

ManagedClusterInner withStorageProfile(ManagedClusterStorageProfile storageProfile)

Set the storageProfile property: Storage profile for the managed cluster.

ManagedClusterInner withSupportPlan(KubernetesSupportPlan supportPlan)

Set the supportPlan property: The support plan for the Managed Cluster.

ManagedClusterInner withTags(Map<String,String> tags)
ManagedClusterInner withUpgradeSettings(ClusterUpgradeSettings upgradeSettings)

Set the upgradeSettings property: Settings for upgrading a cluster.

ManagedClusterInner withWindowsProfile(ManagedClusterWindowsProfile windowsProfile)

Set the windowsProfile property: The profile for Windows VMs in the Managed Cluster.

ManagedClusterInner withWorkloadAutoScalerProfile(ManagedClusterWorkloadAutoScalerProfile workloadAutoScalerProfile)

Set the workloadAutoScalerProfile property: Workload Auto-scaler profile for the managed cluster.

ManagedClusterWorkloadAutoScalerProfile workloadAutoScalerProfile()

Get the workloadAutoScalerProfile property: Workload Auto-scaler profile for the managed cluster.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterInner

public ManagedClusterInner()

Creates an instance of ManagedClusterInner class.

Method Details

aadProfile

public ManagedClusterAadProfile aadProfile()

Get the aadProfile property: AADProfile specifies attributes for Azure Active Directory integration. The Azure Active Directory configuration.

Returns:

the aadProfile value.

addonProfiles

public Map addonProfiles()

Get the addonProfiles property: The profile of managed cluster add-on.

Returns:

the addonProfiles value.

agentPoolProfiles

public List agentPoolProfiles()

Get the agentPoolProfiles property: The agent pool properties.

Returns:

the agentPoolProfiles value.

apiServerAccessProfile

public ManagedClusterApiServerAccessProfile apiServerAccessProfile()

Get the apiServerAccessProfile property: The access profile for managed cluster API server.

Returns:

the apiServerAccessProfile value.

autoScalerProfile

public ManagedClusterPropertiesAutoScalerProfile autoScalerProfile()

Get the autoScalerProfile property: Parameters to be applied to the cluster-autoscaler when enabled.

Returns:

the autoScalerProfile value.

autoUpgradeProfile

public ManagedClusterAutoUpgradeProfile autoUpgradeProfile()

Get the autoUpgradeProfile property: The auto upgrade configuration.

Returns:

the autoUpgradeProfile value.

azureMonitorProfile

public ManagedClusterAzureMonitorProfile azureMonitorProfile()

Get the azureMonitorProfile property: Azure Monitor addon profiles for monitoring the managed cluster.

Returns:

the azureMonitorProfile value.

azurePortalFqdn

public String azurePortalFqdn()

Get the azurePortalFqdn property: The special FQDN used by the Azure Portal to access the Managed Cluster. This FQDN is for use only by the Azure Portal and should not be used by other clients. The Azure Portal requires certain Cross-Origin Resource Sharing (CORS) headers to be sent in some responses, which Kubernetes APIServer doesn't handle by default. This special FQDN supports CORS, allowing the Azure Portal to function properly.

Returns:

the azurePortalFqdn value.

currentKubernetesVersion

public String currentKubernetesVersion()

Get the currentKubernetesVersion property: The version of Kubernetes the Managed Cluster is running. If kubernetesVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to it. If kubernetesVersion was <major.minor>, this field will contain the full <major.minor.patch> version being used.

Returns:

the currentKubernetesVersion value.

disableLocalAccounts

public Boolean disableLocalAccounts()

Get the disableLocalAccounts property: If local accounts should be disabled on the Managed Cluster. If set to true, getting static credentials will be disabled for this cluster. This must only be used on Managed Clusters that are AAD enabled. For more details see [disable local accounts](https://docs.microsoft.com/azure/aks/managed-aad\#disable-local-accounts-preview).

Returns:

the disableLocalAccounts value.

diskEncryptionSetId

public String diskEncryptionSetId()

Get the diskEncryptionSetId property: The Resource ID of the disk encryption set to use for enabling encryption at rest. This is of the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{encryptionSetName}'.

Returns:

the diskEncryptionSetId value.

dnsPrefix

public String dnsPrefix()

Get the dnsPrefix property: The DNS prefix of the Managed Cluster. This cannot be updated once the Managed Cluster has been created.

Returns:

the dnsPrefix value.

enablePodSecurityPolicy

public Boolean enablePodSecurityPolicy()

Get the enablePodSecurityPolicy property: (DEPRECATED) Whether to enable Kubernetes pod security policy (preview). PodSecurityPolicy was deprecated in Kubernetes v1.21, and removed from Kubernetes in v1.25. Learn more at https://aka.ms/k8s/psp and https://aka.ms/aks/psp.

Returns:

the enablePodSecurityPolicy value.

enableRbac

public Boolean enableRbac()

Get the enableRbac property: Whether to enable Kubernetes Role-Based Access Control.

Returns:

the enableRbac value.

extendedLocation

public ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the Virtual Machine.

Returns:

the extendedLocation value.

fqdn

public String fqdn()

Get the fqdn property: The FQDN of the master pool.

Returns:

the fqdn value.

fqdnSubdomain

public String fqdnSubdomain()

Get the fqdnSubdomain property: The FQDN subdomain of the private cluster with custom private dns zone. This cannot be updated once the Managed Cluster has been created.

Returns:

the fqdnSubdomain value.

httpProxyConfig

public ManagedClusterHttpProxyConfig httpProxyConfig()

Get the httpProxyConfig property: Configurations for provisioning the cluster with HTTP proxy servers.

Returns:

the httpProxyConfig value.

identity

public ManagedClusterIdentity identity()

Get the identity property: The identity of the managed cluster, if configured.

Returns:

the identity value.

identityProfile

public Map identityProfile()

Get the identityProfile property: Identities associated with the cluster.

Returns:

the identityProfile value.

ingressProfile

public ManagedClusterIngressProfile ingressProfile()

Get the ingressProfile property: Ingress profile for the managed cluster.

Returns:

the ingressProfile value.

kubernetesVersion

public String kubernetesVersion()

Get the kubernetesVersion property: The version of Kubernetes specified by the user. Both patch version <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. When you upgrade a supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details.

Returns:

the kubernetesVersion value.

linuxProfile

public ContainerServiceLinuxProfile linuxProfile()

Get the linuxProfile property: The profile for Linux VMs in the Managed Cluster.

Returns:

the linuxProfile value.

maxAgentPools

public Integer maxAgentPools()

Get the maxAgentPools property: The max number of agent pools for the managed cluster.

Returns:

the maxAgentPools value.

networkProfile

public ContainerServiceNetworkProfile networkProfile()

Get the networkProfile property: The network configuration profile.

Returns:

the networkProfile value.

nodeResourceGroup

public String nodeResourceGroup()

Get the nodeResourceGroup property: The name of the resource group containing agent pool nodes.

Returns:

the nodeResourceGroup value.

oidcIssuerProfile

public ManagedClusterOidcIssuerProfile oidcIssuerProfile()

Get the oidcIssuerProfile property: The OIDC issuer profile of the Managed Cluster.

Returns:

the oidcIssuerProfile value.

podIdentityProfile

public ManagedClusterPodIdentityProfile podIdentityProfile()

Get the podIdentityProfile property: The pod identity profile of the Managed Cluster. See [use AAD pod identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity) for more details on AAD pod identity integration.

Returns:

the podIdentityProfile value.

powerState

public PowerState powerState()

Get the powerState property: The Power State of the cluster.

Returns:

the powerState value.

privateFqdn

public String privateFqdn()

Get the privateFqdn property: The FQDN of private cluster.

Returns:

the privateFqdn value.

privateLinkResources

public List privateLinkResources()

Get the privateLinkResources property: Private link resources associated with the cluster.

Returns:

the privateLinkResources value.

provisioningState

public String provisioningState()

Get the provisioningState property: The current provisioning state.

Returns:

the provisioningState value.

publicNetworkAccess

public PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: PublicNetworkAccess of the managedCluster Allow or deny public network access for AKS.

Returns:

the publicNetworkAccess value.

resourceUid

public String resourceUid()

Get the resourceUid property: The resourceUID uniquely identifies ManagedClusters that reuse ARM ResourceIds (i.e: create, delete, create sequence).

Returns:

the resourceUid value.

securityProfile

public ManagedClusterSecurityProfile securityProfile()

Get the securityProfile property: Security profile for the managed cluster.

Returns:

the securityProfile value.

serviceMeshProfile

public ServiceMeshProfile serviceMeshProfile()

Get the serviceMeshProfile property: Service mesh profile for a managed cluster.

Returns:

the serviceMeshProfile value.

servicePrincipalProfile

public ManagedClusterServicePrincipalProfile servicePrincipalProfile()

Get the servicePrincipalProfile property: Information about a service principal identity for the cluster to use for manipulating Azure APIs.

Returns:

the servicePrincipalProfile value.

sku

public ManagedClusterSku sku()

Get the sku property: The managed cluster SKU.

Returns:

the sku value.

storageProfile

public ManagedClusterStorageProfile storageProfile()

Get the storageProfile property: Storage profile for the managed cluster.

Returns:

the storageProfile value.

supportPlan

public KubernetesSupportPlan supportPlan()

Get the supportPlan property: The support plan for the Managed Cluster. If unspecified, the default is 'KubernetesOfficial'.

Returns:

the supportPlan value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

upgradeSettings

public ClusterUpgradeSettings upgradeSettings()

Get the upgradeSettings property: Settings for upgrading a cluster.

Returns:

the upgradeSettings value.

validate

public void validate()

Validates the instance.

windowsProfile

public ManagedClusterWindowsProfile windowsProfile()

Get the windowsProfile property: The profile for Windows VMs in the Managed Cluster.

Returns:

the windowsProfile value.

withAadProfile

public ManagedClusterInner withAadProfile(ManagedClusterAadProfile aadProfile)

Set the aadProfile property: AADProfile specifies attributes for Azure Active Directory integration. The Azure Active Directory configuration.

Parameters:

aadProfile - the aadProfile value to set.

Returns:

the ManagedClusterInner object itself.

withAddonProfiles

public ManagedClusterInner withAddonProfiles(Map addonProfiles)

Set the addonProfiles property: The profile of managed cluster add-on.

Parameters:

addonProfiles - the addonProfiles value to set.

Returns:

the ManagedClusterInner object itself.

withAgentPoolProfiles

public ManagedClusterInner withAgentPoolProfiles(List agentPoolProfiles)

Set the agentPoolProfiles property: The agent pool properties.

Parameters:

agentPoolProfiles - the agentPoolProfiles value to set.

Returns:

the ManagedClusterInner object itself.

withApiServerAccessProfile

public ManagedClusterInner withApiServerAccessProfile(ManagedClusterApiServerAccessProfile apiServerAccessProfile)

Set the apiServerAccessProfile property: The access profile for managed cluster API server.

Parameters:

apiServerAccessProfile - the apiServerAccessProfile value to set.

Returns:

the ManagedClusterInner object itself.

withAutoScalerProfile

public ManagedClusterInner withAutoScalerProfile(ManagedClusterPropertiesAutoScalerProfile autoScalerProfile)

Set the autoScalerProfile property: Parameters to be applied to the cluster-autoscaler when enabled.

Parameters:

autoScalerProfile - the autoScalerProfile value to set.

Returns:

the ManagedClusterInner object itself.

withAutoUpgradeProfile

public ManagedClusterInner withAutoUpgradeProfile(ManagedClusterAutoUpgradeProfile autoUpgradeProfile)

Set the autoUpgradeProfile property: The auto upgrade configuration.

Parameters:

autoUpgradeProfile - the autoUpgradeProfile value to set.

Returns:

the ManagedClusterInner object itself.

withAzureMonitorProfile

public ManagedClusterInner withAzureMonitorProfile(ManagedClusterAzureMonitorProfile azureMonitorProfile)

Set the azureMonitorProfile property: Azure Monitor addon profiles for monitoring the managed cluster.

Parameters:

azureMonitorProfile - the azureMonitorProfile value to set.

Returns:

the ManagedClusterInner object itself.

withDisableLocalAccounts

public ManagedClusterInner withDisableLocalAccounts(Boolean disableLocalAccounts)

Set the disableLocalAccounts property: If local accounts should be disabled on the Managed Cluster. If set to true, getting static credentials will be disabled for this cluster. This must only be used on Managed Clusters that are AAD enabled. For more details see [disable local accounts](https://docs.microsoft.com/azure/aks/managed-aad\#disable-local-accounts-preview).

Parameters:

disableLocalAccounts - the disableLocalAccounts value to set.

Returns:

the ManagedClusterInner object itself.

withDiskEncryptionSetId

public ManagedClusterInner withDiskEncryptionSetId(String diskEncryptionSetId)

Set the diskEncryptionSetId property: The Resource ID of the disk encryption set to use for enabling encryption at rest. This is of the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{encryptionSetName}'.

Parameters:

diskEncryptionSetId - the diskEncryptionSetId value to set.

Returns:

the ManagedClusterInner object itself.

withDnsPrefix

public ManagedClusterInner withDnsPrefix(String dnsPrefix)

Set the dnsPrefix property: The DNS prefix of the Managed Cluster. This cannot be updated once the Managed Cluster has been created.

Parameters:

dnsPrefix - the dnsPrefix value to set.

Returns:

the ManagedClusterInner object itself.

withEnablePodSecurityPolicy

public ManagedClusterInner withEnablePodSecurityPolicy(Boolean enablePodSecurityPolicy)

Set the enablePodSecurityPolicy property: (DEPRECATED) Whether to enable Kubernetes pod security policy (preview). PodSecurityPolicy was deprecated in Kubernetes v1.21, and removed from Kubernetes in v1.25. Learn more at https://aka.ms/k8s/psp and https://aka.ms/aks/psp.

Parameters:

enablePodSecurityPolicy - the enablePodSecurityPolicy value to set.

Returns:

the ManagedClusterInner object itself.

withEnableRbac

public ManagedClusterInner withEnableRbac(Boolean enableRbac)

Set the enableRbac property: Whether to enable Kubernetes Role-Based Access Control.

Parameters:

enableRbac - the enableRbac value to set.

Returns:

the ManagedClusterInner object itself.

withExtendedLocation

public ManagedClusterInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the Virtual Machine.

Parameters:

extendedLocation - the extendedLocation value to set.

Returns:

the ManagedClusterInner object itself.

withFqdnSubdomain

public ManagedClusterInner withFqdnSubdomain(String fqdnSubdomain)

Set the fqdnSubdomain property: The FQDN subdomain of the private cluster with custom private dns zone. This cannot be updated once the Managed Cluster has been created.

Parameters:

fqdnSubdomain - the fqdnSubdomain value to set.

Returns:

the ManagedClusterInner object itself.

withHttpProxyConfig

public ManagedClusterInner withHttpProxyConfig(ManagedClusterHttpProxyConfig httpProxyConfig)

Set the httpProxyConfig property: Configurations for provisioning the cluster with HTTP proxy servers.

Parameters:

httpProxyConfig - the httpProxyConfig value to set.

Returns:

the ManagedClusterInner object itself.

withIdentity

public ManagedClusterInner withIdentity(ManagedClusterIdentity identity)

Set the identity property: The identity of the managed cluster, if configured.

Parameters:

identity - the identity value to set.

Returns:

the ManagedClusterInner object itself.

withIdentityProfile

public ManagedClusterInner withIdentityProfile(Map identityProfile)

Set the identityProfile property: Identities associated with the cluster.

Parameters:

identityProfile - the identityProfile value to set.

Returns:

the ManagedClusterInner object itself.

withIngressProfile

public ManagedClusterInner withIngressProfile(ManagedClusterIngressProfile ingressProfile)

Set the ingressProfile property: Ingress profile for the managed cluster.

Parameters:

ingressProfile - the ingressProfile value to set.

Returns:

the ManagedClusterInner object itself.

withKubernetesVersion

public ManagedClusterInner withKubernetesVersion(String kubernetesVersion)

Set the kubernetesVersion property: The version of Kubernetes specified by the user. Both patch version <major.minor.patch> (e.g. 1.20.13) and <major.minor> (e.g. 1.20) are supported. When <major.minor> is specified, the latest supported GA patch version is chosen automatically. Updating the cluster with the same <major.minor> once it has been created (e.g. 1.14.x -> 1.14) will not trigger an upgrade, even if a newer patch version is available. When you upgrade a supported AKS cluster, Kubernetes minor versions cannot be skipped. All upgrades must be performed sequentially by major version number. For example, upgrades between 1.14.x -> 1.15.x or 1.15.x -> 1.16.x are allowed, however 1.14.x -> 1.16.x is not allowed. See [upgrading an AKS cluster](https://docs.microsoft.com/azure/aks/upgrade-cluster) for more details.

Parameters:

kubernetesVersion - the kubernetesVersion value to set.

Returns:

the ManagedClusterInner object itself.

withLinuxProfile

public ManagedClusterInner withLinuxProfile(ContainerServiceLinuxProfile linuxProfile)

Set the linuxProfile property: The profile for Linux VMs in the Managed Cluster.

Parameters:

linuxProfile - the linuxProfile value to set.

Returns:

the ManagedClusterInner object itself.

withLocation

public ManagedClusterInner withLocation(String location)

Overrides:

ManagedClusterInner.withLocation(String location)

Parameters:

location

withNetworkProfile

public ManagedClusterInner withNetworkProfile(ContainerServiceNetworkProfile networkProfile)

Set the networkProfile property: The network configuration profile.

Parameters:

networkProfile - the networkProfile value to set.

Returns:

the ManagedClusterInner object itself.

withNodeResourceGroup

public ManagedClusterInner withNodeResourceGroup(String nodeResourceGroup)

Set the nodeResourceGroup property: The name of the resource group containing agent pool nodes.

Parameters:

nodeResourceGroup - the nodeResourceGroup value to set.

Returns:

the ManagedClusterInner object itself.

withOidcIssuerProfile

public ManagedClusterInner withOidcIssuerProfile(ManagedClusterOidcIssuerProfile oidcIssuerProfile)

Set the oidcIssuerProfile property: The OIDC issuer profile of the Managed Cluster.

Parameters:

oidcIssuerProfile - the oidcIssuerProfile value to set.

Returns:

the ManagedClusterInner object itself.

withPodIdentityProfile

public ManagedClusterInner withPodIdentityProfile(ManagedClusterPodIdentityProfile podIdentityProfile)

Set the podIdentityProfile property: The pod identity profile of the Managed Cluster. See [use AAD pod identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity) for more details on AAD pod identity integration.

Parameters:

podIdentityProfile - the podIdentityProfile value to set.

Returns:

the ManagedClusterInner object itself.

withPrivateLinkResources

public ManagedClusterInner withPrivateLinkResources(List privateLinkResources)

Set the privateLinkResources property: Private link resources associated with the cluster.

Parameters:

privateLinkResources - the privateLinkResources value to set.

Returns:

the ManagedClusterInner object itself.

withPublicNetworkAccess

public ManagedClusterInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: PublicNetworkAccess of the managedCluster Allow or deny public network access for AKS.

Parameters:

publicNetworkAccess - the publicNetworkAccess value to set.

Returns:

the ManagedClusterInner object itself.

withSecurityProfile

public ManagedClusterInner withSecurityProfile(ManagedClusterSecurityProfile securityProfile)

Set the securityProfile property: Security profile for the managed cluster.

Parameters:

securityProfile - the securityProfile value to set.

Returns:

the ManagedClusterInner object itself.

withServiceMeshProfile

public ManagedClusterInner withServiceMeshProfile(ServiceMeshProfile serviceMeshProfile)

Set the serviceMeshProfile property: Service mesh profile for a managed cluster.

Parameters:

serviceMeshProfile - the serviceMeshProfile value to set.

Returns:

the ManagedClusterInner object itself.

withServicePrincipalProfile

public ManagedClusterInner withServicePrincipalProfile(ManagedClusterServicePrincipalProfile servicePrincipalProfile)

Set the servicePrincipalProfile property: Information about a service principal identity for the cluster to use for manipulating Azure APIs.

Parameters:

servicePrincipalProfile - the servicePrincipalProfile value to set.

Returns:

the ManagedClusterInner object itself.

withSku

public ManagedClusterInner withSku(ManagedClusterSku sku)

Set the sku property: The managed cluster SKU.

Parameters:

sku - the sku value to set.

Returns:

the ManagedClusterInner object itself.

withStorageProfile

public ManagedClusterInner withStorageProfile(ManagedClusterStorageProfile storageProfile)

Set the storageProfile property: Storage profile for the managed cluster.

Parameters:

storageProfile - the storageProfile value to set.

Returns:

the ManagedClusterInner object itself.

withSupportPlan

public ManagedClusterInner withSupportPlan(KubernetesSupportPlan supportPlan)

Set the supportPlan property: The support plan for the Managed Cluster. If unspecified, the default is 'KubernetesOfficial'.

Parameters:

supportPlan - the supportPlan value to set.

Returns:

the ManagedClusterInner object itself.

withTags

public ManagedClusterInner withTags(Map tags)

Overrides:

ManagedClusterInner.withTags(Map<String,String> tags)

Parameters:

tags

withUpgradeSettings

public ManagedClusterInner withUpgradeSettings(ClusterUpgradeSettings upgradeSettings)

Set the upgradeSettings property: Settings for upgrading a cluster.

Parameters:

upgradeSettings - the upgradeSettings value to set.

Returns:

the ManagedClusterInner object itself.

withWindowsProfile

public ManagedClusterInner withWindowsProfile(ManagedClusterWindowsProfile windowsProfile)

Set the windowsProfile property: The profile for Windows VMs in the Managed Cluster.

Parameters:

windowsProfile - the windowsProfile value to set.

Returns:

the ManagedClusterInner object itself.

withWorkloadAutoScalerProfile

public ManagedClusterInner withWorkloadAutoScalerProfile(ManagedClusterWorkloadAutoScalerProfile workloadAutoScalerProfile)

Set the workloadAutoScalerProfile property: Workload Auto-scaler profile for the managed cluster.

Parameters:

workloadAutoScalerProfile - the workloadAutoScalerProfile value to set.

Returns:

the ManagedClusterInner object itself.

workloadAutoScalerProfile

public ManagedClusterWorkloadAutoScalerProfile workloadAutoScalerProfile()

Get the workloadAutoScalerProfile property: Workload Auto-scaler profile for the managed cluster.

Returns:

the workloadAutoScalerProfile value.

Applies to