Share via


ManagedCluster Constructors

Definition

Overloads

ManagedCluster()

Initializes a new instance of the ManagedCluster class.

ManagedCluster(String, String, String, String, SystemData, IDictionary<String, String>, ManagedClusterSKU, ExtendedLocation, ManagedClusterIdentity, PowerState, String, Nullable<Int32>, String, String, String, String, String, String, String, IList<ManagedClusterAgentPoolProfile>, ContainerServiceLinuxProfile, ManagedClusterWindowsProfile, ManagedClusterServicePrincipalProfile, IDictionary<String,ManagedClusterAddonProfile>, ManagedClusterPodIdentityProfile, ManagedClusterOidcIssuerProfile, String, Nullable<Boolean>, String, Nullable<Boolean>, ContainerServiceNetworkProfile, ManagedClusterAADProfile, ManagedClusterAutoUpgradeProfile, ManagedClusterPropertiesAutoScalerProfile, ManagedClusterAPIServerAccessProfile, String, IDictionary<String, UserAssignedIdentity>, IList<PrivateLinkResource>, Nullable<Boolean>, ManagedClusterHttpProxyConfig, ManagedClusterSecurityProfile, ManagedClusterStorageProfile, String, ManagedClusterWorkloadAutoScalerProfile, ManagedClusterAzureMonitorProfile)

Initializes a new instance of the ManagedCluster class.

ManagedCluster()

Initializes a new instance of the ManagedCluster class.

public ManagedCluster ();
Public Sub New ()

Applies to

ManagedCluster(String, String, String, String, SystemData, IDictionary<String, String>, ManagedClusterSKU, ExtendedLocation, ManagedClusterIdentity, PowerState, String, Nullable<Int32>, String, String, String, String, String, String, String, IList<ManagedClusterAgentPoolProfile>, ContainerServiceLinuxProfile, ManagedClusterWindowsProfile, ManagedClusterServicePrincipalProfile, IDictionary<String,ManagedClusterAddonProfile>, ManagedClusterPodIdentityProfile, ManagedClusterOidcIssuerProfile, String, Nullable<Boolean>, String, Nullable<Boolean>, ContainerServiceNetworkProfile, ManagedClusterAADProfile, ManagedClusterAutoUpgradeProfile, ManagedClusterPropertiesAutoScalerProfile, ManagedClusterAPIServerAccessProfile, String, IDictionary<String, UserAssignedIdentity>, IList<PrivateLinkResource>, Nullable<Boolean>, ManagedClusterHttpProxyConfig, ManagedClusterSecurityProfile, ManagedClusterStorageProfile, String, ManagedClusterWorkloadAutoScalerProfile, ManagedClusterAzureMonitorProfile)

Initializes a new instance of the ManagedCluster class.

public ManagedCluster (string location, string id = default, string name = default, string type = default, Microsoft.Azure.Management.ContainerService.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterSKU sku = default, Microsoft.Azure.Management.ContainerService.Models.ExtendedLocation extendedLocation = default, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterIdentity identity = default, Microsoft.Azure.Management.ContainerService.Models.PowerState powerState = default, string provisioningState = default, int? maxAgentPools = default, string kubernetesVersion = default, string currentKubernetesVersion = default, string dnsPrefix = default, string fqdnSubdomain = default, string fqdn = default, string privateFqdn = default, string azurePortalFqdn = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerService.Models.ManagedClusterAgentPoolProfile> agentPoolProfiles = default, Microsoft.Azure.Management.ContainerService.Models.ContainerServiceLinuxProfile linuxProfile = default, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterWindowsProfile windowsProfile = default, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterServicePrincipalProfile servicePrincipalProfile = default, System.Collections.Generic.IDictionary<string,Microsoft.Azure.Management.ContainerService.Models.ManagedClusterAddonProfile> addonProfiles = default, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterPodIdentityProfile podIdentityProfile = default, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterOidcIssuerProfile oidcIssuerProfile = default, string nodeResourceGroup = default, bool? enableRbac = default, string supportPlan = default, bool? enablePodSecurityPolicy = default, Microsoft.Azure.Management.ContainerService.Models.ContainerServiceNetworkProfile networkProfile = default, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterAADProfile aadProfile = default, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterAutoUpgradeProfile autoUpgradeProfile = default, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterPropertiesAutoScalerProfile autoScalerProfile = default, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterAPIServerAccessProfile apiServerAccessProfile = default, string diskEncryptionSetId = default, System.Collections.Generic.IDictionary<string,Microsoft.Azure.Management.ContainerService.Models.UserAssignedIdentity> identityProfile = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerService.Models.PrivateLinkResource> privateLinkResources = default, bool? disableLocalAccounts = default, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterHttpProxyConfig httpProxyConfig = default, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterSecurityProfile securityProfile = default, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterStorageProfile storageProfile = default, string publicNetworkAccess = default, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterWorkloadAutoScalerProfile workloadAutoScalerProfile = default, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterAzureMonitorProfile azureMonitorProfile = default);
new Microsoft.Azure.Management.ContainerService.Models.ManagedCluster : string * string * string * string * Microsoft.Azure.Management.ContainerService.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.ContainerService.Models.ManagedClusterSKU * Microsoft.Azure.Management.ContainerService.Models.ExtendedLocation * Microsoft.Azure.Management.ContainerService.Models.ManagedClusterIdentity * Microsoft.Azure.Management.ContainerService.Models.PowerState * string * Nullable<int> * string * string * string * string * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerService.Models.ManagedClusterAgentPoolProfile> * Microsoft.Azure.Management.ContainerService.Models.ContainerServiceLinuxProfile * Microsoft.Azure.Management.ContainerService.Models.ManagedClusterWindowsProfile * Microsoft.Azure.Management.ContainerService.Models.ManagedClusterServicePrincipalProfile * System.Collections.Generic.IDictionary<string, Microsoft.Azure.Management.ContainerService.Models.ManagedClusterAddonProfile> * Microsoft.Azure.Management.ContainerService.Models.ManagedClusterPodIdentityProfile * Microsoft.Azure.Management.ContainerService.Models.ManagedClusterOidcIssuerProfile * string * Nullable<bool> * string * Nullable<bool> * Microsoft.Azure.Management.ContainerService.Models.ContainerServiceNetworkProfile * Microsoft.Azure.Management.ContainerService.Models.ManagedClusterAADProfile * Microsoft.Azure.Management.ContainerService.Models.ManagedClusterAutoUpgradeProfile * Microsoft.Azure.Management.ContainerService.Models.ManagedClusterPropertiesAutoScalerProfile * Microsoft.Azure.Management.ContainerService.Models.ManagedClusterAPIServerAccessProfile * string * System.Collections.Generic.IDictionary<string, Microsoft.Azure.Management.ContainerService.Models.UserAssignedIdentity> * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerService.Models.PrivateLinkResource> * Nullable<bool> * Microsoft.Azure.Management.ContainerService.Models.ManagedClusterHttpProxyConfig * Microsoft.Azure.Management.ContainerService.Models.ManagedClusterSecurityProfile * Microsoft.Azure.Management.ContainerService.Models.ManagedClusterStorageProfile * string * Microsoft.Azure.Management.ContainerService.Models.ManagedClusterWorkloadAutoScalerProfile * Microsoft.Azure.Management.ContainerService.Models.ManagedClusterAzureMonitorProfile -> Microsoft.Azure.Management.ContainerService.Models.ManagedCluster
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional sku As ManagedClusterSKU = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional identity As ManagedClusterIdentity = Nothing, Optional powerState As PowerState = Nothing, Optional provisioningState As String = Nothing, Optional maxAgentPools As Nullable(Of Integer) = Nothing, Optional kubernetesVersion As String = Nothing, Optional currentKubernetesVersion As String = Nothing, Optional dnsPrefix As String = Nothing, Optional fqdnSubdomain As String = Nothing, Optional fqdn As String = Nothing, Optional privateFqdn As String = Nothing, Optional azurePortalFqdn As String = Nothing, Optional agentPoolProfiles As IList(Of ManagedClusterAgentPoolProfile) = Nothing, Optional linuxProfile As ContainerServiceLinuxProfile = Nothing, Optional windowsProfile As ManagedClusterWindowsProfile = Nothing, Optional servicePrincipalProfile As ManagedClusterServicePrincipalProfile = Nothing, Optional addonProfiles As IDictionary(Of String, ManagedClusterAddonProfile) = Nothing, Optional podIdentityProfile As ManagedClusterPodIdentityProfile = Nothing, Optional oidcIssuerProfile As ManagedClusterOidcIssuerProfile = Nothing, Optional nodeResourceGroup As String = Nothing, Optional enableRbac As Nullable(Of Boolean) = Nothing, Optional supportPlan As String = Nothing, Optional enablePodSecurityPolicy As Nullable(Of Boolean) = Nothing, Optional networkProfile As ContainerServiceNetworkProfile = Nothing, Optional aadProfile As ManagedClusterAADProfile = Nothing, Optional autoUpgradeProfile As ManagedClusterAutoUpgradeProfile = Nothing, Optional autoScalerProfile As ManagedClusterPropertiesAutoScalerProfile = Nothing, Optional apiServerAccessProfile As ManagedClusterAPIServerAccessProfile = Nothing, Optional diskEncryptionSetId As String = Nothing, Optional identityProfile As IDictionary(Of String, UserAssignedIdentity) = Nothing, Optional privateLinkResources As IList(Of PrivateLinkResource) = Nothing, Optional disableLocalAccounts As Nullable(Of Boolean) = Nothing, Optional httpProxyConfig As ManagedClusterHttpProxyConfig = Nothing, Optional securityProfile As ManagedClusterSecurityProfile = Nothing, Optional storageProfile As ManagedClusterStorageProfile = Nothing, Optional publicNetworkAccess As String = Nothing, Optional workloadAutoScalerProfile As ManagedClusterWorkloadAutoScalerProfile = Nothing, Optional azureMonitorProfile As ManagedClusterAzureMonitorProfile = Nothing)

Parameters

location
String

The geo-location where the resource lives

id
String

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name
String

The name of the resource

type
String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags
IDictionary<String,String>

Resource tags.

sku
ManagedClusterSKU

The managed cluster SKU.

extendedLocation
ExtendedLocation

The extended location of the Virtual Machine.

identity
ManagedClusterIdentity

The identity of the managed cluster, if configured.

powerState
PowerState

The Power State of the cluster.

provisioningState
String

The current provisioning state.

maxAgentPools
Nullable<Int32>

The max number of agent pools for the managed cluster.

kubernetesVersion
String

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 for more details.

currentKubernetesVersion
String

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.

dnsPrefix
String

This cannot be updated once the Managed Cluster has been created.

fqdnSubdomain
String

This cannot be updated once the Managed Cluster has been created.

fqdn
String

The FQDN of the master pool.

privateFqdn
String

The FQDN of private cluster.

azurePortalFqdn
String

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.

agentPoolProfiles
IList<ManagedClusterAgentPoolProfile>

The agent pool properties.

linuxProfile
ContainerServiceLinuxProfile

The profile for Linux VMs in the Managed Cluster.

windowsProfile
ManagedClusterWindowsProfile

The profile for Windows VMs in the Managed Cluster.

servicePrincipalProfile
ManagedClusterServicePrincipalProfile

Information about a service principal identity for the cluster to use for manipulating Azure APIs.

addonProfiles
IDictionary<String,ManagedClusterAddonProfile>

The profile of managed cluster add-on.

podIdentityProfile
ManagedClusterPodIdentityProfile

See use AAD pod identity for more details on AAD pod identity integration.

oidcIssuerProfile
ManagedClusterOidcIssuerProfile

The OIDC issuer profile of the Managed Cluster.

nodeResourceGroup
String

The name of the resource group containing agent pool nodes.

enableRbac
Nullable<Boolean>

Whether to enable Kubernetes Role-Based Access Control.

supportPlan
String

The support plan for the Managed Cluster. If unspecified, the default is 'KubernetesOfficial'. Possible values include: 'KubernetesOfficial', 'AKSLongTermSupport'

enablePodSecurityPolicy
Nullable<Boolean>

(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.

networkProfile
ContainerServiceNetworkProfile

The network configuration profile.

aadProfile
ManagedClusterAADProfile

The Azure Active Directory configuration.

autoUpgradeProfile
ManagedClusterAutoUpgradeProfile

The auto upgrade configuration.

autoScalerProfile
ManagedClusterPropertiesAutoScalerProfile

Parameters to be applied to the cluster-autoscaler when enabled

apiServerAccessProfile
ManagedClusterAPIServerAccessProfile

The access profile for managed cluster API server.

diskEncryptionSetId
String

This is of the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{encryptionSetName}'

identityProfile
IDictionary<String,UserAssignedIdentity>

Identities associated with the cluster.

privateLinkResources
IList<PrivateLinkResource>

Private link resources associated with the cluster.

disableLocalAccounts
Nullable<Boolean>

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.

httpProxyConfig
ManagedClusterHttpProxyConfig

Configurations for provisioning the cluster with HTTP proxy servers.

securityProfile
ManagedClusterSecurityProfile

Security profile for the managed cluster.

storageProfile
ManagedClusterStorageProfile

Storage profile for the managed cluster.

publicNetworkAccess
String

Allow or deny public network access for AKS Possible values include: 'Enabled', 'Disabled'

workloadAutoScalerProfile
ManagedClusterWorkloadAutoScalerProfile

Workload Auto-scaler profile for the managed cluster.

azureMonitorProfile
ManagedClusterAzureMonitorProfile

Azure Monitor addon profiles for monitoring the managed cluster.

Applies to