Edit

Share via


Set-AzAksCluster

Update or create a managed Kubernetes cluster.

Syntax

defaultParameterSet (Default)

Set-AzAksCluster
    [-ResourceGroupName] <String>
    [-Name] <String>
    [[-ServicePrincipalIdAndSecret] <PSCredential>]
    [-NodePoolMode <String>]
    [-AcrNameToDetach <String>]
    [-NodeImageOnly]
    [-ControlPlaneOnly]
    [-AutoScalerProfile <ManagedClusterPropertiesAutoScalerProfile>]
    [-EnableUptimeSLA]
    [-EnableOidcIssuer]
    [-Location <String>]
    [-LinuxProfileAdminUserName <String>]
    [-DnsNamePrefix <String>]
    [-KubernetesVersion <String>]
    [-NodeName <String>]
    [-NodeMinCount <Int32>]
    [-NodeMaxCount <Int32>]
    [-EnableNodeAutoScaling]
    [-NodeCount <Int32>]
    [-NodeOsDiskSize <Int32>]
    [-NodeVmSize <String>]
    [-NodePoolLabel <Hashtable>]
    [-NodePoolTag <Hashtable>]
    [-SshKeyValue <String>]
    [-AcrNameToAttach <String>]
    [-AsJob]
    [-Tag <Hashtable>]
    [-LoadBalancerAllocatedOutboundPort <Int32>]
    [-LoadBalancerManagedOutboundIpCount <Int32>]
    [-LoadBalancerOutboundIp <String[]>]
    [-LoadBalancerOutboundIpPrefix <String[]>]
    [-LoadBalancerIdleTimeoutInMinute <Int32>]
    [-ApiServerAccessAuthorizedIpRange <String[]>]
    [-EnableApiServerAccessPrivateCluster]
    [-ApiServerAccessPrivateDnsZone <String>]
    [-EnableApiServerAccessPrivateClusterPublicFQDN]
    [-FqdnSubdomain <String>]
    [-EnableManagedIdentity]
    [-AssignIdentity <String>]
    [-AutoUpgradeChannel <String>]
    [-DiskEncryptionSetID <String>]
    [-DisableLocalAccount]
    [-HttpProxy <String>]
    [-HttpsProxy <String>]
    [-HttpProxyConfigNoProxyEndpoint <String[]>]
    [-HttpProxyConfigTrustedCa <String>]
    [-AksCustomHeader <Hashtable>]
    [-AadProfile <ManagedClusterAADProfile>]
    [-WindowsProfileAdminUserPassword <SecureString>]
    [-EnableAHUB]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [-SubscriptionId <String>]
    [<CommonParameters>]

InputObjectParameterSet

Set-AzAksCluster
    -InputObject <PSKubernetesCluster>
    [-NodePoolMode <String>]
    [-AcrNameToDetach <String>]
    [-NodeImageOnly]
    [-ControlPlaneOnly]
    [-AutoScalerProfile <ManagedClusterPropertiesAutoScalerProfile>]
    [-EnableUptimeSLA]
    [-EnableOidcIssuer]
    [-Location <String>]
    [-LinuxProfileAdminUserName <String>]
    [-DnsNamePrefix <String>]
    [-KubernetesVersion <String>]
    [-NodeName <String>]
    [-NodeMinCount <Int32>]
    [-NodeMaxCount <Int32>]
    [-EnableNodeAutoScaling]
    [-NodeCount <Int32>]
    [-NodeOsDiskSize <Int32>]
    [-NodeVmSize <String>]
    [-NodePoolLabel <Hashtable>]
    [-NodePoolTag <Hashtable>]
    [-SshKeyValue <String>]
    [-AcrNameToAttach <String>]
    [-AsJob]
    [-Tag <Hashtable>]
    [-LoadBalancerAllocatedOutboundPort <Int32>]
    [-LoadBalancerManagedOutboundIpCount <Int32>]
    [-LoadBalancerOutboundIp <String[]>]
    [-LoadBalancerOutboundIpPrefix <String[]>]
    [-LoadBalancerIdleTimeoutInMinute <Int32>]
    [-ApiServerAccessAuthorizedIpRange <String[]>]
    [-EnableApiServerAccessPrivateCluster]
    [-ApiServerAccessPrivateDnsZone <String>]
    [-EnableApiServerAccessPrivateClusterPublicFQDN]
    [-FqdnSubdomain <String>]
    [-EnableManagedIdentity]
    [-AssignIdentity <String>]
    [-AutoUpgradeChannel <String>]
    [-DiskEncryptionSetID <String>]
    [-DisableLocalAccount]
    [-HttpProxy <String>]
    [-HttpsProxy <String>]
    [-HttpProxyConfigNoProxyEndpoint <String[]>]
    [-HttpProxyConfigTrustedCa <String>]
    [-AksCustomHeader <Hashtable>]
    [-AadProfile <ManagedClusterAADProfile>]
    [-WindowsProfileAdminUserPassword <SecureString>]
    [-EnableAHUB]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [-SubscriptionId <String>]
    [<CommonParameters>]

IdParameterSet

Set-AzAksCluster
    [-Id] <String>
    [-NodePoolMode <String>]
    [-AcrNameToDetach <String>]
    [-NodeImageOnly]
    [-ControlPlaneOnly]
    [-AutoScalerProfile <ManagedClusterPropertiesAutoScalerProfile>]
    [-EnableUptimeSLA]
    [-EnableOidcIssuer]
    [-Location <String>]
    [-LinuxProfileAdminUserName <String>]
    [-DnsNamePrefix <String>]
    [-KubernetesVersion <String>]
    [-NodeName <String>]
    [-NodeMinCount <Int32>]
    [-NodeMaxCount <Int32>]
    [-EnableNodeAutoScaling]
    [-NodeCount <Int32>]
    [-NodeOsDiskSize <Int32>]
    [-NodeVmSize <String>]
    [-NodePoolLabel <Hashtable>]
    [-NodePoolTag <Hashtable>]
    [-SshKeyValue <String>]
    [-AcrNameToAttach <String>]
    [-AsJob]
    [-Tag <Hashtable>]
    [-LoadBalancerAllocatedOutboundPort <Int32>]
    [-LoadBalancerManagedOutboundIpCount <Int32>]
    [-LoadBalancerOutboundIp <String[]>]
    [-LoadBalancerOutboundIpPrefix <String[]>]
    [-LoadBalancerIdleTimeoutInMinute <Int32>]
    [-ApiServerAccessAuthorizedIpRange <String[]>]
    [-EnableApiServerAccessPrivateCluster]
    [-ApiServerAccessPrivateDnsZone <String>]
    [-EnableApiServerAccessPrivateClusterPublicFQDN]
    [-FqdnSubdomain <String>]
    [-EnableManagedIdentity]
    [-AssignIdentity <String>]
    [-AutoUpgradeChannel <String>]
    [-DiskEncryptionSetID <String>]
    [-DisableLocalAccount]
    [-HttpProxy <String>]
    [-HttpsProxy <String>]
    [-HttpProxyConfigNoProxyEndpoint <String[]>]
    [-HttpProxyConfigTrustedCa <String>]
    [-AksCustomHeader <Hashtable>]
    [-AadProfile <ManagedClusterAADProfile>]
    [-WindowsProfileAdminUserPassword <SecureString>]
    [-EnableAHUB]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [-SubscriptionId <String>]
    [<CommonParameters>]

Description

Update or create a managed Kubernetes cluster.

Examples

Example 1:

Get-AzAksCluster -ResourceGroupName group -Name myCluster | Set-AzAksCluster -NodeCount 5

Set the number of nodes in the Kubernetes cluster to 5.

Example 2: Update an AKS cluster with AutoScalerProfile.

When you update an AKS cluster, you can configure granular details of the cluster autoscaler by changing the default values in the cluster-wide autoscaler profile.

$AutoScalerProfile=@{
    ScanInterval="40s"
    Expander="priority"
}
$AutoScalerProfile=[Microsoft.Azure.Management.ContainerService.Models.ManagedClusterPropertiesAutoScalerProfile]$AutoScalerProfile

Get-AzAksCluster -ResourceGroupName group -Name myCluster | Set-AzAksCluster -AutoScalerProfile $AutoScalerProfile

Example 3: Update an AKS cluster with AadProfile.

When you update an AKS cluster, you can configure the AAD profile.

$AKSAdminGroup=New-AzADGroup -DisplayName myAKSAdminGroup -MailNickname myAKSAdminGroup
$AadProfile=@{
    managed=$true
    enableAzureRBAC=$false
    adminGroupObjectIDs=[System.Collections.Generic.List[string]]@($AKSAdminGroup.Id)
}
$AadProfile=[Microsoft.Azure.Management.ContainerService.Models.ManagedClusterAADProfile]$AadProfile

Set-AzAksCluster -ResourceGroupName myResourceGroup -Name myAKSCluster -AadProfile $AadProfile

Parameters

-AadProfile

The Azure Active Directory configuration.

Parameter properties

Type:ManagedClusterAADProfile
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AcrNameToAttach

Grant the 'acrpull' role of the specified ACR to AKS Service Principal, e.g. myacr

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AcrNameToDetach

Disable the 'acrpull' role assignment to the ACR specified by name or resource ID, e.g. myacr

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AksCustomHeader

Aks custom headers used for building Kubernetes network.

Parameter properties

Type:Hashtable
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ApiServerAccessAuthorizedIpRange

The IP ranges authorized to access the Kubernetes API server.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ApiServerAccessPrivateDnsZone

The private DNS zone mode for the cluster.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AsJob

Run cmdlet in the background

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AssignIdentity

ResourceId of user assign managed identity for cluster.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AutoScalerProfile

The parameters to be applied to the cluster-autoscaler.

Parameter properties

Type:ManagedClusterPropertiesAutoScalerProfile
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AutoUpgradeChannel

The upgrade channel for auto upgrade. For more information see https://learn.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ControlPlaneOnly

Will only upgrade control plane to target version.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DisableLocalAccount

Local accounts should be disabled on the Managed Cluster.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DiskEncryptionSetID

The resource ID of the disk encryption set to use for enabling encryption.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DnsNamePrefix

The DNS name prefix for the cluster.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EnableAHUB

Whether to enable Azure Hybrid User Benefits (AHUB) for Windows VMs.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EnableApiServerAccessPrivateCluster

Whether to create the cluster as a private cluster or not.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EnableApiServerAccessPrivateClusterPublicFQDN

Whether to create additional public FQDN for private cluster or not.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EnableManagedIdentity

Using a managed identity to manage cluster resource group.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EnableNodeAutoScaling

Whether to enable auto-scaler

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EnableOidcIssuer

Whether to enable OIDC issuer feature.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EnableUptimeSLA

Whether to use use Uptime SLA.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-FqdnSubdomain

The FQDN subdomain of the private cluster with custom private dns zone.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-HttpProxy

The HTTP proxy server endpoint to use.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-HttpProxyConfigNoProxyEndpoint

The endpoints that should not go through proxy.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-HttpProxyConfigTrustedCa

Alternative CA cert to use for connecting to proxy servers.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-HttpsProxy

The HTTPS proxy server endpoint to use

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Id

Id of a managed Kubernetes cluster

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:ResourceId

Parameter sets

IdParameterSet
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-InputObject

A PSKubernetesCluster object, normally passed through the pipeline.

Parameter properties

Type:PSKubernetesCluster
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

InputObjectParameterSet
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-KubernetesVersion

The version of Kubernetes to use for creating the cluster.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LinuxProfileAdminUserName

User name for the Linux Virtual Machines.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AdminUserName

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LoadBalancerAllocatedOutboundPort

The desired number of allocated SNAT ports per VM.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LoadBalancerIdleTimeoutInMinute

Desired outbound flow idle timeout in minutes.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LoadBalancerManagedOutboundIpCount

Desired managed outbound IPs count for the cluster load balancer.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LoadBalancerOutboundIp

Desired outbound IP resources for the cluster load balancer.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-LoadBalancerOutboundIpPrefix

Desired outbound IP Prefix resources for the cluster load balancer.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Location

Azure location for the cluster. Defaults to the location of the resource group.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Kubernetes managed cluster Name.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

defaultParameterSet
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NodeCount

The default number of nodes for the node pools.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NodeImageOnly

Will only upgrade the node image of agent pools.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NodeMaxCount

Maximum number of nodes for auto-scaling

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NodeMinCount

Minimum number of nodes for auto-scaling.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NodeName

Unique name of the agent pool profile in the context of the subscription and resource group.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NodeOsDiskSize

Specifies the size, in GB, of the operating system disk.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NodePoolLabel

Node pool labels used for building Kubernetes network.

Parameter properties

Type:Hashtable
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NodePoolMode

NodePoolMode represents mode of an node pool.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NodePoolTag

The tags to be persisted on the agent pool virtual machine scale set.

Parameter properties

Type:Hashtable
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NodeVmSize

The size of the Virtual Machine.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ResourceGroupName

Resource Group Name.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

defaultParameterSet
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ServicePrincipalIdAndSecret

The client id and client secret associated with the AAD application / service principal.

Parameter properties

Type:PSCredential
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

defaultParameterSet
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SshKeyValue

SSH key file value or key file path. Defaults to {HOME}/.ssh/id_rsa.pub.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:SshKeyPath

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SubscriptionId

The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. Overriding subscriptions only take effect during the lifecycle of the current cmdlet. It does not change the subscription in the context, and does not affect subsequent cmdlets.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Tag

Tags to be applied to the resource

Parameter properties

Type:Hashtable
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WindowsProfileAdminUserPassword

The administrator password to use for Windows VMs. Password requirement:At least one lower case, one upper case, one special character !@#$%^&*(), the minimum length is 12.

Parameter properties

Type:SecureString
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

PSKubernetesCluster

String

Outputs

PSKubernetesCluster