Skip to content

Commit 028993b

Browse files
jdnarkerich-wang
andauthored
Examples used New-AzAks which is legacy cmdlet and the alias for New-AzAksCluster. Changed examples to use New-AzAksCluster which is the cmdlet this documentation page targets. (#14088)
Co-authored-by: erich-wang <[email protected]>
1 parent 9a2eefe commit 028993b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Aks/Aks/help/New-AzAksCluster.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Create a new Azure Kubernetes Service(AKS) cluster.
3535
### New an AKS with default params.
3636

3737
```powershell
38-
PS C:\> New-AzAks -ResourceGroupName myResourceGroup -Name myCluster
38+
PS C:\> New-AzAksCluster -ResourceGroupName myResourceGroup -Name myCluster
3939
```
4040

4141
### Create Windows Server container on an AKS.
@@ -44,7 +44,7 @@ To create Windows Server container on an AKS, you must specify at least four fol
4444

4545
```powershell
4646
PS C:\> $cred = ConvertTo-SecureString -AsPlainText "Password!!123" -Force
47-
PS C:\> New-AzAks -ResourceGroupName myResourceGroup -Name myCluster -WindowsProfileAdminUserName azureuser -WindowsProfileAdminUserPassword $cred -NetworkPlugin azure -NodeVmSetType VirtualMachineScaleSets
47+
PS C:\> New-AzAksCluster -ResourceGroupName myResourceGroup -Name myCluster -WindowsProfileAdminUserName azureuser -WindowsProfileAdminUserPassword $cred -NetworkPlugin azure -NodeVmSetType VirtualMachineScaleSets
4848
PS C:\> New-AzAksNodePool -ResourceGroupName myResourceGroup -ClusterName myCluster -Name win1 -OsType Windows -VmSetType VirtualMachineScaleSets
4949
```
5050

0 commit comments

Comments
 (0)