Skip to content

Commit eee4bef

Browse files
authored
[AKs] Add cmdlets with api version 2020-09-01 (#15409)
* Add cmdlets with api version 2020-09-01 * Upgrade common.netcore.dependencies.targets Co-authored-by: wyunchi-ms <[email protected]>
1 parent dc3bfd6 commit eee4bef

File tree

153 files changed

+1289
-16514
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+1289
-16514
lines changed
File renamed without changes.

src/Aks/.gitignore renamed to src/Aks/Aks.Autorest/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ obj
33
.vs
44
generated
55
internal
6-
/exports
6+
exports
7+
tools
78
custom/*.psm1
9+
custom/autogen-model-cmdlets
810
test/*-TestResults.xml
911
/*.ps1
1012
/*.ps1xml

src/Aks/Aks.Autorest/Az.Aks.psd1

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@{
2+
GUID = '15fbef14-845a-48e1-a35b-d8e8b910ae27'
3+
RootModule = './Az.Aks.psm1'
4+
ModuleVersion = '0.1.0'
5+
CompatiblePSEditions = 'Core', 'Desktop'
6+
Author = 'Microsoft Corporation'
7+
CompanyName = 'Microsoft Corporation'
8+
Copyright = 'Microsoft Corporation. All rights reserved.'
9+
Description = 'Microsoft Azure PowerShell: Aks cmdlets'
10+
PowerShellVersion = '5.1'
11+
DotNetFrameworkVersion = '4.7.2'
12+
RequiredAssemblies = './bin/Az.Aks.private.dll'
13+
FormatsToProcess = './Az.Aks.format.ps1xml'
14+
FunctionsToExport = 'Get-AzAksNodePoolUpgradeProfile', 'Get-AzAksUpgradeProfile', 'Start-AzAksCluster', 'Stop-AzAksCluster', '*'
15+
AliasesToExport = 'Get-AzAksClusterUpgradeProfile', '*'
16+
PrivateData = @{
17+
PSData = @{
18+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Aks'
19+
LicenseUri = 'https://aka.ms/azps-license'
20+
ProjectUri = 'https://github.com/Azure/azure-powershell'
21+
ReleaseNotes = ''
22+
}
23+
}
24+
}

src/Aks/custom/readme.md renamed to src/Aks/Aks.Autorest/custom/readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ These provide functionality to our HTTP pipeline and other useful features. In s
3131

3232
### Attributes
3333
For processing the cmdlets, we've created some additional attributes:
34-
- `Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.DescriptionAttribute`
34+
- `Microsoft.Azure.PowerShell.Cmdlets.Aks.DescriptionAttribute`
3535
- Used in C# cmdlets to provide a high-level description of the cmdlet. This is propegated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
36-
- `Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.DoNotExportAttribute`
36+
- `Microsoft.Azure.PowerShell.Cmdlets.Aks.DoNotExportAttribute`
3737
- Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.Aks`.
38-
- `Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.InternalExportAttribute`
38+
- `Microsoft.Azure.PowerShell.Cmdlets.Aks.InternalExportAttribute`
3939
- Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.Aks`. For more information, see [readme.md](..\internal/readme.md) in the `..\internal` folder.
40-
- `Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ProfileAttribute`
40+
- `Microsoft.Azure.PowerShell.Cmdlets.Aks.ProfileAttribute`
4141
- Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.

src/Aks/Aks.Autorest/docs/Az.Aks.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
Module Name: Az.Aks
3+
Module Guid: 15fbef14-845a-48e1-a35b-d8e8b910ae27
4+
Download Help Link: https://docs.microsoft.com/powershell/module/az.aks
5+
Help Version: 1.0.0.0
6+
Locale: en-US
7+
---
8+
9+
# Az.Aks Module
10+
## Description
11+
Microsoft Azure PowerShell: Aks cmdlets
12+
13+
## Az.Aks Cmdlets
14+
### [Get-AzAksNodePoolUpgradeProfile](Get-AzAksNodePoolUpgradeProfile.md)
15+
Gets the details of the upgrade profile for an agent pool with a specified resource group and managed cluster name.
16+
17+
### [Get-AzAksUpgradeProfile](Get-AzAksUpgradeProfile.md)
18+
Gets the details of the upgrade profile for a managed cluster with a specified resource group and name.
19+
20+
### [Start-AzAksCluster](Start-AzAksCluster.md)
21+
Starts a Stopped Managed Cluster
22+
23+
### [Stop-AzAksCluster](Stop-AzAksCluster.md)
24+
Stops a Running Managed Cluster
25+

src/Aks/docs/Get-AzAksAgentPoolUpgradeProfile.md renamed to src/Aks/Aks.Autorest/docs/Get-AzAksNodePoolUpgradeProfile.md

Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
external help file:
33
Module Name: Az.Aks
4-
online version: https://docs.microsoft.com/powershell/module/az.aks/get-azaksagentpoolupgradeprofile
4+
online version: https://docs.microsoft.com/powershell/module/az.aks/get-azaksnodepoolupgradeprofile
55
schema: 2.0.0
66
---
77

8-
# Get-AzAksAgentPoolUpgradeProfile
8+
# Get-AzAksNodePoolUpgradeProfile
99

1010
## SYNOPSIS
1111
Gets the details of the upgrade profile for an agent pool with a specified resource group and managed cluster name.
@@ -14,41 +14,34 @@ Gets the details of the upgrade profile for an agent pool with a specified resou
1414

1515
### Get (Default)
1616
```
17-
Get-AzAksAgentPoolUpgradeProfile -AksName <String> -Name <String> -ResourceGroupName <String>
17+
Get-AzAksNodePoolUpgradeProfile -ClusterName <String> -NodePoolName <String> -ResourceGroupName <String>
1818
[-SubscriptionId <String[]>] [-DefaultProfile <PSObject>] [<CommonParameters>]
1919
```
2020

2121
### GetViaIdentity
2222
```
23-
Get-AzAksAgentPoolUpgradeProfile -InputObject <IAksIdentity> [-DefaultProfile <PSObject>] [<CommonParameters>]
23+
Get-AzAksNodePoolUpgradeProfile -InputObject <IAksIdentity> [-DefaultProfile <PSObject>] [<CommonParameters>]
2424
```
2525

2626
## DESCRIPTION
2727
Gets the details of the upgrade profile for an agent pool with a specified resource group and managed cluster name.
2828

2929
## EXAMPLES
3030

31-
### Example 1: {{ Add title here }}
31+
### Example 1: Get Aks node pool upgrade profile with resource group name and cluster name
3232
```powershell
33-
PS C:\> {{ Add code here }}
33+
PS C:\> Get-AzAksNodePoolUpgradeProfile -ResourceGroupName group -ClusterName myCluster -AgentPoolName default
3434
35-
{{ Add output here }}
35+
Name Type
36+
---- ----
37+
default Microsoft.ContainerService/managedClusters/agentPools/upgradeProfiles
3638
```
3739

38-
{{ Add description here }}
39-
40-
### Example 2: {{ Add title here }}
41-
```powershell
42-
PS C:\> {{ Add code here }}
43-
44-
{{ Add output here }}
45-
```
46-
47-
{{ Add description here }}
40+
Get Aks node pool upgrade profile with resource group name and cluster name.
4841

4942
## PARAMETERS
5043

51-
### -AksName
44+
### -ClusterName
5245
The name of the managed cluster resource.
5346

5447
```yaml
@@ -61,7 +54,6 @@ Position: Named
6154
Default value: None
6255
Accept pipeline input: False
6356
Accept wildcard characters: False
64-
Dynamic: False
6557
```
6658
6759
### -DefaultProfile
@@ -77,7 +69,6 @@ Position: Named
7769
Default value: None
7870
Accept pipeline input: False
7971
Accept wildcard characters: False
80-
Dynamic: False
8172
```
8273
8374
### -InputObject
@@ -94,10 +85,9 @@ Position: Named
9485
Default value: None
9586
Accept pipeline input: True (ByValue)
9687
Accept wildcard characters: False
97-
Dynamic: False
9888
```
9989
100-
### -Name
90+
### -NodePoolName
10191
The name of the agent pool.
10292
10393
```yaml
@@ -110,7 +100,6 @@ Position: Named
110100
Default value: None
111101
Accept pipeline input: False
112102
Accept wildcard characters: False
113-
Dynamic: False
114103
```
115104
116105
### -ResourceGroupName
@@ -126,7 +115,6 @@ Position: Named
126115
Default value: None
127116
Accept pipeline input: False
128117
Accept wildcard characters: False
129-
Dynamic: False
130118
```
131119
132120
### -SubscriptionId
@@ -143,7 +131,6 @@ Position: Named
143131
Default value: (Get-AzContext).Subscription.Id
144132
Accept pipeline input: False
145133
Accept wildcard characters: False
146-
Dynamic: False
147134
```
148135
149136
### CommonParameters
@@ -155,20 +142,23 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
155142
156143
## OUTPUTS
157144
158-
### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20191001.IAgentPoolUpgradeProfile
159-
160-
## ALIASES
145+
### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IAgentPoolUpgradeProfile
161146
162147
## NOTES
163148
164-
### COMPLEX PARAMETER PROPERTIES
149+
ALIASES
150+
151+
COMPLEX PARAMETER PROPERTIES
152+
165153
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
166154
167-
#### INPUTOBJECT <IAksIdentity>: Identity Parameter
155+
156+
INPUTOBJECT <IAksIdentity>: Identity Parameter
168157
- `[AgentPoolName <String>]`: The name of the agent pool.
169158
- `[Id <String>]`: Resource identity path
170-
- `[Name <String>]`: The name of the managed cluster resource.
159+
- `[PrivateEndpointConnectionName <String>]`: The name of the private endpoint connection.
171160
- `[ResourceGroupName <String>]`: The name of the resource group.
161+
- `[ResourceName <String>]`: The name of the managed cluster resource.
172162
- `[RoleName <String>]`: The name of the role for managed cluster accessProfile resource.
173163
- `[SubscriptionId <String>]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
174164

src/Aks/docs/Get-AzAksUpgradeProfile.md renamed to src/Aks/Aks.Autorest/docs/Get-AzAksUpgradeProfile.md

Lines changed: 31 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Gets the details of the upgrade profile for a managed cluster with a specified r
1414

1515
### Get (Default)
1616
```
17-
Get-AzAksUpgradeProfile -Name <String> -ResourceGroupName <String> [-SubscriptionId <String[]>]
17+
Get-AzAksUpgradeProfile -ClusterName <String> -ResourceGroupName <String> [-SubscriptionId <String[]>]
1818
[-DefaultProfile <PSObject>] [<CommonParameters>]
1919
```
2020

@@ -28,25 +28,33 @@ Gets the details of the upgrade profile for a managed cluster with a specified r
2828

2929
## EXAMPLES
3030

31-
### Example 1: {{ Add title here }}
31+
### Example 1: Get Aks upgrade profile with resource group name and cluster name
3232
```powershell
33-
PS C:\> {{ Add code here }}
33+
PS C:\> Get-AzAksUpgradeProfile -ResourceGroupName group -Name myCluster
3434
35-
{{ Add output here }}
35+
Name Type
36+
---- ----
37+
default Microsoft.ContainerService/managedClusters/upgradeprofiles
3638
```
3739

38-
{{ Add description here }}
40+
Get Aks upgrade profile with resource group name and cluster name.
3941

40-
### Example 2: {{ Add title here }}
41-
```powershell
42-
PS C:\> {{ Add code here }}
42+
## PARAMETERS
4343

44-
{{ Add output here }}
45-
```
44+
### -ClusterName
45+
The name of the managed cluster resource.
4646

47-
{{ Add description here }}
47+
```yaml
48+
Type: System.String
49+
Parameter Sets: Get
50+
Aliases: Name
4851

49-
## PARAMETERS
52+
Required: True
53+
Position: Named
54+
Default value: None
55+
Accept pipeline input: False
56+
Accept wildcard characters: False
57+
```
5058
5159
### -DefaultProfile
5260
The credentials, account, tenant, and subscription used for communication with Azure.
@@ -61,7 +69,6 @@ Position: Named
6169
Default value: None
6270
Accept pipeline input: False
6371
Accept wildcard characters: False
64-
Dynamic: False
6572
```
6673
6774
### -InputObject
@@ -78,23 +85,6 @@ Position: Named
7885
Default value: None
7986
Accept pipeline input: True (ByValue)
8087
Accept wildcard characters: False
81-
Dynamic: False
82-
```
83-
84-
### -Name
85-
The name of the managed cluster resource.
86-
87-
```yaml
88-
Type: System.String
89-
Parameter Sets: Get
90-
Aliases:
91-
92-
Required: True
93-
Position: Named
94-
Default value: None
95-
Accept pipeline input: False
96-
Accept wildcard characters: False
97-
Dynamic: False
9888
```
9989
10090
### -ResourceGroupName
@@ -110,7 +100,6 @@ Position: Named
110100
Default value: None
111101
Accept pipeline input: False
112102
Accept wildcard characters: False
113-
Dynamic: False
114103
```
115104
116105
### -SubscriptionId
@@ -127,7 +116,6 @@ Position: Named
127116
Default value: (Get-AzContext).Subscription.Id
128117
Accept pipeline input: False
129118
Accept wildcard characters: False
130-
Dynamic: False
131119
```
132120
133121
### CommonParameters
@@ -139,20 +127,25 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
139127
140128
## OUTPUTS
141129
142-
### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20191001.IManagedClusterUpgradeProfile
143-
144-
## ALIASES
130+
### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20200901.IManagedClusterUpgradeProfile
145131
146132
## NOTES
147133
148-
### COMPLEX PARAMETER PROPERTIES
134+
ALIASES
135+
136+
Get-AzAksClusterUpgradeProfile
137+
138+
COMPLEX PARAMETER PROPERTIES
139+
149140
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
150141
151-
#### INPUTOBJECT <IAksIdentity>: Identity Parameter
142+
143+
INPUTOBJECT <IAksIdentity>: Identity Parameter
152144
- `[AgentPoolName <String>]`: The name of the agent pool.
153145
- `[Id <String>]`: Resource identity path
154-
- `[Name <String>]`: The name of the managed cluster resource.
146+
- `[PrivateEndpointConnectionName <String>]`: The name of the private endpoint connection.
155147
- `[ResourceGroupName <String>]`: The name of the resource group.
148+
- `[ResourceName <String>]`: The name of the managed cluster resource.
156149
- `[RoleName <String>]`: The name of the role for managed cluster accessProfile resource.
157150
- `[SubscriptionId <String>]`: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
158151

0 commit comments

Comments
 (0)