Skip to content

Commit cf3e4bd

Browse files
[skip ci] Archive 2530bb7 (#27689)
1 parent 7794ca9 commit cf3e4bd

File tree

741 files changed

+41563
-25937
lines changed

Some content is hidden

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

741 files changed

+41563
-25937
lines changed

generated/Aks/Aks.Autorest/Az.Aks.format.ps1xml

Lines changed: 595 additions & 585 deletions
Large diffs are not rendered by default.

generated/Aks/Aks.Autorest/Az.Aks.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.Aks.private.dll'
1313
FormatsToProcess = './Az.Aks.format.ps1xml'
14-
FunctionsToExport = 'Get-AzAksMaintenanceConfiguration', 'Get-AzAksManagedClusterCommandResult', 'Get-AzAksManagedClusterOSOption', 'Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint', 'Get-AzAksNodePoolUpgradeProfile', 'Get-AzAksSnapshot', 'Get-AzAksUpgradeProfile', 'Get-AzAksVersion', 'Install-AzAksCliTool', 'Invoke-AzAksAbortAgentPoolLatestOperation', 'Invoke-AzAksAbortManagedClusterLatestOperation', 'Invoke-AzAksRotateManagedClusterServiceAccountSigningKey', 'New-AzAksMaintenanceConfiguration', 'New-AzAksSnapshot', 'New-AzAksTimeInWeekObject', 'New-AzAksTimeSpanObject', 'Remove-AzAksMaintenanceConfiguration', 'Remove-AzAksSnapshot', 'Start-AzAksCluster', 'Start-AzAksManagedClusterCommand', 'Stop-AzAksCluster', '*'
15-
AliasesToExport = 'Get-AzAksClusterUpgradeProfile', '*'
14+
FunctionsToExport = 'Get-AzAksMaintenanceConfiguration', 'Get-AzAksManagedClusterCommandResult', 'Get-AzAksManagedClusterOSOption', 'Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint', 'Get-AzAksNodePoolUpgradeProfile', 'Get-AzAksSnapshot', 'Get-AzAksUpgradeProfile', 'Get-AzAksVersion', 'Install-AzAksCliTool', 'Invoke-AzAksAbortAgentPoolLatestOperation', 'Invoke-AzAksAbortManagedClusterLatestOperation', 'Invoke-AzAksRotateManagedClusterServiceAccountSigningKey', 'New-AzAksMaintenanceConfiguration', 'New-AzAksSnapshot', 'New-AzAksTimeInWeekObject', 'New-AzAksTimeSpanObject', 'Remove-AzAksMaintenanceConfiguration', 'Remove-AzAksSnapshot', 'Start-AzAksCluster', 'Start-AzAksManagedClusterCommand', 'Stop-AzAksCluster', 'Update-AzAksMaintenanceConfiguration'
15+
AliasesToExport = 'Get-AzAksClusterUpgradeProfile'
1616
PrivateData = @{
1717
PSData = @{
1818
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Aks'

generated/Aks/Aks.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Aks")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("6.1.0")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("6.1.0")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("6.1.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("6.1.1")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]
27-

generated/Aks/Aks.Autorest/check-dependencies.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
1313
# is regenerated.
1414
# ----------------------------------------------------------------------------------
15-
param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
15+
param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
1616
$ErrorActionPreference = 'Stop'
1717

18-
if(-not $Isolated) {
18+
if(-not $NotIsolated) {
1919
Write-Host -ForegroundColor Green 'Creating isolated process...'
2020
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
21-
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
21+
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
2222
return
2323
}
2424

generated/Aks/Aks.Autorest/exports/Get-AzAksMaintenanceConfiguration.ps1

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $MaintenanceConfig | Get-AzAksMaintenanceConfiguration
3232
.Inputs
3333
Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity
3434
.Outputs
35-
Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration
35+
Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration
3636
.Notes
3737
COMPLEX PARAMETER PROPERTIES
3838
@@ -49,14 +49,27 @@ INPUTOBJECT <IAksIdentity>: Identity Parameter
4949
[ResourceName <String>]: The name of the managed cluster resource.
5050
[RoleName <String>]: The name of the role for managed cluster accessProfile resource.
5151
[SubscriptionId <String>]: The ID of the target subscription.
52+
53+
MANAGEDCLUSTERINPUTOBJECT <IAksIdentity>: Identity Parameter
54+
[AgentPoolName <String>]: The name of the agent pool.
55+
[CommandId <String>]: Id of the command.
56+
[ConfigName <String>]: The name of the maintenance configuration.
57+
[Id <String>]: Resource identity path
58+
[Location <String>]: The name of Azure region.
59+
[PrivateEndpointConnectionName <String>]: The name of the private endpoint connection.
60+
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
61+
[ResourceName <String>]: The name of the managed cluster resource.
62+
[RoleName <String>]: The name of the role for managed cluster accessProfile resource.
63+
[SubscriptionId <String>]: The ID of the target subscription.
5264
.Link
5365
https://learn.microsoft.com/powershell/module/az.aks/get-azaksmaintenanceconfiguration
5466
#>
5567
function Get-AzAksMaintenanceConfiguration {
56-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration])]
68+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration])]
5769
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
5870
param(
5971
[Parameter(ParameterSetName='Get', Mandatory)]
72+
[Parameter(ParameterSetName='GetViaIdentityManagedCluster', Mandatory)]
6073
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Path')]
6174
[System.String]
6275
# The name of the maintenance configuration.
@@ -89,9 +102,14 @@ param(
89102
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Path')]
90103
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity]
91104
# Identity Parameter
92-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
93105
${InputObject},
94106

107+
[Parameter(ParameterSetName='GetViaIdentityManagedCluster', Mandatory, ValueFromPipeline)]
108+
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Path')]
109+
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity]
110+
# Identity Parameter
111+
${ManagedClusterInputObject},
112+
95113
[Parameter()]
96114
[Alias('AzureRMContext', 'AzureCredential')]
97115
[ValidateNotNull()]
@@ -148,6 +166,15 @@ begin {
148166
$PSBoundParameters['OutBuffer'] = 1
149167
}
150168
$parameterSet = $PSCmdlet.ParameterSetName
169+
170+
$testPlayback = $false
171+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
172+
173+
$context = Get-AzContext
174+
if (-not $context -and -not $testPlayback) {
175+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
176+
exit
177+
}
151178

152179
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
153180
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -169,11 +196,10 @@ begin {
169196
$mapping = @{
170197
Get = 'Az.Aks.private\Get-AzAksMaintenanceConfiguration_Get';
171198
GetViaIdentity = 'Az.Aks.private\Get-AzAksMaintenanceConfiguration_GetViaIdentity';
199+
GetViaIdentityManagedCluster = 'Az.Aks.private\Get-AzAksMaintenanceConfiguration_GetViaIdentityManagedCluster';
172200
List = 'Az.Aks.private\Get-AzAksMaintenanceConfiguration_List';
173201
}
174-
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
175-
$testPlayback = $false
176-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
202+
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
177203
if ($testPlayback) {
178204
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
179205
} else {
@@ -187,6 +213,9 @@ begin {
187213
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
188214
}
189215
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
216+
if ($wrappedCmd -eq $null) {
217+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
218+
}
190219
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
191220
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
192221
$steppablePipeline.Begin($PSCmdlet)

generated/Aks/Aks.Autorest/exports/Get-AzAksManagedClusterCommandResult.ps1

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Get-AzAksManagedClusterCommandResult -ResourceGroupName mygroup -ResourceName my
2525
.Inputs
2626
Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity
2727
.Outputs
28-
Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IRunCommandResult
28+
Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IRunCommandResult
2929
.Notes
3030
COMPLEX PARAMETER PROPERTIES
3131
@@ -42,14 +42,27 @@ INPUTOBJECT <IAksIdentity>: Identity Parameter
4242
[ResourceName <String>]: The name of the managed cluster resource.
4343
[RoleName <String>]: The name of the role for managed cluster accessProfile resource.
4444
[SubscriptionId <String>]: The ID of the target subscription.
45+
46+
MANAGEDCLUSTERINPUTOBJECT <IAksIdentity>: Identity Parameter
47+
[AgentPoolName <String>]: The name of the agent pool.
48+
[CommandId <String>]: Id of the command.
49+
[ConfigName <String>]: The name of the maintenance configuration.
50+
[Id <String>]: Resource identity path
51+
[Location <String>]: The name of Azure region.
52+
[PrivateEndpointConnectionName <String>]: The name of the private endpoint connection.
53+
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
54+
[ResourceName <String>]: The name of the managed cluster resource.
55+
[RoleName <String>]: The name of the role for managed cluster accessProfile resource.
56+
[SubscriptionId <String>]: The ID of the target subscription.
4557
.Link
4658
https://learn.microsoft.com/powershell/module/az.aks/get-azaksmanagedclustercommandresult
4759
#>
4860
function Get-AzAksManagedClusterCommandResult {
49-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IRunCommandResult])]
61+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IRunCommandResult])]
5062
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
5163
param(
5264
[Parameter(ParameterSetName='Get', Mandatory)]
65+
[Parameter(ParameterSetName='GetViaIdentityManagedCluster', Mandatory)]
5366
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Path')]
5467
[System.String]
5568
# Id of the command.
@@ -79,9 +92,14 @@ param(
7992
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Path')]
8093
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity]
8194
# Identity Parameter
82-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8395
${InputObject},
8496

97+
[Parameter(ParameterSetName='GetViaIdentityManagedCluster', Mandatory, ValueFromPipeline)]
98+
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Path')]
99+
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity]
100+
# Identity Parameter
101+
${ManagedClusterInputObject},
102+
85103
[Parameter()]
86104
[Alias('AzureRMContext', 'AzureCredential')]
87105
[ValidateNotNull()]
@@ -144,6 +162,15 @@ begin {
144162
$PSBoundParameters['OutBuffer'] = 1
145163
}
146164
$parameterSet = $PSCmdlet.ParameterSetName
165+
166+
$testPlayback = $false
167+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
168+
169+
$context = Get-AzContext
170+
if (-not $context -and -not $testPlayback) {
171+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
172+
exit
173+
}
147174

148175
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
149176
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -165,10 +192,9 @@ begin {
165192
$mapping = @{
166193
Get = 'Az.Aks.private\Get-AzAksManagedClusterCommandResult_Get';
167194
GetViaIdentity = 'Az.Aks.private\Get-AzAksManagedClusterCommandResult_GetViaIdentity';
195+
GetViaIdentityManagedCluster = 'Az.Aks.private\Get-AzAksManagedClusterCommandResult_GetViaIdentityManagedCluster';
168196
}
169-
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
170-
$testPlayback = $false
171-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
197+
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
172198
if ($testPlayback) {
173199
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
174200
} else {
@@ -182,6 +208,9 @@ begin {
182208
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
183209
}
184210
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
211+
if ($wrappedCmd -eq $null) {
212+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
213+
}
185214
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
186215
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
187216
$steppablePipeline.Begin($PSCmdlet)

generated/Aks/Aks.Autorest/exports/Get-AzAksManagedClusterOSOption.ps1

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Get-AzAksManagedClusterOSOption -Location eastus
2525
.Inputs
2626
Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity
2727
.Outputs
28-
Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOSOptionProfile
28+
Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOSOptionProfile
2929
.Notes
3030
COMPLEX PARAMETER PROPERTIES
3131
@@ -46,7 +46,7 @@ INPUTOBJECT <IAksIdentity>: Identity Parameter
4646
https://learn.microsoft.com/powershell/module/az.aks/get-azaksmanagedclusterosoption
4747
#>
4848
function Get-AzAksManagedClusterOSOption {
49-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOSOptionProfile])]
49+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOSOptionProfile])]
5050
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
5151
param(
5252
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -66,7 +66,6 @@ param(
6666
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Category('Path')]
6767
[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity]
6868
# Identity Parameter
69-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
7069
${InputObject},
7170

7271
[Parameter()]
@@ -131,6 +130,15 @@ begin {
131130
$PSBoundParameters['OutBuffer'] = 1
132131
}
133132
$parameterSet = $PSCmdlet.ParameterSetName
133+
134+
$testPlayback = $false
135+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
136+
137+
$context = Get-AzContext
138+
if (-not $context -and -not $testPlayback) {
139+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
140+
exit
141+
}
134142

135143
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
136144
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -153,9 +161,7 @@ begin {
153161
Get = 'Az.Aks.private\Get-AzAksManagedClusterOSOption_Get';
154162
GetViaIdentity = 'Az.Aks.private\Get-AzAksManagedClusterOSOption_GetViaIdentity';
155163
}
156-
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
157-
$testPlayback = $false
158-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
164+
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
159165
if ($testPlayback) {
160166
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
161167
} else {
@@ -169,6 +175,9 @@ begin {
169175
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
170176
}
171177
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
178+
if ($wrappedCmd -eq $null) {
179+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
180+
}
172181
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
173182
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
174183
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)