Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
9ee91bc
Add a new method to get default parameter set.
chenlei-yang Jul 15, 2020
e6756f1
Add new SignatureProblemId.
chenlei-yang Jul 15, 2020
4e49bd9
Add two method to ParameterSetMetadata and one method to Parameter fo…
chenlei-yang Jul 15, 2020
f0d9ca0
Add new class to handle the parameter information get from fields.
chenlei-yang Jul 15, 2020
c1d4f5e
Add two new signature verifier to analyse the confusion caused by man…
chenlei-yang Jul 15, 2020
81d93bc
Change some name of the variables.
chenlei-yang Jul 15, 2020
4cd95bf
Rename functions.
chenlei-yang Jul 20, 2020
6a4bcda
Change some variable and function name to make it more readable and c…
chenlei-yang Jul 20, 2020
2f9ff60
Modify the inappropriate expression.
chenlei-yang Jul 20, 2020
8b20d71
Fix a wrong variable name.
chenlei-yang Jul 20, 2020
48262b6
Add new exceptions.
chenlei-yang Jul 20, 2020
90e7511
Add missed exceptions.
chenlei-yang Jul 20, 2020
494a3c6
Revert "Add new attributes to role assignment objects and related cmd…
dagoroz Jul 20, 2020
25cfc87
Add breaking change exceptions.
chenlei-yang Jul 21, 2020
5c71d5c
Specifically use Deny as NetworkRules default action.
yangyuan Jul 21, 2020
ea95395
Specifically use Deny as NetworkRules default action.
yangyuan Jul 21, 2020
caed28a
Fix issue https://github.com/Azure/azure-powershell/issues/11692 (#12…
msJinLei Jul 22, 2020
aa0671e
Api management: Added new cmdlets for new "Gateway" entity. (#12307)
vfedonkin Jul 22, 2020
e2e835c
Add brackets
Jul 22, 2020
fef9182
update help docs
isra-fel Jul 22, 2020
a5b159d
Format
isra-fel Jul 22, 2020
47eea09
Merge pull request #12457 from isra-fel/databricks-docs
wyunchi-ms Jul 22, 2020
42938ad
Merge pull request #12458 from Radium1209/chenlei/FixBuildProblem
wyunchi-ms Jul 22, 2020
8aae0a1
Merge pull request #12452 from yuanyang-microsoft/yuanyang/7745866_vn…
wyunchi-ms Jul 22, 2020
f76baeb
1. Support Private Link feature
Jul 21, 2020
9e4bdc8
Merge pull request #12460 from aim-for-better/SupportPrivateLinkEncry…
wyunchi-ms Jul 23, 2020
4942f4c
Fix the issue that have two DesktopVirtualization nuget
wyunchi-ms Jul 23, 2020
14ebfbd
Fix the issue that have two DesktopVirtualization nuget
wyunchi-ms Jul 23, 2020
98ebed6
Fix the issue that have two DesktopVirtualization nuget
wyunchi-ms Jul 23, 2020
3f7b671
Remove breaking change exceprions.
chenlei-yang Jul 23, 2020
caef307
Update serialized cmdlets json files.
chenlei-yang Jul 23, 2020
94532cb
Add json ignore and resolve conflict.
chenlei-yang Jul 23, 2020
8edb0a6
Merge remote-tracking branch 'upstream/master' into chenlei/AddNewLog…
chenlei-yang Jul 23, 2020
7e06e43
Merge pull request #12402 from Radium1209/chenlei/AddNewLogicToAnalyzer
wyunchi-ms Jul 23, 2020
eb5598c
Merge pull request #12463 from Azure/revert-12425-master
wyunchi-ms Jul 24, 2020
055541d
Merge pull request #12464 from Azure/wyunchi/fix/DesktopVirtualization
wyunchi-ms Jul 24, 2020
df75b37
[Storage] Support share usage (#12470)
blueww Jul 24, 2020
94de71f
Correct reference doc for Add-AzEnvironment (#12476)
dingmeng-xue Jul 25, 2020
fd8c151
Add some alias. (#12477)
wyunchi-ms Jul 26, 2020
37ec7a7
Fix the path issue in linux (#12480)
wyunchi-ms Jul 27, 2020
4847d04
fix merge conflicts
blueww Jul 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
<RuntimeDllsIncludeList>Microsoft.Powershell.*.dll,System*.dll,Microsoft.VisualBasic.dll,Microsoft.CSharp.dll,Microsoft.CodeAnalysis.dll,Microsoft.CodeAnalysis.CSharp.dll</RuntimeDllsIncludeList>
<RuntimeDllsExcludeList>System.Security.Cryptography.ProtectedData.dll,System.Configuration.ConfigurationManager.dll,System.Runtime.CompilerServices.Unsafe.dll,System.IO.FileSystem.AccessControl.dll,System.Buffers.dll,System.Text.Encodings.Web.dll,System.CodeDom.dll,System.Management.dll,System.Text.Json.dll,System.Threading.Tasks.Extensions.dll</RuntimeDllsExcludeList>
</PropertyGroup>
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;Get-ChildItem -Path $(RepoArtifacts)/$(Configuration) -Recurse -Include $(RuntimeDllsIncludeList) -Exclude $(RuntimeDllsExcludeList) | Where-Object {$_.FullName -notlike '*PreloadAssemblies*' -and $_.FullName -notlike '*NetCoreAssemblies*'} | Remove-Item -Force&quot;" />
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;Get-ChildItem -Path $(RepoArtifacts)/$(Configuration) -Recurse -Include $(RuntimeDllsIncludeList) -Exclude $(RuntimeDllsExcludeList) | Where-Object {{$_}.FullName -notlike '*PreloadAssemblies*' -and {$_}.FullName -notlike '*NetCoreAssemblies*'} | Remove-Item -Force&quot;" />
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;Get-ChildItem -Path $(RepoArtifacts)/$(Configuration) -Recurse -Include 'runtimes' | Remove-Item -Recurse -Force&quot;" Condition="'$(CodeSign)' == 'true'" />

<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(RepoTools)/UpdateModules.ps1 -BuildConfig $(Configuration) -Scope $(Scope)&quot;" />
Expand Down
2 changes: 1 addition & 1 deletion src/Accounts/Accounts/help/Add-AzEnvironment.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Add-AzEnvironment [-Name] <String> [[-StorageEndpoint] <String>] [-ARMEndpoint]

### Discovery
```
Add-AzEnvironment [-AutoDiscover] [-Uri <Uri>] [-Scope <ContextModificationScope>]
Add-AzEnvironment -AutoDiscover [-Uri <Uri>] [-Scope {Process | CurrentUser}]
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

Expand Down
6 changes: 3 additions & 3 deletions src/Aks/Aks/Az.Aks.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.Aks.dll')
FunctionsToExport = @()

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = 'Get-AzAks', 'New-AzAks', 'Remove-AzAks', 'Import-AzAksCredential',
'Start-AzAksDashboard', 'Stop-AzAksDashboard', 'Set-AzAks',
CmdletsToExport = 'Get-AzAksCluster', 'New-AzAksCluster', 'Remove-AzAksCluster', 'Import-AzAksCredential',
'Start-AzAksDashboard', 'Stop-AzAksDashboard', 'Set-AzAksCluster',
'New-AzAksNodePool', 'Update-AzAksNodePool', 'Remove-AzAksNodePool',
'Get-AzAksNodePool', 'Install-AzAksKubectl', 'Get-AzAksVersion'

# Variables to export from this module
# VariablesToExport = @()

# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = @()
AliasesToExport = @('Get-AzAks', 'New-AzAks', 'Remove-AzAks', 'Set-AzAks')

# DSC resources to export from this module
# DscResourcesToExport = @()
Expand Down
2 changes: 2 additions & 0 deletions src/Aks/Aks/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
- Additional information about change #1
-->
## Upcoming Release
* Removed `ClientIdAndSecret` to `ServicePrincipalIdAndSecret` and set `ClientIdAndSecret` as an alias [#12381].
* Removed `Get-AzAks`/`New-AzAks`/`Remove-AzAks`/`Set-AzAks` to `Get-AzAksCluster`/`New-AzAksCluster`/`Remove-AzAksCluster`/`Set-AzAksCluster` and set the original ones as alias [#12373].

## Version 1.1.3
* Fixed bug `Get-AzAks` doesn't get all clusters [#12296]
Expand Down
7 changes: 5 additions & 2 deletions src/Aks/Aks/Commands/CreateOrUpdateKubeBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
using Microsoft.WindowsAzure.Commands.Utilities.Common;
using Microsoft.Rest.Azure.OData;
using Microsoft.Azure.Management.Internal.Resources.Models;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;

namespace Microsoft.Azure.Commands.Aks
{
Expand Down Expand Up @@ -69,7 +70,9 @@ public abstract class CreateOrUpdateKubeBase : KubeCmdletBase
Mandatory = false,
ParameterSetName = DefaultParamSet,
HelpMessage = "The client id and client secret associated with the AAD application / service principal.")]
public PSCredential ClientIdAndSecret { get; set; }
[Alias("ClientIdAndSecret")]
[CmdletParameterBreakingChange("ClientIdAndSecret", ReplaceMentCmdletParameterName = "ServicePrincipalIdAndSecret")]
public PSCredential ServicePrincipalIdAndSecret { get; set; }

[Parameter(Mandatory = false,
HelpMessage = "Azure location for the cluster. Defaults to the location of the resource group.")]
Expand Down Expand Up @@ -149,7 +152,7 @@ protected virtual ManagedCluster BuildNewCluster()
new ContainerServiceLinuxProfile(LinuxProfileAdminUserName,
new ContainerServiceSshConfiguration(pubKey));

var acsServicePrincipal = EnsureServicePrincipal(ClientIdAndSecret?.UserName, ClientIdAndSecret?.Password?.ToString());
var acsServicePrincipal = EnsureServicePrincipal(ServicePrincipalIdAndSecret?.UserName, ServicePrincipalIdAndSecret?.Password?.ToString());

var spProfile = new ManagedClusterServicePrincipalProfile(
acsServicePrincipal.SpId,
Expand Down
5 changes: 4 additions & 1 deletion src/Aks/Aks/Commands/GetAzureRmAks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.ContainerService;
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;

namespace Microsoft.Azure.Commands.Aks
{
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks", DefaultParameterSetName = ResourceGroupParameterSet)]
[CmdletDeprecation(ReplacementCmdletName = "Get-AzAksCluster")]
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", DefaultParameterSetName = ResourceGroupParameterSet)]
[Alias("Get-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
[OutputType(typeof(PSKubernetesCluster))]
public class GetAzureRmAks : KubeCmdletBase
{
Expand Down
5 changes: 4 additions & 1 deletion src/Aks/Aks/Commands/NewAzureRmAks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
using Microsoft.Azure.Commands.Aks.Models;
using Microsoft.Azure.Commands.Aks.Properties;
using Microsoft.Azure.Management.ContainerService;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
using Microsoft.WindowsAzure.Commands.Utilities.Common;

namespace Microsoft.Azure.Commands.Aks
{
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks", DefaultParameterSetName = DefaultParamSet, SupportsShouldProcess = true)]
[CmdletDeprecation(ReplacementCmdletName = "New-AzAksCluster")]
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", DefaultParameterSetName = DefaultParamSet, SupportsShouldProcess = true)]
[Alias("New-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
[OutputType(typeof(PSKubernetesCluster))]
public class NewAzureRmAks : NewKubeBase
{
Expand Down
2 changes: 1 addition & 1 deletion src/Aks/Aks/Commands/NewKubeBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected override ManagedCluster BuildNewCluster()
new ContainerServiceLinuxProfile(LinuxProfileAdminUserName,
new ContainerServiceSshConfiguration(pubKey));

var acsServicePrincipal = EnsureServicePrincipal(ClientIdAndSecret?.UserName, ClientIdAndSecret?.Password?.ToString());
var acsServicePrincipal = EnsureServicePrincipal(ServicePrincipalIdAndSecret?.UserName, ServicePrincipalIdAndSecret?.Password?.ToString());

var spProfile = new ManagedClusterServicePrincipalProfile(
acsServicePrincipal.SpId,
Expand Down
5 changes: 4 additions & 1 deletion src/Aks/Aks/Commands/RemoveAzureRmAks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.ContainerService;
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;

namespace Microsoft.Azure.Commands.Aks
{
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks", SupportsShouldProcess = true, DefaultParameterSetName = GroupNameParameterSet)]
[CmdletDeprecation(ReplacementCmdletName = "Remove-AzAksCluster")]
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", SupportsShouldProcess = true, DefaultParameterSetName = GroupNameParameterSet)]
[Alias("Remove-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
[OutputType(typeof(bool))]
public class RemoveAzureRmAks : KubeCmdletBase
{
Expand Down
9 changes: 6 additions & 3 deletions src/Aks/Aks/Commands/SetAzureRmAks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@
using Microsoft.Azure.Management.ContainerService;
using Microsoft.Azure.Management.ContainerService.Models;
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
using Microsoft.WindowsAzure.Commands.Utilities.Common;

namespace Microsoft.Azure.Commands.Aks
{
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks", DefaultParameterSetName = DefaultParamSet, SupportsShouldProcess = true)]
[CmdletDeprecation(ReplacementCmdletName = "Set-AzAksCluster")]
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "AksCluster", DefaultParameterSetName = DefaultParamSet, SupportsShouldProcess = true)]
[Alias("Set-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Aks")]
[OutputType(typeof(PSKubernetesCluster))]
public class SetAzureRmAks : CreateOrUpdateKubeBase
{
Expand Down Expand Up @@ -108,10 +111,10 @@ public override void ExecuteCmdlet()
new ContainerServiceSshPublicKey(GetSshKey(SshKeyValue))
};
}
if (this.IsParameterBound(c => c.ClientIdAndSecret))
if (this.IsParameterBound(c => c.ServicePrincipalIdAndSecret))
{
WriteVerbose(Resources.UpdatingServicePrincipal);
var acsServicePrincipal = EnsureServicePrincipal(ClientIdAndSecret.UserName, ClientIdAndSecret.Password.ToString());
var acsServicePrincipal = EnsureServicePrincipal(ServicePrincipalIdAndSecret.UserName, ServicePrincipalIdAndSecret.Password.ToString());

var spProfile = new ManagedClusterServicePrincipalProfile(
acsServicePrincipal.SpId,
Expand Down
9 changes: 4 additions & 5 deletions src/Aks/Aks/help/Az.Aks.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Locale: en-US
Commands to interact with Azure managed Kubernetes clusters.

## Az.Aks Cmdlets
### [Get-AzAks](Get-AzAks.md)
### [Get-AzAksCluster](Get-AzAksCluster.md)
List Kubernetes managed clusters.

### [Get-AzAksNodePool](Get-AzAksNodePool.md)
Expand All @@ -26,19 +26,19 @@ Import and merge Kubectl config for a managed Kubernetes Cluster.
### [Install-AzAksKubectl](Install-AzAksKubectl.md)
Download and install kubectl, the Kubernetes command-line tool.

### [New-AzAks](New-AzAks.md)
### [New-AzAksCluster](New-AzAksCluster.md)
Create a new managed Kubernetes cluster.

### [New-AzAksNodePool](New-AzAksNodePool.md)
Create a new node pool in specified cluster.

### [Remove-AzAks](Remove-AzAks.md)
### [Remove-AzAksCluster](Remove-AzAksCluster.md)
Delete a managed Kubernetes cluster.

### [Remove-AzAksNodePool](Remove-AzAksNodePool.md)
Delete node pool from managed cluster.

### [Set-AzAks](Set-AzAks.md)
### [Set-AzAksCluster](Set-AzAksCluster.md)
Update or create a managed Kubernetes cluster.

### [Start-AzAksDashboard](Start-AzAksDashboard.md)
Expand All @@ -49,4 +49,3 @@ Stop the Kubectl SSH tunnel created in Start-AzKubernetesDashboard.

### [Update-AzAksNodePool](Update-AzAksNodePool.md)
Update node pool in a managed cluster.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.Aks.dll-Help.xml
Module Name: Az.Aks
online version: https://docs.microsoft.com/en-us/powershell/module/az.aks/get-azaks
online version: https://docs.microsoft.com/en-us/powershell/module/az.aks/get-azakscluster
schema: 2.0.0
---

# Get-AzAks
# Get-AzAksCluster

## SYNOPSIS
List Kubernetes managed clusters.
Expand All @@ -14,17 +14,18 @@ List Kubernetes managed clusters.

### ResourceGroupParameterSet (Default)
```
Get-AzAks [[-ResourceGroupName] <String>] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Get-AzAksCluster [[-ResourceGroupName] <String>] [-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
```

### IdParameterSet
```
Get-AzAks [-Id] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Get-AzAksCluster [-Id] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
```

### NameParameterSet
```
Get-AzAks [-ResourceGroupName] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>]
Get-AzAksCluster [-ResourceGroupName] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
```

Expand All @@ -34,8 +35,8 @@ List Kubernetes managed clusters.
## EXAMPLES

### List all Kubernetes clusters
```
PS C:\> Get-AzAks
```powershell
PS C:\> Get-AzAksCluster
```

## PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.Aks.dll-Help.xml
Module Name: Az.Aks
online version: https://docs.microsoft.com/en-us/powershell/module/az.aks/new-azaks
online version: https://docs.microsoft.com/en-us/powershell/module/az.aks/new-azakscluster
schema: 2.0.0
---

# New-AzAks
# New-AzAksCluster

## SYNOPSIS
Create a new managed Kubernetes cluster.

## SYNTAX

```
New-AzAks [-Force] [-NodeVmSetType <String>] [-NodeVnetSubnetID <String>] [-NodeMaxPodCount <Int32>]
New-AzAksCluster [-Force] [-NodeVmSetType <String>] [-NodeVnetSubnetID <String>] [-NodeMaxPodCount <Int32>]
[-NodeOsType <String>] [-NodeSetPriority <String>] [-NodeScaleSetEvictionPolicy <String>]
[-AcrNameToAttach <String>] [-EnableRbac] [-WindowsProfileAdminUserName <String>]
[-WindowsProfileAdminUserPassword <SecureString>] [-NetworkPlugin <String>] [-LoadBalancerSku <String>]
[-ResourceGroupName] <String> [-Name] <String> [[-ClientIdAndSecret] <PSCredential>] [-Location <String>]
[-LinuxProfileAdminUserName <String>] [-DnsNamePrefix <String>] [-KubernetesVersion <String>]
[-NodeName <String>] [-NodeMinCount <Int32>] [-NodeMaxCount <Int32>] [-EnableNodeAutoScaling]
[-NodeCount <Int32>] [-NodeOsDiskSize <Int32>] [-NodeVmSize <String>] [-SshKeyValue <String>] [-AsJob]
[-Tag <Hashtable>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
[-ResourceGroupName] <String> [-Name] <String> [[-ServicePrincipalIdAndSecret] <PSCredential>]
[-Location <String>] [-LinuxProfileAdminUserName <String>] [-DnsNamePrefix <String>]
[-KubernetesVersion <String>] [-NodeName <String>] [-NodeMinCount <Int32>] [-NodeMaxCount <Int32>]
[-EnableNodeAutoScaling] [-NodeCount <Int32>] [-NodeOsDiskSize <Int32>] [-NodeVmSize <String>]
[-SshKeyValue <String>] [-AsJob] [-Tag <Hashtable>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
[-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Expand All @@ -32,15 +33,15 @@ Create a new Azure Kubernetes Service(AKS) cluster.

### New an AKS with default params.

```
```powershell
PS C:\> New-AzAks -ResourceGroupName myResourceGroup -Name myCluster
```

### Create Windows Server container on an AKS.
To create Windows Server container on an AKS, you must specify at least four following parameters when creating the AKS, and the value for `NetworkPlugin` and `NodeVmSetType` must be `azure` and `VirtualMachineScaleSets` respectively.
`-WindowsProfileAdminUserName *** -WindowsProfileAdminUserPassword *** -NetworkPlugin azure -NodeVmSetType VirtualMachineScaleSets`

```
```powershell
PS C:\> $cred = ConvertTo-SecureString -AsPlainText "Password!!123" -Force
PS C:\> New-AzAks -ResourceGroupName myResourceGroup -Name myCluster -WindowsProfileAdminUserName azureuser -WindowsProfileAdminUserPassword $cred -NetworkPlugin azure -NodeVmSetType VirtualMachineScaleSets
PS C:\> New-AzAksNodePool -ResourceGroupName myResourceGroup -ClusterName myCluster -Name win1 -OsType Windows -VmSetType VirtualMachineScaleSets
Expand Down Expand Up @@ -78,21 +79,6 @@ Accept pipeline input: False
Accept wildcard characters: False
```

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

```yaml
Type: System.Management.Automation.PSCredential
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

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

Expand Down Expand Up @@ -454,6 +440,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

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

```yaml
Type: System.Management.Automation.PSCredential
Parameter Sets: (All)
Aliases: ClientIdAndSecret

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SshKeyValue
SSH key file value or key file path.
Defaults to {HOME}/.ssh/id_rsa.pub.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.Aks.dll-Help.xml
Module Name: Az.Aks
online version: https://docs.microsoft.com/en-us/powershell/module/az.aks/remove-azaks
online version: https://docs.microsoft.com/en-us/powershell/module/az.aks/remove-azakscluster
schema: 2.0.0
---

# Remove-AzAks
# Remove-AzAksCluster

## SYNOPSIS
Delete a managed Kubernetes cluster.
Expand All @@ -14,20 +14,20 @@ Delete a managed Kubernetes cluster.

### GroupNameParameterSet (Default)
```
Remove-AzAks [-ResourceGroupName] <String> [-Name] <String> [-PassThru] [-AsJob] [-Force]
Remove-AzAksCluster [-ResourceGroupName] <String> [-Name] <String> [-PassThru] [-AsJob] [-Force]
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

### InputObjectParameterSet
```
Remove-AzAks -InputObject <PSKubernetesCluster> [-PassThru] [-AsJob] [-Force]
Remove-AzAksCluster -InputObject <PSKubernetesCluster> [-PassThru] [-AsJob] [-Force]
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

### IdParameterSet
```
Remove-AzAks [-Id] <String> [-PassThru] [-AsJob] [-Force] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
[-Confirm] [<CommonParameters>]
Remove-AzAksCluster [-Id] <String> [-PassThru] [-AsJob] [-Force] [-DefaultProfile <IAzureContextContainer>]
[-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Expand All @@ -36,7 +36,7 @@ Delete a managed Kubernetes cluster.
## EXAMPLES

### Delete an existing managed Kubernetes cluster
```
```powershell
PS C:\> Remove-AzAks -ResourceGroupName group -Name myCluster
```

Expand Down
Loading