From 3dafe6022e87b987f15668facd49e59b384f8f1e Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Tue, 8 Apr 2025 10:49:39 +0800 Subject: [PATCH 1/8] Az.Aks update generation tool version: autorest.powershell v3->v4 --- src/Aks/Aks.Autorest/.gitignore | 1 - .../Aks.Autorest/Properties/AssemblyInfo.cs | 5 +- src/Aks/Aks.Autorest/README.md | 105 +------ .../Aks.Autorest/custom/Get-AzAksVersion.ps1 | 3 +- .../New-AzAksTimeInWeekObject.ps1 | 13 +- .../New-AzAksTimeSpanObject.ps1 | 9 +- src/Aks/Aks.Autorest/docs/Az.Aks.md | 11 +- .../docs/Get-AzAksMaintenanceConfiguration.md | 26 +- .../Get-AzAksManagedClusterCommandResult.md | 26 +- .../docs/Get-AzAksManagedClusterOSOption.md | 3 +- ...lusterOutboundNetworkDependencyEndpoint.md | 2 +- .../docs/Get-AzAksNodePoolUpgradeProfile.md | 26 +- .../Aks.Autorest/docs/Get-AzAksSnapshot.md | 3 +- .../docs/Get-AzAksUpgradeProfile.md | 3 +- src/Aks/Aks.Autorest/docs/Get-AzAksVersion.md | 2 +- ...voke-AzAksAbortAgentPoolLatestOperation.md | 24 +- ...AzAksAbortManagedClusterLatestOperation.md | 1 - ...eManagedClusterServiceAccountSigningKey.md | 1 - .../docs/New-AzAksMaintenanceConfiguration.md | 114 +++++++- .../Aks.Autorest/docs/New-AzAksSnapshot.md | 61 +++- .../docs/New-AzAksTimeInWeekObject.md | 8 +- .../docs/New-AzAksTimeSpanObject.md | 4 +- .../Remove-AzAksMaintenanceConfiguration.md | 24 +- .../Aks.Autorest/docs/Remove-AzAksSnapshot.md | 1 - .../Aks.Autorest/docs/Start-AzAksCluster.md | 1 - .../docs/Start-AzAksManagedClusterCommand.md | 63 +++- .../Aks.Autorest/docs/Stop-AzAksCluster.md | 1 - .../Update-AzAksMaintenanceConfiguration.md | 269 +++++++++++++++++ .../Update-AzAksMaintenanceConfiguration.md | 22 ++ src/Aks/Aks.Autorest/generate-info.json | 2 +- ...ew-AzAksMaintenanceConfiguration.Tests.ps1 | 4 +- ...te-AzAksMaintenanceConfiguration.Tests.ps1 | 33 +++ src/Aks/Aks.sln | 28 +- src/Aks/Aks/Az.Aks.psd1 | 13 +- src/Aks/Aks/help/Az.Aks.md | 9 +- .../help/Get-AzAksMaintenanceConfiguration.md | 26 +- .../Get-AzAksManagedClusterCommandResult.md | 26 +- .../help/Get-AzAksManagedClusterOSOption.md | 3 +- ...lusterOutboundNetworkDependencyEndpoint.md | 2 +- .../help/Get-AzAksNodePoolUpgradeProfile.md | 26 +- src/Aks/Aks/help/Get-AzAksSnapshot.md | 3 +- src/Aks/Aks/help/Get-AzAksUpgradeProfile.md | 3 +- src/Aks/Aks/help/Get-AzAksVersion.md | 2 +- ...voke-AzAksAbortAgentPoolLatestOperation.md | 25 +- ...AzAksAbortManagedClusterLatestOperation.md | 1 - ...eManagedClusterServiceAccountSigningKey.md | 1 - .../help/New-AzAksMaintenanceConfiguration.md | 115 +++++++- src/Aks/Aks/help/New-AzAksSnapshot.md | 63 +++- src/Aks/Aks/help/New-AzAksTimeInWeekObject.md | 8 +- src/Aks/Aks/help/New-AzAksTimeSpanObject.md | 4 +- .../Remove-AzAksMaintenanceConfiguration.md | 25 +- src/Aks/Aks/help/Remove-AzAksSnapshot.md | 1 - src/Aks/Aks/help/Start-AzAksCluster.md | 1 - .../help/Start-AzAksManagedClusterCommand.md | 63 +++- src/Aks/Aks/help/Stop-AzAksCluster.md | 1 - .../Update-AzAksMaintenanceConfiguration.md | 270 ++++++++++++++++++ 56 files changed, 1318 insertions(+), 272 deletions(-) create mode 100644 src/Aks/Aks.Autorest/docs/Update-AzAksMaintenanceConfiguration.md create mode 100644 src/Aks/Aks.Autorest/examples/Update-AzAksMaintenanceConfiguration.md create mode 100644 src/Aks/Aks.Autorest/test/Update-AzAksMaintenanceConfiguration.Tests.ps1 create mode 100644 src/Aks/Aks/help/Update-AzAksMaintenanceConfiguration.md diff --git a/src/Aks/Aks.Autorest/.gitignore b/src/Aks/Aks.Autorest/.gitignore index ae9a0703e0bb..6ec158bd9768 100644 --- a/src/Aks/Aks.Autorest/.gitignore +++ b/src/Aks/Aks.Autorest/.gitignore @@ -5,7 +5,6 @@ generated internal exports tools -custom/autogen-model-cmdlets test/*-TestResults.xml license.txt /*.ps1 diff --git a/src/Aks/Aks.Autorest/Properties/AssemblyInfo.cs b/src/Aks/Aks.Autorest/Properties/AssemblyInfo.cs index 6a8598debf0a..202a28fd9244 100644 --- a/src/Aks/Aks.Autorest/Properties/AssemblyInfo.cs +++ b/src/Aks/Aks.Autorest/Properties/AssemblyInfo.cs @@ -20,8 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Aks")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("6.1.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("6.1.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("6.1.1")] +[assembly: System.Reflection.AssemblyVersionAttribute("6.1.1")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] - diff --git a/src/Aks/Aks.Autorest/README.md b/src/Aks/Aks.Autorest/README.md index 0d3e24db3579..d384b6f7c704 100644 --- a/src/Aks/Aks.Autorest/README.md +++ b/src/Aks/Aks.Autorest/README.md @@ -37,11 +37,6 @@ input-file: title: Aks module-version: 0.1.0 subject-prefix: $(service-name) -identity-correction-for-post: true - -# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option -use-extension: - "@autorest/powershell": "3.x" directive: - where: @@ -52,7 +47,7 @@ directive: verb: Get|New|Set|Remove remove: true - where: - variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^Run$|^RunViaIdentity$ + variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^Run$|^RunViaIdentity$|^UpdateViaIdentityManagedCluster$|^UpdateViaIdentityManagedClusterExpanded$|^CreateViaIdentityManagedCluster$|^CreateViaIdentityManagedClusterExpanded$ subject: ^MaintenanceConfiguration$|^Snapshot$|^ManagedClusterCommand$|^SnapshotTag$ remove: true - where: @@ -65,8 +60,10 @@ directive: verb: Update remove: true - model-cmdlet: - - TimeSpan - - TimeInWeek + - model-name: TimeSpan + cmdlet-name: New-AzAksTimeSpanObject + - model-name: TimeInWeek + cmdlet-name: New-AzAksTimeInWeekObject - where: subject: ^ManagedCluster$ parameter-name: ResourceName @@ -121,96 +118,4 @@ directive: - where: subject: ContainerServiceOrchestrator hide: true - - #breaking change message - - where: - verb: Get|New - subject: MaintenanceConfiguration - set: - breaking-change: - deprecated-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration - replacement-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration - deprecated-output-properties: - - TimeInWeek Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek - - NotAllowedTime Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan - new-output-properties: - - TimeInWeek System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek] - - NotAllowedTime System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan] - change-description: - - The type of property 'TimeInWeek' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek[]' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek]' - - The type of property 'NotAllowedTime' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan]' - deprecated-by-version: 7.0.0 - deprecated-by-azversion: 14.0.0 - change-effective-date: 2025/05/19 - - - where: - verb: Get - subject: ManagedClusterOSOption - set: - breaking-change: - deprecated-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOSOptionProfile - replacement-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOSOptionProfile - deprecated-output-properties: - - OSOptionPropertyList Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOSOptionProperty - new-output-properties: - - OSOptionPropertyList System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOSOptionProperty] - change-description: - - The type of property 'OSOptionPropertyList' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOSOptionProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOSOptionProperty' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOSOptionProperty]'. - deprecated-by-version: 7.0.0 - deprecated-by-azversion: 14.0.0 - change-effective-date: 2025/05/19 - - - where: - verb: Get - subject: ManagedClusterOutboundNetworkDependencyEndpoint - set: - breaking-change: - deprecated-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOutboundEnvironmentEndpoint - replacement-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOutboundEnvironmentEndpoint - deprecated-output-properties: - - Endpoint Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IEndpointDependency - new-output-properties: - - Endpoint System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IEndpointDependency] - change-description: - - The type of property 'Endpoint' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOutboundEnvironmentEndpoint' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IEndpointDependency' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IEndpointDependency]'. - deprecated-by-version: 7.0.0 - deprecated-by-azversion: 14.0.0 - change-effective-date: 2025/05/19 - - - where: - verb: Get - subject: NodePoolUpgradeProfile - set: - breaking-change: - deprecated-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolUpgradeProfile - replacement-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolUpgradeProfile - deprecated-output-properties: - - Upgrade Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolUpgradeProfilePropertiesUpgradesItem - new-output-properties: - - Upgrade System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolUpgradeProfilePropertiesUpgradesItem] - change-description: - - The type of property 'Upgrade' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolUpgradeProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolUpgradeProfilePropertiesUpgradesItem' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolUpgradeProfilePropertiesUpgradesItem]'. - deprecated-by-version: 7.0.0 - deprecated-by-azversion: 14.0.0 - change-effective-date: 2025/05/19 - - - where: - verb: Get - subject: UpgradeProfile - set: - breaking-change: - deprecated-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterUpgradeProfile - replacement-cmdlet-output-type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterUpgradeProfile - deprecated-output-properties: - - AgentPoolProfile Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPoolUpgradeProfile - - ControlPlaneProfileUpgrade Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPoolUpgradeProfileUpgradesItem - new-output-properties: - - AgentPoolProfile System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPoolUpgradeProfile] - - ControlPlaneProfileUpgrade System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPoolUpgradeProfileUpgradesItem] - change-description: - - The type of property 'AgentPoolProfile' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterUpgradeProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPoolUpgradeProfile' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPoolUpgradeProfile]'. - - The type of property 'ControlPlaneProfileUpgrade' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterUpgradeProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPoolUpgradeProfileUpgradesItem' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPoolUpgradeProfileUpgradesItem]'. - deprecated-by-version: 7.0.0 - deprecated-by-azversion: 14.0.0 - change-effective-date: 2025/05/19 ``` diff --git a/src/Aks/Aks.Autorest/custom/Get-AzAksVersion.ps1 b/src/Aks/Aks.Autorest/custom/Get-AzAksVersion.ps1 index 93ba2040cd06..41765bfaea06 100644 --- a/src/Aks/Aks.Autorest/custom/Get-AzAksVersion.ps1 +++ b/src/Aks/Aks.Autorest/custom/Get-AzAksVersion.ps1 @@ -23,8 +23,7 @@ List available version for creating managed Kubernetes cluster. The operation returns properties of each orchestrator including version, available upgrades and whether that version or upgrades are in preview. #> function Get-AzAksVersion { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20190801.IOrchestratorVersionProfileListResult])] - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20190801.IOrchestratorVersionProfileListResult", "14.0.0", "7.0.0", "2025/05/19", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOrchestratorVersionProfileListResult", DeprecatedOutputProperties = ("Orchestrator Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOrchestratorVersionProfile"), NewOutputProperties = ("Orchestrator System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOrchestratorVersionProfile]"))] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOrchestratorVersionProfileListResult])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/Aks/Aks.Autorest/custom/autogen-model-cmdlets/New-AzAksTimeInWeekObject.ps1 b/src/Aks/Aks.Autorest/custom/autogen-model-cmdlets/New-AzAksTimeInWeekObject.ps1 index d90a6f4c14f6..45cb04a04087 100644 --- a/src/Aks/Aks.Autorest/custom/autogen-model-cmdlets/New-AzAksTimeInWeekObject.ps1 +++ b/src/Aks/Aks.Autorest/custom/autogen-model-cmdlets/New-AzAksTimeInWeekObject.ps1 @@ -21,18 +21,19 @@ Create an in-memory object for TimeInWeek. Create an in-memory object for TimeInWeek. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.TimeInWeek +Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.TimeInWeek .Link -https://learn.microsoft.com/powershell/module/Az.Aks/new-AzAksTimeInWeekObject +https://learn.microsoft.com/powershell/module/Az.Aks/new-azakstimeinweekobject #> function New-AzAksTimeInWeekObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.TimeInWeek')] + [Microsoft.Azure.PowerShell.Cmdlets.Aks.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.TimeInWeek')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(HelpMessage="The day of the week.")] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.WeekDay])] - [Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.WeekDay] + [Microsoft.Azure.PowerShell.Cmdlets.Aks.PSArgumentCompleterAttribute("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")] + [string] $Day, [Parameter(HelpMessage="Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.")] [int[]] @@ -40,7 +41,7 @@ function New-AzAksTimeInWeekObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.TimeInWeek]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.TimeInWeek]::New() if ($PSBoundParameters.ContainsKey('Day')) { $Object.Day = $Day diff --git a/src/Aks/Aks.Autorest/custom/autogen-model-cmdlets/New-AzAksTimeSpanObject.ps1 b/src/Aks/Aks.Autorest/custom/autogen-model-cmdlets/New-AzAksTimeSpanObject.ps1 index 3b26eb74c7f5..d2907f6eff6c 100644 --- a/src/Aks/Aks.Autorest/custom/autogen-model-cmdlets/New-AzAksTimeSpanObject.ps1 +++ b/src/Aks/Aks.Autorest/custom/autogen-model-cmdlets/New-AzAksTimeSpanObject.ps1 @@ -21,12 +21,13 @@ Create an in-memory object for TimeSpan. Create an in-memory object for TimeSpan. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.TimeSpan +Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.TimeSpan .Link -https://learn.microsoft.com/powershell/module/Az.Aks/new-AzAksTimeSpanObject +https://learn.microsoft.com/powershell/module/Az.Aks/new-azakstimespanobject #> function New-AzAksTimeSpanObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.TimeSpan')] + [Microsoft.Azure.PowerShell.Cmdlets.Aks.ModelCmdletAttribute()] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.TimeSpan')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -39,7 +40,7 @@ function New-AzAksTimeSpanObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.TimeSpan]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.TimeSpan]::New() if ($PSBoundParameters.ContainsKey('End')) { $Object.End = $End diff --git a/src/Aks/Aks.Autorest/docs/Az.Aks.md b/src/Aks/Aks.Autorest/docs/Az.Aks.md index aba2f8ec2e71..ca629cec5c81 100644 --- a/src/Aks/Aks.Autorest/docs/Az.Aks.md +++ b/src/Aks/Aks.Autorest/docs/Az.Aks.md @@ -1,6 +1,6 @@ --- Module Name: Az.Aks -Module Guid: 31b8ecad-b901-48df-bd28-148fc912d386 +Module Guid: c58774ba-be69-4451-842a-3d5d9ccc6473 Download Help Link: https://learn.microsoft.com/powershell/module/az.aks Help Version: 1.0.0.0 Locale: en-US @@ -54,10 +54,10 @@ If the operation completes before cancellation can take place, a 409 error code Rotates the service account signing keys of a managed cluster. ### [New-AzAksMaintenanceConfiguration](New-AzAksMaintenanceConfiguration.md) -Creates or updates a maintenance configuration in the specified managed cluster. +create a maintenance configuration in the specified managed cluster. ### [New-AzAksSnapshot](New-AzAksSnapshot.md) -Creates or updates a snapshot. +create a snapshot. ### [New-AzAksTimeInWeekObject](New-AzAksTimeInWeekObject.md) Create an in-memory object for TimeInWeek. @@ -75,7 +75,7 @@ Deletes a snapshot. See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about starting a cluster. ### [Start-AzAksManagedClusterCommand](Start-AzAksManagedClusterCommand.md) -AKS will create a pod to run the command. +AKS will run a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). @@ -85,3 +85,6 @@ Stopping a cluster stops the control plane and agent nodes entirely, while maint A cluster does not accrue charges while it is stopped. See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster) for more details about stopping a cluster. +### [Update-AzAksMaintenanceConfiguration](Update-AzAksMaintenanceConfiguration.md) +update a maintenance configuration in the specified managed cluster. + diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksMaintenanceConfiguration.md b/src/Aks/Aks.Autorest/docs/Get-AzAksMaintenanceConfiguration.md index 16d6d1ae2a09..00404a3123aa 100644 --- a/src/Aks/Aks.Autorest/docs/Get-AzAksMaintenanceConfiguration.md +++ b/src/Aks/Aks.Autorest/docs/Get-AzAksMaintenanceConfiguration.md @@ -30,6 +30,12 @@ Get-AzAksMaintenanceConfiguration -InputObject [-DefaultProfile < [] ``` +### GetViaIdentityManagedCluster +``` +Get-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject + [-DefaultProfile ] [] +``` + ## DESCRIPTION Gets the specified maintenance configuration of a managed cluster. @@ -85,7 +91,7 @@ The name of the maintenance configuration. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityManagedCluster Aliases: Required: True @@ -113,7 +119,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -127,6 +132,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ManagedClusterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: GetViaIdentityManagedCluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -182,7 +202,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration ## NOTES diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterCommandResult.md b/src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterCommandResult.md index 8845c58c2497..6a518139a7a2 100644 --- a/src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterCommandResult.md +++ b/src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterCommandResult.md @@ -24,6 +24,12 @@ Get-AzAksManagedClusterCommandResult -InputObject [-DefaultProfil [] ``` +### GetViaIdentityManagedCluster +``` +Get-AzAksManagedClusterCommandResult -CommandId -ManagedClusterInputObject + [-DefaultProfile ] [-PassThru] [] +``` + ## DESCRIPTION Gets the results of a command which has been run on the Managed Cluster. @@ -56,7 +62,7 @@ Id of the command. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityManagedCluster Aliases: Required: True @@ -84,7 +90,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -98,6 +103,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ManagedClusterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: GetViaIdentityManagedCluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -PassThru Returns true when the command succeeds @@ -168,7 +188,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IRunCommandResult +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IRunCommandResult ## NOTES diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterOSOption.md b/src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterOSOption.md index f9b91621f760..d7697cb5d732 100644 --- a/src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterOSOption.md +++ b/src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterOSOption.md @@ -62,7 +62,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -130,7 +129,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOSOptionProfile +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOSOptionProfile ## NOTES diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md b/src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md index 6b4fd31f6c08..64337ec5c4aa 100644 --- a/src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md +++ b/src/Aks/Aks.Autorest/docs/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md @@ -114,7 +114,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOutboundEnvironmentEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOutboundEnvironmentEndpoint ## NOTES diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksNodePoolUpgradeProfile.md b/src/Aks/Aks.Autorest/docs/Get-AzAksNodePoolUpgradeProfile.md index 61fd43f23faa..5fc632fb5fc2 100644 --- a/src/Aks/Aks.Autorest/docs/Get-AzAksNodePoolUpgradeProfile.md +++ b/src/Aks/Aks.Autorest/docs/Get-AzAksNodePoolUpgradeProfile.md @@ -23,6 +23,12 @@ Get-AzAksNodePoolUpgradeProfile -ClusterName -NodePoolName -Re Get-AzAksNodePoolUpgradeProfile -InputObject [-DefaultProfile ] [] ``` +### GetViaIdentityManagedCluster +``` +Get-AzAksNodePoolUpgradeProfile -ManagedClusterInputObject -NodePoolName + [-DefaultProfile ] [] +``` + ## DESCRIPTION Gets the upgrade profile for an agent pool. @@ -76,7 +82,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -90,12 +95,27 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ManagedClusterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: GetViaIdentityManagedCluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -NodePoolName The name of the agent pool. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityManagedCluster Aliases: AgentPoolName Required: True @@ -145,7 +165,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolUpgradeProfile +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolUpgradeProfile ## NOTES diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksSnapshot.md b/src/Aks/Aks.Autorest/docs/Get-AzAksSnapshot.md index eafd452a9c21..7713f6b6295a 100644 --- a/src/Aks/Aks.Autorest/docs/Get-AzAksSnapshot.md +++ b/src/Aks/Aks.Autorest/docs/Get-AzAksSnapshot.md @@ -116,7 +116,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -185,7 +184,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISnapshot +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ISnapshot ## NOTES diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksUpgradeProfile.md b/src/Aks/Aks.Autorest/docs/Get-AzAksUpgradeProfile.md index 5d2ea560051f..bbc245351403 100644 --- a/src/Aks/Aks.Autorest/docs/Get-AzAksUpgradeProfile.md +++ b/src/Aks/Aks.Autorest/docs/Get-AzAksUpgradeProfile.md @@ -76,7 +76,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -130,7 +129,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterUpgradeProfile +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterUpgradeProfile ## NOTES diff --git a/src/Aks/Aks.Autorest/docs/Get-AzAksVersion.md b/src/Aks/Aks.Autorest/docs/Get-AzAksVersion.md index 8dee94b812dc..a078792aab49 100644 --- a/src/Aks/Aks.Autorest/docs/Get-AzAksVersion.md +++ b/src/Aks/Aks.Autorest/docs/Get-AzAksVersion.md @@ -99,7 +99,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20190801.IOrchestratorVersionProfileListResult +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOrchestratorVersionProfileListResult ## NOTES diff --git a/src/Aks/Aks.Autorest/docs/Invoke-AzAksAbortAgentPoolLatestOperation.md b/src/Aks/Aks.Autorest/docs/Invoke-AzAksAbortAgentPoolLatestOperation.md index 66be01d050b7..573783d47aa1 100644 --- a/src/Aks/Aks.Autorest/docs/Invoke-AzAksAbortAgentPoolLatestOperation.md +++ b/src/Aks/Aks.Autorest/docs/Invoke-AzAksAbortAgentPoolLatestOperation.md @@ -27,6 +27,12 @@ Invoke-AzAksAbortAgentPoolLatestOperation -InputObject [-DefaultP [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### AbortViaIdentityManagedcluster +``` +Invoke-AzAksAbortAgentPoolLatestOperation -AgentPoolName -ManagedclusterInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Aborts the currently running operation on the agent pool. The Agent Pool will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. @@ -50,7 +56,7 @@ The name of the agent pool. ```yaml Type: System.String -Parameter Sets: Abort +Parameter Sets: Abort, AbortViaIdentityManagedcluster Aliases: Required: True @@ -93,7 +99,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -107,6 +112,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ManagedclusterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: AbortViaIdentityManagedcluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -NoWait Run the command asynchronously diff --git a/src/Aks/Aks.Autorest/docs/Invoke-AzAksAbortManagedClusterLatestOperation.md b/src/Aks/Aks.Autorest/docs/Invoke-AzAksAbortManagedClusterLatestOperation.md index 5accf11ebfa5..08721e456c26 100644 --- a/src/Aks/Aks.Autorest/docs/Invoke-AzAksAbortManagedClusterLatestOperation.md +++ b/src/Aks/Aks.Autorest/docs/Invoke-AzAksAbortManagedClusterLatestOperation.md @@ -78,7 +78,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity diff --git a/src/Aks/Aks.Autorest/docs/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md b/src/Aks/Aks.Autorest/docs/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md index d8ebc8854fda..12b8671ef609 100644 --- a/src/Aks/Aks.Autorest/docs/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md +++ b/src/Aks/Aks.Autorest/docs/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md @@ -72,7 +72,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity diff --git a/src/Aks/Aks.Autorest/docs/New-AzAksMaintenanceConfiguration.md b/src/Aks/Aks.Autorest/docs/New-AzAksMaintenanceConfiguration.md index 07d33db87d4b..02f3a889e79d 100644 --- a/src/Aks/Aks.Autorest/docs/New-AzAksMaintenanceConfiguration.md +++ b/src/Aks/Aks.Autorest/docs/New-AzAksMaintenanceConfiguration.md @@ -8,18 +8,46 @@ schema: 2.0.0 # New-AzAksMaintenanceConfiguration ## SYNOPSIS -Creates or updates a maintenance configuration in the specified managed cluster. +create a maintenance configuration in the specified managed cluster. ## SYNTAX +### CreateExpanded (Default) ``` New-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName -ResourceName [-SubscriptionId ] [-NotAllowedTime ] [-TimeInWeek ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### CreateViaIdentityManagedCluster +``` +New-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject + -Parameter [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CreateViaIdentityManagedClusterExpanded +``` +New-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject + [-NotAllowedTime ] [-TimeInWeek ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +New-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName -ResourceName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonString +``` +New-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName -ResourceName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION -Creates or updates a maintenance configuration in the specified managed cluster. +create a maintenance configuration in the specified managed cluster. ## EXAMPLES @@ -71,13 +99,57 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ManagedClusterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: CreateViaIdentityManagedCluster, CreateViaIdentityManagedClusterExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -NotAllowedTime Time slots on which upgrade is not allowed. -To construct, see NOTES section for NOTALLOWEDTIME properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ITimeSpan[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan[] +Parameter Sets: CreateExpanded, CreateViaIdentityManagedClusterExpanded Aliases: Required: False @@ -87,13 +159,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Parameter +See [planned maintenance](https://docs.microsoft.com/azure/aks/planned-maintenance) for more information about planned maintenance. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration +Parameter Sets: CreateViaIdentityManagedCluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: True @@ -108,7 +195,7 @@ The name of the managed cluster resource. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: True @@ -123,7 +210,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString Aliases: Required: False @@ -135,11 +222,10 @@ Accept wildcard characters: False ### -TimeInWeek If two array entries specify the same day of the week, the applied configuration is the union of times in both entries. -To construct, see NOTES section for TIMEINWEEK properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ITimeInWeek[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek[] +Parameter Sets: CreateExpanded, CreateViaIdentityManagedClusterExpanded Aliases: Required: False @@ -185,9 +271,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration ## NOTES diff --git a/src/Aks/Aks.Autorest/docs/New-AzAksSnapshot.md b/src/Aks/Aks.Autorest/docs/New-AzAksSnapshot.md index c0f62ddb3cbf..852d547f367f 100644 --- a/src/Aks/Aks.Autorest/docs/New-AzAksSnapshot.md +++ b/src/Aks/Aks.Autorest/docs/New-AzAksSnapshot.md @@ -8,18 +8,31 @@ schema: 2.0.0 # New-AzAksSnapshot ## SYNOPSIS -Creates or updates a snapshot. +create a snapshot. ## SYNTAX +### CreateExpanded (Default) ``` New-AzAksSnapshot -ResourceGroupName -ResourceName -Location - [-SubscriptionId ] [-CreationDataSourceResourceId ] [-SnapshotType ] + [-SubscriptionId ] [-CreationDataSourceResourceId ] [-SnapshotType ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### CreateViaJsonFilePath +``` +New-AzAksSnapshot -ResourceGroupName -ResourceName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzAksSnapshot -ResourceGroupName -ResourceName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION -Creates or updates a snapshot. +create a snapshot. ## EXAMPLES @@ -45,7 +58,7 @@ This is the ARM ID of the source object to be used to create the target object. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -71,12 +84,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Location The geo-location where the resource lives ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -122,8 +165,8 @@ The type of a snapshot. The default is NodePool. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.SnapshotType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -153,7 +196,7 @@ Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -201,7 +244,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISnapshot +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ISnapshot ## NOTES diff --git a/src/Aks/Aks.Autorest/docs/New-AzAksTimeInWeekObject.md b/src/Aks/Aks.Autorest/docs/New-AzAksTimeInWeekObject.md index d425ea5fc3ce..e0c0b1f7c225 100644 --- a/src/Aks/Aks.Autorest/docs/New-AzAksTimeInWeekObject.md +++ b/src/Aks/Aks.Autorest/docs/New-AzAksTimeInWeekObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.Aks -online version: https://learn.microsoft.com/powershell/module/Az.Aks/new-AzAksTimeInWeekObject +online version: https://learn.microsoft.com/powershell/module/Az.Aks/new-azakstimeinweekobject schema: 2.0.0 --- @@ -13,7 +13,7 @@ Create an in-memory object for TimeInWeek. ## SYNTAX ``` -New-AzAksTimeInWeekObject [-Day ] [-HourSlot ] [] +New-AzAksTimeInWeekObject [-Day ] [-HourSlot ] [] ``` ## DESCRIPTION @@ -42,7 +42,7 @@ and will be used for parameter *TimeInWeek* in cmdlet *New-AzAksMaintenanceConfi The day of the week. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.WeekDay +Type: System.String Parameter Sets: (All) Aliases: @@ -77,7 +77,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.TimeInWeek +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.TimeInWeek ## NOTES diff --git a/src/Aks/Aks.Autorest/docs/New-AzAksTimeSpanObject.md b/src/Aks/Aks.Autorest/docs/New-AzAksTimeSpanObject.md index 1cdbbf6909f9..c4ef05eda324 100644 --- a/src/Aks/Aks.Autorest/docs/New-AzAksTimeSpanObject.md +++ b/src/Aks/Aks.Autorest/docs/New-AzAksTimeSpanObject.md @@ -1,7 +1,7 @@ --- external help file: Module Name: Az.Aks -online version: https://learn.microsoft.com/powershell/module/Az.Aks/new-AzAksTimeSpanObject +online version: https://learn.microsoft.com/powershell/module/Az.Aks/new-azakstimespanobject schema: 2.0.0 --- @@ -76,7 +76,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.TimeSpan +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.TimeSpan ## NOTES diff --git a/src/Aks/Aks.Autorest/docs/Remove-AzAksMaintenanceConfiguration.md b/src/Aks/Aks.Autorest/docs/Remove-AzAksMaintenanceConfiguration.md index 7d269c439796..c254337342af 100644 --- a/src/Aks/Aks.Autorest/docs/Remove-AzAksMaintenanceConfiguration.md +++ b/src/Aks/Aks.Autorest/docs/Remove-AzAksMaintenanceConfiguration.md @@ -24,6 +24,12 @@ Remove-AzAksMaintenanceConfiguration -InputObject [-DefaultProfil [-Confirm] [-WhatIf] [] ``` +### DeleteViaIdentityManagedCluster +``` +Remove-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Deletes a maintenance configuration. @@ -51,7 +57,7 @@ The name of the maintenance configuration. ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityManagedCluster Aliases: Required: True @@ -79,7 +85,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -93,6 +98,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ManagedClusterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: DeleteViaIdentityManagedCluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -PassThru Returns true when the command succeeds diff --git a/src/Aks/Aks.Autorest/docs/Remove-AzAksSnapshot.md b/src/Aks/Aks.Autorest/docs/Remove-AzAksSnapshot.md index 6dc961f37792..53d6fb582018 100644 --- a/src/Aks/Aks.Autorest/docs/Remove-AzAksSnapshot.md +++ b/src/Aks/Aks.Autorest/docs/Remove-AzAksSnapshot.md @@ -64,7 +64,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity diff --git a/src/Aks/Aks.Autorest/docs/Start-AzAksCluster.md b/src/Aks/Aks.Autorest/docs/Start-AzAksCluster.md index 4ade2d134bac..f459f17334da 100644 --- a/src/Aks/Aks.Autorest/docs/Start-AzAksCluster.md +++ b/src/Aks/Aks.Autorest/docs/Start-AzAksCluster.md @@ -78,7 +78,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity diff --git a/src/Aks/Aks.Autorest/docs/Start-AzAksManagedClusterCommand.md b/src/Aks/Aks.Autorest/docs/Start-AzAksManagedClusterCommand.md index 1d46da090910..37e4c662d266 100644 --- a/src/Aks/Aks.Autorest/docs/Start-AzAksManagedClusterCommand.md +++ b/src/Aks/Aks.Autorest/docs/Start-AzAksManagedClusterCommand.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Start-AzAksManagedClusterCommand ## SYNOPSIS -AKS will create a pod to run the command. +AKS will run a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). @@ -27,8 +27,22 @@ Start-AzAksManagedClusterCommand -InputObject -Command [ [-Context ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` +### RunViaJsonFilePath +``` +Start-AzAksManagedClusterCommand -ResourceGroupName -ResourceName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### RunViaJsonString +``` +Start-AzAksManagedClusterCommand -ResourceGroupName -ResourceName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION -AKS will create a pod to run the command. +AKS will run a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). @@ -98,7 +112,7 @@ AuthToken issued for AKS AAD Server App. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: RunExpanded, RunViaIdentityExpanded Aliases: Required: False @@ -113,7 +127,7 @@ The command to run. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: RunExpanded, RunViaIdentityExpanded Aliases: Required: True @@ -128,7 +142,7 @@ A base64 encoded zip file containing the files required by the command. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: RunExpanded, RunViaIdentityExpanded Aliases: Required: False @@ -156,7 +170,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -170,6 +183,36 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Run operation + +```yaml +Type: System.String +Parameter Sets: RunViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Run operation + +```yaml +Type: System.String +Parameter Sets: RunViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -NoWait Run the command asynchronously @@ -191,7 +234,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: RunExpanded +Parameter Sets: RunExpanded, RunViaJsonFilePath, RunViaJsonString Aliases: Required: True @@ -206,7 +249,7 @@ The name of the managed cluster resource. ```yaml Type: System.String -Parameter Sets: RunExpanded +Parameter Sets: RunExpanded, RunViaJsonFilePath, RunViaJsonString Aliases: Required: True @@ -221,7 +264,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: RunExpanded +Parameter Sets: RunExpanded, RunViaJsonFilePath, RunViaJsonString Aliases: Required: False @@ -271,7 +314,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IRunCommandResult +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IRunCommandResult ## NOTES diff --git a/src/Aks/Aks.Autorest/docs/Stop-AzAksCluster.md b/src/Aks/Aks.Autorest/docs/Stop-AzAksCluster.md index 55f318e573ba..7d4643fc0b14 100644 --- a/src/Aks/Aks.Autorest/docs/Stop-AzAksCluster.md +++ b/src/Aks/Aks.Autorest/docs/Stop-AzAksCluster.md @@ -84,7 +84,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity diff --git a/src/Aks/Aks.Autorest/docs/Update-AzAksMaintenanceConfiguration.md b/src/Aks/Aks.Autorest/docs/Update-AzAksMaintenanceConfiguration.md new file mode 100644 index 000000000000..ae89b87652ce --- /dev/null +++ b/src/Aks/Aks.Autorest/docs/Update-AzAksMaintenanceConfiguration.md @@ -0,0 +1,269 @@ +--- +external help file: +Module Name: Az.Aks +online version: https://learn.microsoft.com/powershell/module/az.aks/update-azaksmaintenanceconfiguration +schema: 2.0.0 +--- + +# Update-AzAksMaintenanceConfiguration + +## SYNOPSIS +update a maintenance configuration in the specified managed cluster. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName -ResourceName + [-SubscriptionId ] [-NotAllowedTime ] [-TimeInWeek ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzAksMaintenanceConfiguration -InputObject [-NotAllowedTime ] + [-TimeInWeek ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityManagedCluster +``` +Update-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject + -Parameter [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityManagedClusterExpanded +``` +Update-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject + [-NotAllowedTime ] [-TimeInWeek ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +update a maintenance configuration in the specified managed cluster. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -ConfigName +The name of the maintenance configuration. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityManagedCluster, UpdateViaIdentityManagedClusterExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ManagedClusterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: UpdateViaIdentityManagedCluster, UpdateViaIdentityManagedClusterExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NotAllowedTime +Time slots on which upgrade is not allowed. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityManagedClusterExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Parameter +See [planned maintenance](https://docs.microsoft.com/azure/aks/planned-maintenance) for more information about planned maintenance. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration +Parameter Sets: UpdateViaIdentityManagedCluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceName +The name of the managed cluster resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TimeInWeek +If two array entries specify the same day of the week, the applied configuration is the union of times in both entries. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityManagedClusterExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration + +## NOTES + +## RELATED LINKS + diff --git a/src/Aks/Aks.Autorest/examples/Update-AzAksMaintenanceConfiguration.md b/src/Aks/Aks.Autorest/examples/Update-AzAksMaintenanceConfiguration.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/Aks/Aks.Autorest/examples/Update-AzAksMaintenanceConfiguration.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/Aks/Aks.Autorest/generate-info.json b/src/Aks/Aks.Autorest/generate-info.json index 04f5aa799086..3c66281e5758 100644 --- a/src/Aks/Aks.Autorest/generate-info.json +++ b/src/Aks/Aks.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "6b09dc9b-75bd-4489-95fe-70d9ae72f6b5" + "generate_Id": "725111ea-e9b5-4f80-af1b-eb0a593601ad" } diff --git a/src/Aks/Aks.Autorest/test/New-AzAksMaintenanceConfiguration.Tests.ps1 b/src/Aks/Aks.Autorest/test/New-AzAksMaintenanceConfiguration.Tests.ps1 index 6153e69b280d..4463a6282306 100644 --- a/src/Aks/Aks.Autorest/test/New-AzAksMaintenanceConfiguration.Tests.ps1 +++ b/src/Aks/Aks.Autorest/test/New-AzAksMaintenanceConfiguration.Tests.ps1 @@ -22,8 +22,8 @@ Describe 'New-AzAksMaintenanceConfiguration' { $MaintenanceConfig = New-AzAksMaintenanceConfiguration -ResourceGroupName $env.ResourceGroupName -ResourceName $env.AksName -ConfigName $MaintenanceConfigName -TimeInWeek $TimeInWeek -NotAllowedTime $TimeSpan $MaintenanceConfig.Name | Should -Be $MaintenanceConfigName - $MaintenanceConfig.NotAllowedTime.Start.ToString("M/d/yyyy") | Should -Be '3/1/2023' - $MaintenanceConfig.NotAllowedTime.End.ToString("M/d/yyyy") | Should -Be '3/2/2023' + $MaintenanceConfig.NotAllowedTime.Start.ToString("M-d-yyyy") | Should -Be '3-1-2023' + $MaintenanceConfig.NotAllowedTime.End.ToString("M-d-yyyy") | Should -Be '3-2-2023' $MaintenanceConfig.TimeInWeek.Day | Should -Be 'Sunday' $MaintenanceConfig.TimeInWeek.HourSlot.Count | Should -Be 2 $MaintenanceConfig.TimeInWeek.HourSlot.Contains(1) | Should -Be $true diff --git a/src/Aks/Aks.Autorest/test/Update-AzAksMaintenanceConfiguration.Tests.ps1 b/src/Aks/Aks.Autorest/test/Update-AzAksMaintenanceConfiguration.Tests.ps1 new file mode 100644 index 000000000000..a092b65a791e --- /dev/null +++ b/src/Aks/Aks.Autorest/test/Update-AzAksMaintenanceConfiguration.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzAksMaintenanceConfiguration')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzAksMaintenanceConfiguration.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzAksMaintenanceConfiguration' { + It 'UpdateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityManagedClusterExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityManagedCluster' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/Aks/Aks.sln b/src/Aks/Aks.sln index c13543287ad6..bd18da71be65 100644 --- a/src/Aks/Aks.sln +++ b/src/Aks/Aks.sln @@ -29,7 +29,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aks.Management.Sdk", "Aks.M EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Aks.Autorest", "Aks.Autorest", "{16EC2DC2-EB7B-325E-770F-D562EF2F68D3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Aks", "..\..\generated\Aks\Aks.Autorest\Az.Aks.csproj", "{1C1E7DB7-F93E-4438-AD0F-C4C15173133A}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Aks", "..\..\generated\Aks\Aks.Autorest\Az.Aks.csproj", "{47D66CC7-6EAA-49EF-B028-E60F9E8A0740}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -161,18 +161,18 @@ Global {3CB53E47-87C1-41C9-BD57-19E7B07C63FB}.Release|x64.Build.0 = Release|Any CPU {3CB53E47-87C1-41C9-BD57-19E7B07C63FB}.Release|x86.ActiveCfg = Release|Any CPU {3CB53E47-87C1-41C9-BD57-19E7B07C63FB}.Release|x86.Build.0 = Release|Any CPU - {1C1E7DB7-F93E-4438-AD0F-C4C15173133A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1C1E7DB7-F93E-4438-AD0F-C4C15173133A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1C1E7DB7-F93E-4438-AD0F-C4C15173133A}.Debug|x64.ActiveCfg = Debug|Any CPU - {1C1E7DB7-F93E-4438-AD0F-C4C15173133A}.Debug|x64.Build.0 = Debug|Any CPU - {1C1E7DB7-F93E-4438-AD0F-C4C15173133A}.Debug|x86.ActiveCfg = Debug|Any CPU - {1C1E7DB7-F93E-4438-AD0F-C4C15173133A}.Debug|x86.Build.0 = Debug|Any CPU - {1C1E7DB7-F93E-4438-AD0F-C4C15173133A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1C1E7DB7-F93E-4438-AD0F-C4C15173133A}.Release|Any CPU.Build.0 = Release|Any CPU - {1C1E7DB7-F93E-4438-AD0F-C4C15173133A}.Release|x64.ActiveCfg = Release|Any CPU - {1C1E7DB7-F93E-4438-AD0F-C4C15173133A}.Release|x64.Build.0 = Release|Any CPU - {1C1E7DB7-F93E-4438-AD0F-C4C15173133A}.Release|x86.ActiveCfg = Release|Any CPU - {1C1E7DB7-F93E-4438-AD0F-C4C15173133A}.Release|x86.Build.0 = Release|Any CPU + {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Debug|Any CPU.Build.0 = Debug|Any CPU + {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Debug|x64.ActiveCfg = Debug|Any CPU + {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Debug|x64.Build.0 = Debug|Any CPU + {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Debug|x86.ActiveCfg = Debug|Any CPU + {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Debug|x86.Build.0 = Debug|Any CPU + {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Release|Any CPU.ActiveCfg = Release|Any CPU + {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Release|Any CPU.Build.0 = Release|Any CPU + {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Release|x64.ActiveCfg = Release|Any CPU + {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Release|x64.Build.0 = Release|Any CPU + {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Release|x86.ActiveCfg = Release|Any CPU + {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -186,7 +186,7 @@ Global {3087729D-E16D-4A31-BAF7-E115A50F719B} = {7F7F3C8C-B80E-4823-B2E5-20AF86A219FA} {A7EEA531-0AD2-43CD-ACCB-9DC7E8DB86BF} = {3FD20327-1C9F-4940-A96B-AD3B05FC2185} {135EE24A-A2A6-494D-B82F-2167FC3A298E} = {3FD20327-1C9F-4940-A96B-AD3B05FC2185} - {1C1E7DB7-F93E-4438-AD0F-C4C15173133A} = {16EC2DC2-EB7B-325E-770F-D562EF2F68D3} + {47D66CC7-6EAA-49EF-B028-E60F9E8A0740} = {16EC2DC2-EB7B-325E-770F-D562EF2F68D3} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {35B1D5ED-BE63-4E38-8FFE-7ADAA7A764CA} diff --git a/src/Aks/Aks/Az.Aks.psd1 b/src/Aks/Aks/Az.Aks.psd1 index 10ffb26d033a..61a22af32070 100644 --- a/src/Aks/Aks/Az.Aks.psd1 +++ b/src/Aks/Aks/Az.Aks.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 26/03/2025 +# Generated on: 2025-04-02 # @{ @@ -61,10 +61,10 @@ RequiredAssemblies = 'Aks.Autorest/bin/Az.Aks.private.dll', 'YamlDotNet.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'Aks.Autorest/Az.Aks.format.ps1xml' @@ -87,7 +87,7 @@ FunctionsToExport = 'Get-AzAksMaintenanceConfiguration', 'New-AzAksTimeInWeekObject', 'New-AzAksTimeSpanObject', 'Remove-AzAksMaintenanceConfiguration', 'Remove-AzAksSnapshot', 'Start-AzAksCluster', 'Start-AzAksManagedClusterCommand', - 'Stop-AzAksCluster' + 'Stop-AzAksCluster', 'Update-AzAksMaintenanceConfiguration' # 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 = 'Disable-AzAksAddOn', 'Enable-AzAksAddOn', 'Get-AzAksCluster', @@ -118,7 +118,8 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','AKS','Kubernetes','Container','Orchestrator','Containers','Docker' + Tags = 'Azure', 'ResourceManager', 'ARM', 'AKS', 'Kubernetes', 'Container', + 'Orchestrator', 'Containers', 'Docker' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -151,7 +152,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/Aks/Aks/help/Az.Aks.md b/src/Aks/Aks/help/Az.Aks.md index d4cd6528940f..8a826a5b92c5 100644 --- a/src/Aks/Aks/help/Az.Aks.md +++ b/src/Aks/Aks/help/Az.Aks.md @@ -79,13 +79,13 @@ The cmdlet may call below Microsoft Graph API according to input parameters: - POST /servicePrincipals ### [New-AzAksMaintenanceConfiguration](New-AzAksMaintenanceConfiguration.md) -Creates or updates a maintenance configuration in the specified managed cluster. +create a maintenance configuration in the specified managed cluster. ### [New-AzAksNodePool](New-AzAksNodePool.md) Create a new node pool in specified cluster. ### [New-AzAksSnapshot](New-AzAksSnapshot.md) -Creates or updates a snapshot. +create a snapshot. ### [New-AzAksTimeInWeekObject](New-AzAksTimeInWeekObject.md) Create an in-memory object for TimeInWeek. @@ -118,7 +118,7 @@ See [starting a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster Create a Kubectl SSH tunnel to the managed cluster's dashboard. ### [Start-AzAksManagedClusterCommand](Start-AzAksManagedClusterCommand.md) -AKS will create a pod to run the command. +AKS will run a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). @@ -131,6 +131,9 @@ See [stopping a cluster](https://docs.microsoft.com/azure/aks/start-stop-cluster ### [Stop-AzAksDashboard](Stop-AzAksDashboard.md) Stop the Kubectl SSH tunnel created in Start-AzKubernetesDashboard. +### [Update-AzAksMaintenanceConfiguration](Update-AzAksMaintenanceConfiguration.md) +update a maintenance configuration in the specified managed cluster. + ### [Update-AzAksNodePool](Update-AzAksNodePool.md) Update node pool in a managed cluster. diff --git a/src/Aks/Aks/help/Get-AzAksMaintenanceConfiguration.md b/src/Aks/Aks/help/Get-AzAksMaintenanceConfiguration.md index 1cc35b273578..c6d27b0d1634 100644 --- a/src/Aks/Aks/help/Get-AzAksMaintenanceConfiguration.md +++ b/src/Aks/Aks/help/Get-AzAksMaintenanceConfiguration.md @@ -19,6 +19,12 @@ Get-AzAksMaintenanceConfiguration -ResourceGroupName -ResourceName ] ``` +### GetViaIdentityManagedCluster +``` +Get-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject + [-DefaultProfile ] [] +``` + ### Get ``` Get-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName -ResourceName @@ -87,7 +93,7 @@ The name of the maintenance configuration. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: GetViaIdentityManagedCluster, Get Aliases: Required: True @@ -115,7 +121,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -129,6 +134,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ManagedClusterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: GetViaIdentityManagedCluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -184,7 +204,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration ## NOTES diff --git a/src/Aks/Aks/help/Get-AzAksManagedClusterCommandResult.md b/src/Aks/Aks/help/Get-AzAksManagedClusterCommandResult.md index 0c35a5c46776..db3e062d20b6 100644 --- a/src/Aks/Aks/help/Get-AzAksManagedClusterCommandResult.md +++ b/src/Aks/Aks/help/Get-AzAksManagedClusterCommandResult.md @@ -19,6 +19,12 @@ Get-AzAksManagedClusterCommandResult -CommandId -ResourceGroupName ] ``` +### GetViaIdentityManagedCluster +``` +Get-AzAksManagedClusterCommandResult -CommandId -ManagedClusterInputObject + [-DefaultProfile ] [-PassThru] [] +``` + ### GetViaIdentity ``` Get-AzAksManagedClusterCommandResult -InputObject [-DefaultProfile ] [-PassThru] @@ -55,7 +61,7 @@ Id of the command. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityManagedCluster Aliases: Required: True @@ -83,7 +89,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -97,6 +102,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ManagedClusterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: GetViaIdentityManagedCluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -PassThru Returns true when the command succeeds @@ -167,7 +187,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IRunCommandResult +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IRunCommandResult ## NOTES diff --git a/src/Aks/Aks/help/Get-AzAksManagedClusterOSOption.md b/src/Aks/Aks/help/Get-AzAksManagedClusterOSOption.md index 5e3e39d5ab23..fb9ff3f406df 100644 --- a/src/Aks/Aks/help/Get-AzAksManagedClusterOSOption.md +++ b/src/Aks/Aks/help/Get-AzAksManagedClusterOSOption.md @@ -60,7 +60,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -128,7 +127,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOSOptionProfile +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOSOptionProfile ## NOTES diff --git a/src/Aks/Aks/help/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md b/src/Aks/Aks/help/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md index 31a971f2f06c..b92ae8bcea48 100644 --- a/src/Aks/Aks/help/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md +++ b/src/Aks/Aks/help/Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint.md @@ -113,7 +113,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOutboundEnvironmentEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOutboundEnvironmentEndpoint ## NOTES diff --git a/src/Aks/Aks/help/Get-AzAksNodePoolUpgradeProfile.md b/src/Aks/Aks/help/Get-AzAksNodePoolUpgradeProfile.md index 0ae827850068..2395c23ff0e2 100644 --- a/src/Aks/Aks/help/Get-AzAksNodePoolUpgradeProfile.md +++ b/src/Aks/Aks/help/Get-AzAksNodePoolUpgradeProfile.md @@ -19,6 +19,12 @@ Get-AzAksNodePoolUpgradeProfile -ClusterName -NodePoolName -Re [] ``` +### GetViaIdentityManagedCluster +``` +Get-AzAksNodePoolUpgradeProfile -NodePoolName -ManagedClusterInputObject + [-DefaultProfile ] [] +``` + ### GetViaIdentity ``` Get-AzAksNodePoolUpgradeProfile -InputObject [-DefaultProfile ] @@ -78,7 +84,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -92,12 +97,27 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ManagedClusterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: GetViaIdentityManagedCluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -NodePoolName The name of the agent pool. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityManagedCluster Aliases: AgentPoolName Required: True @@ -147,7 +167,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolUpgradeProfile +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolUpgradeProfile ## NOTES diff --git a/src/Aks/Aks/help/Get-AzAksSnapshot.md b/src/Aks/Aks/help/Get-AzAksSnapshot.md index 846bac32ae5b..3b76b2a34816 100644 --- a/src/Aks/Aks/help/Get-AzAksSnapshot.md +++ b/src/Aks/Aks/help/Get-AzAksSnapshot.md @@ -110,7 +110,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -179,7 +178,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISnapshot +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ISnapshot ## NOTES diff --git a/src/Aks/Aks/help/Get-AzAksUpgradeProfile.md b/src/Aks/Aks/help/Get-AzAksUpgradeProfile.md index 680e724d18bc..4415e7d422b4 100644 --- a/src/Aks/Aks/help/Get-AzAksUpgradeProfile.md +++ b/src/Aks/Aks/help/Get-AzAksUpgradeProfile.md @@ -77,7 +77,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -131,7 +130,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterUpgradeProfile +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterUpgradeProfile ## NOTES diff --git a/src/Aks/Aks/help/Get-AzAksVersion.md b/src/Aks/Aks/help/Get-AzAksVersion.md index 2f3aa14aa183..837577cc79fb 100644 --- a/src/Aks/Aks/help/Get-AzAksVersion.md +++ b/src/Aks/Aks/help/Get-AzAksVersion.md @@ -99,7 +99,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20190801.IOrchestratorVersionProfileListResult +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOrchestratorVersionProfileListResult ## NOTES diff --git a/src/Aks/Aks/help/Invoke-AzAksAbortAgentPoolLatestOperation.md b/src/Aks/Aks/help/Invoke-AzAksAbortAgentPoolLatestOperation.md index 57bdbb54a2d2..2f1aa6880d47 100644 --- a/src/Aks/Aks/help/Invoke-AzAksAbortAgentPoolLatestOperation.md +++ b/src/Aks/Aks/help/Invoke-AzAksAbortAgentPoolLatestOperation.md @@ -21,6 +21,13 @@ Invoke-AzAksAbortAgentPoolLatestOperation -AgentPoolName -ResourceGroup [-WhatIf] [-Confirm] [] ``` +### AbortViaIdentityManagedcluster +``` +Invoke-AzAksAbortAgentPoolLatestOperation -AgentPoolName -ManagedclusterInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + ### AbortViaIdentity ``` Invoke-AzAksAbortAgentPoolLatestOperation -InputObject [-DefaultProfile ] [-AsJob] @@ -50,7 +57,7 @@ The name of the agent pool. ```yaml Type: System.String -Parameter Sets: Abort +Parameter Sets: Abort, AbortViaIdentityManagedcluster Aliases: Required: True @@ -93,7 +100,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -107,6 +113,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ManagedclusterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: AbortViaIdentityManagedcluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -NoWait Run the command asynchronously diff --git a/src/Aks/Aks/help/Invoke-AzAksAbortManagedClusterLatestOperation.md b/src/Aks/Aks/help/Invoke-AzAksAbortManagedClusterLatestOperation.md index d747e42b4ba0..3f51b1260cd2 100644 --- a/src/Aks/Aks/help/Invoke-AzAksAbortManagedClusterLatestOperation.md +++ b/src/Aks/Aks/help/Invoke-AzAksAbortManagedClusterLatestOperation.md @@ -78,7 +78,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity diff --git a/src/Aks/Aks/help/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md b/src/Aks/Aks/help/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md index 03e612dcc253..bb78ce0c8420 100644 --- a/src/Aks/Aks/help/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md +++ b/src/Aks/Aks/help/Invoke-AzAksRotateManagedClusterServiceAccountSigningKey.md @@ -71,7 +71,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity diff --git a/src/Aks/Aks/help/New-AzAksMaintenanceConfiguration.md b/src/Aks/Aks/help/New-AzAksMaintenanceConfiguration.md index b3c87a1e3742..becd0b6ff3a2 100644 --- a/src/Aks/Aks/help/New-AzAksMaintenanceConfiguration.md +++ b/src/Aks/Aks/help/New-AzAksMaintenanceConfiguration.md @@ -8,18 +8,47 @@ schema: 2.0.0 # New-AzAksMaintenanceConfiguration ## SYNOPSIS -Creates or updates a maintenance configuration in the specified managed cluster. +create a maintenance configuration in the specified managed cluster. ## SYNTAX +### CreateExpanded (Default) ``` New-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName -ResourceName [-SubscriptionId ] [-NotAllowedTime ] [-TimeInWeek ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonString +``` +New-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName -ResourceName + [-SubscriptionId ] -JsonString [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonFilePath +``` +New-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName -ResourceName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaIdentityManagedClusterExpanded +``` +New-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject + [-NotAllowedTime ] [-TimeInWeek ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaIdentityManagedCluster +``` +New-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject + -Parameter [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION -Creates or updates a maintenance configuration in the specified managed cluster. +create a maintenance configuration in the specified managed cluster. ## EXAMPLES @@ -71,13 +100,57 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ManagedClusterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: CreateViaIdentityManagedClusterExpanded, CreateViaIdentityManagedCluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -NotAllowedTime Time slots on which upgrade is not allowed. -To construct, see NOTES section for NOTALLOWEDTIME properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ITimeSpan[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan[] +Parameter Sets: CreateExpanded, CreateViaIdentityManagedClusterExpanded Aliases: Required: False @@ -87,13 +160,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Parameter +See [planned maintenance](https://docs.microsoft.com/azure/aks/planned-maintenance) for more information about planned maintenance. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration +Parameter Sets: CreateViaIdentityManagedCluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath Aliases: Required: True @@ -108,7 +196,7 @@ The name of the managed cluster resource. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath Aliases: Required: True @@ -123,7 +211,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath Aliases: Required: False @@ -135,11 +223,10 @@ Accept wildcard characters: False ### -TimeInWeek If two array entries specify the same day of the week, the applied configuration is the union of times in both entries. -To construct, see NOTES section for TIMEINWEEK properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ITimeInWeek[] -Parameter Sets: (All) +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek[] +Parameter Sets: CreateExpanded, CreateViaIdentityManagedClusterExpanded Aliases: Required: False @@ -185,9 +272,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration + ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration ## NOTES diff --git a/src/Aks/Aks/help/New-AzAksSnapshot.md b/src/Aks/Aks/help/New-AzAksSnapshot.md index cf4ff5c9d378..c8955c495ff6 100644 --- a/src/Aks/Aks/help/New-AzAksSnapshot.md +++ b/src/Aks/Aks/help/New-AzAksSnapshot.md @@ -8,18 +8,33 @@ schema: 2.0.0 # New-AzAksSnapshot ## SYNOPSIS -Creates or updates a snapshot. +create a snapshot. ## SYNTAX +### CreateExpanded (Default) ``` New-AzAksSnapshot -ResourceGroupName -ResourceName [-SubscriptionId ] - -Location [-CreationDataSourceResourceId ] [-SnapshotType ] [-Tag ] + -Location [-CreationDataSourceResourceId ] [-SnapshotType ] [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonFilePath +``` +New-AzAksSnapshot -ResourceGroupName -ResourceName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### CreateViaJsonString +``` +New-AzAksSnapshot -ResourceGroupName -ResourceName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + ## DESCRIPTION -Creates or updates a snapshot. +create a snapshot. ## EXAMPLES @@ -44,7 +59,7 @@ This is the ARM ID of the source object to be used to create the target object. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -70,12 +85,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Location The geo-location where the resource lives ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: True @@ -121,8 +166,8 @@ The type of a snapshot. The default is NodePool. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.SnapshotType -Parameter Sets: (All) +Type: System.String +Parameter Sets: CreateExpanded Aliases: Required: False @@ -152,7 +197,7 @@ Resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -200,7 +245,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISnapshot +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ISnapshot ## NOTES diff --git a/src/Aks/Aks/help/New-AzAksTimeInWeekObject.md b/src/Aks/Aks/help/New-AzAksTimeInWeekObject.md index f77fde645b71..e6f4954f9bf7 100644 --- a/src/Aks/Aks/help/New-AzAksTimeInWeekObject.md +++ b/src/Aks/Aks/help/New-AzAksTimeInWeekObject.md @@ -1,7 +1,7 @@ --- external help file: Az.Aks-help.xml Module Name: Az.Aks -online version: https://learn.microsoft.com/powershell/module/Az.Aks/new-AzAksTimeInWeekObject +online version: https://learn.microsoft.com/powershell/module/Az.Aks/new-azakstimeinweekobject schema: 2.0.0 --- @@ -13,7 +13,7 @@ Create an in-memory object for TimeInWeek. ## SYNTAX ``` -New-AzAksTimeInWeekObject [-Day ] [-HourSlot ] +New-AzAksTimeInWeekObject [-Day ] [-HourSlot ] [] ``` @@ -43,7 +43,7 @@ and will be used for parameter *TimeInWeek* in cmdlet *New-AzAksMaintenanceConfi The day of the week. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.WeekDay +Type: System.String Parameter Sets: (All) Aliases: @@ -78,7 +78,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.TimeInWeek +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.TimeInWeek ## NOTES diff --git a/src/Aks/Aks/help/New-AzAksTimeSpanObject.md b/src/Aks/Aks/help/New-AzAksTimeSpanObject.md index fe1aaf7edcbb..3c0eba4db048 100644 --- a/src/Aks/Aks/help/New-AzAksTimeSpanObject.md +++ b/src/Aks/Aks/help/New-AzAksTimeSpanObject.md @@ -1,7 +1,7 @@ --- external help file: Az.Aks-help.xml Module Name: Az.Aks -online version: https://learn.microsoft.com/powershell/module/Az.Aks/new-AzAksTimeSpanObject +online version: https://learn.microsoft.com/powershell/module/Az.Aks/new-azakstimespanobject schema: 2.0.0 --- @@ -77,7 +77,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.TimeSpan +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.TimeSpan ## NOTES diff --git a/src/Aks/Aks/help/Remove-AzAksMaintenanceConfiguration.md b/src/Aks/Aks/help/Remove-AzAksMaintenanceConfiguration.md index e198bc0a757c..171301a7abd1 100644 --- a/src/Aks/Aks/help/Remove-AzAksMaintenanceConfiguration.md +++ b/src/Aks/Aks/help/Remove-AzAksMaintenanceConfiguration.md @@ -19,6 +19,13 @@ Remove-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName ] ``` +### DeleteViaIdentityManagedCluster +``` +Remove-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject + [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] + [] +``` + ### DeleteViaIdentity ``` Remove-AzAksMaintenanceConfiguration -InputObject [-DefaultProfile ] [-PassThru] @@ -48,7 +55,7 @@ The name of the maintenance configuration. ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityManagedCluster Aliases: Required: True @@ -76,7 +83,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -90,6 +96,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ManagedClusterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: DeleteViaIdentityManagedCluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -PassThru Returns true when the command succeeds diff --git a/src/Aks/Aks/help/Remove-AzAksSnapshot.md b/src/Aks/Aks/help/Remove-AzAksSnapshot.md index da23d17c5363..c8da4b5330f3 100644 --- a/src/Aks/Aks/help/Remove-AzAksSnapshot.md +++ b/src/Aks/Aks/help/Remove-AzAksSnapshot.md @@ -61,7 +61,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity diff --git a/src/Aks/Aks/help/Start-AzAksCluster.md b/src/Aks/Aks/help/Start-AzAksCluster.md index d090b53dcdfb..e27f1863291f 100644 --- a/src/Aks/Aks/help/Start-AzAksCluster.md +++ b/src/Aks/Aks/help/Start-AzAksCluster.md @@ -79,7 +79,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity diff --git a/src/Aks/Aks/help/Start-AzAksManagedClusterCommand.md b/src/Aks/Aks/help/Start-AzAksManagedClusterCommand.md index c80b46ed6226..50881fb59d25 100644 --- a/src/Aks/Aks/help/Start-AzAksManagedClusterCommand.md +++ b/src/Aks/Aks/help/Start-AzAksManagedClusterCommand.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Start-AzAksManagedClusterCommand ## SYNOPSIS -AKS will create a pod to run the command. +AKS will run a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). @@ -21,6 +21,20 @@ Start-AzAksManagedClusterCommand -ResourceGroupName -ResourceName ] ``` +### RunViaJsonString +``` +Start-AzAksManagedClusterCommand -ResourceGroupName -ResourceName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### RunViaJsonFilePath +``` +Start-AzAksManagedClusterCommand -ResourceGroupName -ResourceName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + ### RunViaIdentityExpanded ``` Start-AzAksManagedClusterCommand -InputObject -Command [-ClusterToken ] @@ -29,7 +43,7 @@ Start-AzAksManagedClusterCommand -InputObject -Command [ ``` ## DESCRIPTION -AKS will create a pod to run the command. +AKS will run a pod to run the command. This is primarily useful for private clusters. For more information see [AKS Run Command](https://docs.microsoft.com/azure/aks/private-clusters#aks-run-command-preview). @@ -97,7 +111,7 @@ AuthToken issued for AKS AAD Server App. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: RunExpanded, RunViaIdentityExpanded Aliases: Required: False @@ -112,7 +126,7 @@ The command to run. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: RunExpanded, RunViaIdentityExpanded Aliases: Required: True @@ -127,7 +141,7 @@ A base64 encoded zip file containing the files required by the command. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: RunExpanded, RunViaIdentityExpanded Aliases: Required: False @@ -155,7 +169,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity @@ -169,6 +182,36 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Run operation + +```yaml +Type: System.String +Parameter Sets: RunViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Run operation + +```yaml +Type: System.String +Parameter Sets: RunViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -NoWait Run the command asynchronously @@ -190,7 +233,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: RunExpanded +Parameter Sets: RunExpanded, RunViaJsonString, RunViaJsonFilePath Aliases: Required: True @@ -205,7 +248,7 @@ The name of the managed cluster resource. ```yaml Type: System.String -Parameter Sets: RunExpanded +Parameter Sets: RunExpanded, RunViaJsonString, RunViaJsonFilePath Aliases: Required: True @@ -220,7 +263,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: RunExpanded +Parameter Sets: RunExpanded, RunViaJsonString, RunViaJsonFilePath Aliases: Required: False @@ -270,7 +313,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IRunCommandResult +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IRunCommandResult ## NOTES diff --git a/src/Aks/Aks/help/Stop-AzAksCluster.md b/src/Aks/Aks/help/Stop-AzAksCluster.md index 41ff693b0307..8bc44f0e68bb 100644 --- a/src/Aks/Aks/help/Stop-AzAksCluster.md +++ b/src/Aks/Aks/help/Stop-AzAksCluster.md @@ -85,7 +85,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity diff --git a/src/Aks/Aks/help/Update-AzAksMaintenanceConfiguration.md b/src/Aks/Aks/help/Update-AzAksMaintenanceConfiguration.md new file mode 100644 index 000000000000..af35a4e18fee --- /dev/null +++ b/src/Aks/Aks/help/Update-AzAksMaintenanceConfiguration.md @@ -0,0 +1,270 @@ +--- +external help file: Az.Aks-help.xml +Module Name: Az.Aks +online version: https://learn.microsoft.com/powershell/module/az.aks/update-azaksmaintenanceconfiguration +schema: 2.0.0 +--- + +# Update-AzAksMaintenanceConfiguration + +## SYNOPSIS +update a maintenance configuration in the specified managed cluster. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName -ResourceName + [-SubscriptionId ] [-NotAllowedTime ] [-TimeInWeek ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityManagedClusterExpanded +``` +Update-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject + [-NotAllowedTime ] [-TimeInWeek ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityManagedCluster +``` +Update-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject + -Parameter [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzAksMaintenanceConfiguration -InputObject [-NotAllowedTime ] + [-TimeInWeek ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] +``` + +## DESCRIPTION +update a maintenance configuration in the specified managed cluster. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -ConfigName +The name of the maintenance configuration. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityManagedClusterExpanded, UpdateViaIdentityManagedCluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ManagedClusterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity +Parameter Sets: UpdateViaIdentityManagedClusterExpanded, UpdateViaIdentityManagedCluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NotAllowedTime +Time slots on which upgrade is not allowed. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityManagedClusterExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Parameter +See [planned maintenance](https://docs.microsoft.com/azure/aks/planned-maintenance) for more information about planned maintenance. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration +Parameter Sets: UpdateViaIdentityManagedCluster +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceName +The name of the managed cluster resource. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TimeInWeek +If two array entries specify the same day of the week, the applied configuration is the union of times in both entries. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek[] +Parameter Sets: UpdateExpanded, UpdateViaIdentityManagedClusterExpanded, UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration + +## NOTES + +## RELATED LINKS From 96105a41847cdb33d05b45a6fb06e4a729d2d93e Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Tue, 8 Apr 2025 14:49:21 +0800 Subject: [PATCH 2/8] update breakingChangeIssues.csv --- .../Az.Aks/BreakingChangeIssues.csv | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tools/StaticAnalysis/Exceptions/Az.Aks/BreakingChangeIssues.csv diff --git a/tools/StaticAnalysis/Exceptions/Az.Aks/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Aks/BreakingChangeIssues.csv new file mode 100644 index 000000000000..284ee9f6f67f --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.Aks/BreakingChangeIssues.csv @@ -0,0 +1,30 @@ +"Module","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Az.Aks","Get-AzAksMaintenanceConfiguration","Get-AzAksMaintenanceConfiguration","0","3000","The type of property 'TimeInWeek' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek]'.","Change the type of property 'TimeInWeek' back to 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek'." +"Az.Aks","Get-AzAksMaintenanceConfiguration","Get-AzAksMaintenanceConfiguration","0","3000","The type of property 'NotAllowedTime' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan]'.","Change the type of property 'NotAllowedTime' back to 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan'." +"Az.Aks","Get-AzAksMaintenanceConfiguration","Get-AzAksMaintenanceConfiguration","0","3000","The type of property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.CreatedByType]' to 'System.String'.","Change the type of property 'SystemDataCreatedByType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.CreatedByType]'." +"Az.Aks","Get-AzAksMaintenanceConfiguration","Get-AzAksMaintenanceConfiguration","0","3000","The type of property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.CreatedByType]' to 'System.String'.","Change the type of property 'SystemDataLastModifiedByType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.CreatedByType]'." +"Az.Aks","Get-AzAksManagedClusterOSOption","Get-AzAksManagedClusterOSOption","0","3000","The type of property 'OSOptionPropertyList' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOSOptionProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOSOptionProperty' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOSOptionProperty]'.","Change the type of property 'OSOptionPropertyList' back to 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOSOptionProperty'." +"Az.Aks","Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint","Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint","0","3000","The type of property 'Endpoint' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IOutboundEnvironmentEndpoint' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IEndpointDependency' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IEndpointDependency]'.","Change the type of property 'Endpoint' back to 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IEndpointDependency'." +"Az.Aks","Get-AzAksNodePoolUpgradeProfile","Get-AzAksNodePoolUpgradeProfile","0","3000","The type of property 'Upgrade' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolUpgradeProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolUpgradeProfilePropertiesUpgradesItem' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolUpgradeProfilePropertiesUpgradesItem]'.","Change the type of property 'Upgrade' back to 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAgentPoolUpgradeProfilePropertiesUpgradesItem'." +"Az.Aks","Get-AzAksNodePoolUpgradeProfile","Get-AzAksNodePoolUpgradeProfile","0","3000","The type of property 'OSType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IAgentPoolUpgradeProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.OSType' to 'System.String'.","Change the type of property 'OSType' back to 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.OSType'." +"Az.Aks","Get-AzAksSnapshot","Get-AzAksSnapshot","0","3000","The type of property 'OSSku' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISnapshot' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.Ossku]' to 'System.String'.","Change the type of property 'OSSku' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.Ossku]'." +"Az.Aks","Get-AzAksSnapshot","Get-AzAksSnapshot","0","3000","The type of property 'OSType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISnapshot' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.OSType]' to 'System.String'.","Change the type of property 'OSType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.OSType]'." +"Az.Aks","Get-AzAksSnapshot","Get-AzAksSnapshot","0","3000","The type of property 'SnapshotType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISnapshot' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.SnapshotType]' to 'System.String'.","Change the type of property 'SnapshotType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.SnapshotType]'." +"Az.Aks","Get-AzAksUpgradeProfile","Get-AzAksUpgradeProfile","0","3000","The type of property 'AgentPoolProfile' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterUpgradeProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPoolUpgradeProfile' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPoolUpgradeProfile]'.","Change the type of property 'AgentPoolProfile' back to 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPoolUpgradeProfile'." +"Az.Aks","Get-AzAksUpgradeProfile","Get-AzAksUpgradeProfile","0","3000","The type of property 'ControlPlaneProfileUpgrade' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterUpgradeProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPoolUpgradeProfileUpgradesItem' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPoolUpgradeProfileUpgradesItem]'.","Change the type of property 'ControlPlaneProfileUpgrade' back to 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IManagedClusterPoolUpgradeProfileUpgradesItem'." +"Az.Aks","Get-AzAksUpgradeProfile","Get-AzAksUpgradeProfile","0","3000","The type of property 'ControlPlaneProfileOSType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterUpgradeProfile' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.OSType' to 'System.String'.","Change the type of property 'ControlPlaneProfileOSType' back to 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.OSType'." +"Az.Aks","Get-AzAksVersion","Get-AzAksVersion","0","3000","The type of property 'Orchestrator' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20190801.IOrchestratorVersionProfileListResult' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOrchestratorVersionProfile' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOrchestratorVersionProfile]'.","Change the type of property 'Orchestrator' back to 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IOrchestratorVersionProfile'." +"Az.Aks","New-AzAksMaintenanceConfiguration","New-AzAksMaintenanceConfiguration","0","3000","The type of property 'TimeInWeek' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek]'.","Change the type of property 'TimeInWeek' back to 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek'." +"Az.Aks","New-AzAksMaintenanceConfiguration","New-AzAksMaintenanceConfiguration","0","3000","The type of property 'NotAllowedTime' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan]'.","Change the type of property 'NotAllowedTime' back to 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan'." +"Az.Aks","New-AzAksMaintenanceConfiguration","New-AzAksMaintenanceConfiguration","0","3000","The type of property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.CreatedByType]' to 'System.String'.","Change the type of property 'SystemDataCreatedByType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.CreatedByType]'." +"Az.Aks","New-AzAksMaintenanceConfiguration","New-AzAksMaintenanceConfiguration","0","3000","The type of property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IMaintenanceConfiguration' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.CreatedByType]' to 'System.String'.","Change the type of property 'SystemDataLastModifiedByType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.CreatedByType]'." +"Az.Aks","New-AzAksMaintenanceConfiguration","New-AzAksMaintenanceConfiguration","0","3000","The type of property 'HourSlot' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ITimeInWeek' has changed from 'System.Int32[]' to 'System.Collections.Generic.List`1[System.Int32]'.","Change the type of property 'HourSlot' back to 'System.Int32[]'." +"Az.Aks","New-AzAksMaintenanceConfiguration","New-AzAksMaintenanceConfiguration","0","3000","The type of property 'Day' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ITimeInWeek' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.WeekDay]' to 'System.String'.","Change the type of property 'Day' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.WeekDay]'." +"Az.Aks","New-AzAksSnapshot","New-AzAksSnapshot","0","3000","The type of property 'OSSku' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISnapshot' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.Ossku]' to 'System.String'.","Change the type of property 'OSSku' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.Ossku]'." +"Az.Aks","New-AzAksSnapshot","New-AzAksSnapshot","0","3000","The type of property 'OSType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISnapshot' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.OSType]' to 'System.String'.","Change the type of property 'OSType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.OSType]'." +"Az.Aks","New-AzAksSnapshot","New-AzAksSnapshot","0","3000","The type of property 'SnapshotType' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ISnapshot' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.SnapshotType]' to 'System.String'.","Change the type of property 'SnapshotType' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.SnapshotType]'." +"Az.Aks","New-AzAksSnapshot","New-AzAksSnapshot","0","2020","The cmdlet 'New-AzAksSnapshot' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.SnapshotType' for parameter 'SnapshotType'.","Change the type for parameter 'SnapshotType' back to 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.SnapshotType'." +"Az.Aks","New-AzAksTimeInWeekObject","New-AzAksTimeInWeekObject","0","3000","The type of property 'HourSlot' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.TimeInWeek' has changed from 'System.Int32[]' to 'System.Collections.Generic.List`1[System.Int32]'.","Change the type of property 'HourSlot' back to 'System.Int32[]'." +"Az.Aks","New-AzAksTimeInWeekObject","New-AzAksTimeInWeekObject","0","3000","The type of property 'Day' of type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.TimeInWeek' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.WeekDay]' to 'System.String'.","Change the type of property 'Day' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.WeekDay]'." +"Az.Aks","New-AzAksTimeInWeekObject","New-AzAksTimeInWeekObject","0","2020","The cmdlet 'New-AzAksTimeInWeekObject' no longer supports the type 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.WeekDay' for parameter 'Day'.","Change the type for parameter 'Day' back to 'Microsoft.Azure.PowerShell.Cmdlets.Aks.Support.WeekDay'." +"Az.Aks","Start-AzAksManagedClusterCommand","Start-AzAksManagedClusterCommand","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Start-AzAksManagedClusterCommand' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Start-AzAksManagedClusterCommand'." \ No newline at end of file From be5f2be3b995b34c0b5a1fc03b84ebecc6f29c58 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Tue, 8 Apr 2025 14:57:43 +0800 Subject: [PATCH 3/8] update changelog --- src/Aks/Aks/ChangeLog.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Aks/Aks/ChangeLog.md b/src/Aks/Aks/ChangeLog.md index 91781b43b207..8c71af32348b 100644 --- a/src/Aks/Aks/ChangeLog.md +++ b/src/Aks/Aks/ChangeLog.md @@ -18,6 +18,16 @@ - Additional information about change #1 --> ## Upcoming Release + * Modified cmdlet `Get-AzAksMaintenanceConfiguration`: Added parameter `-ManagedClusterInputObject`. Added parameter set `GetViaIdentityManagedCluster`. + * Modified cmdlet `Get-AzAksManagedClusterCommandResult`: Added parameter `-ManagedClusterInputObject`. Added parameter set `GetViaIdentityManagedCluster`. + * Modified cmdlet `Get-AzAksNodePoolUpgradeProfile`: Added parameter `-ManagedClusterInputObject`. Added parameter set `GetViaIdentityManagedCluster`. + * Modified cmdlet `Invoke-AzAksAbortAgentPoolLatestOperation`: Added parameter `-ManagedclusterInputObject`. Added parameter set `AbortViaIdentityManagedcluster`. + * Modified cmdlet `New-AzAksMaintenanceConfiguration`: Added parameters `-ManagedClusterInputObject`, `-Parameter`, `-JsonFilePath` and `-JsonString`. Added parameter set `CreateViaJsonString`. Added parameter set `CreateViaJsonFilePath`. Added parameter set `CreateExpanded`. Added parameter set `CreateViaIdentityManagedClusterExpanded`. Added parameter set `CreateViaIdentityManagedCluster`. + * Modified cmdlet `New-AzAksSnapshot`: Added parameters `-JsonFilePath` and `-JsonString`. Changed the type of parameter `-SnapshotType` from `SnapshotType` to `String`. Added parameter set `CreateExpanded`. Added parameter set `CreateViaJsonFilePath`. Added parameter set `CreateViaJsonString`. + * Modified cmdlet `New-AzAksTimeInWeekObject`: Changed the type of parameter `-Day` from `WeekDay` to `String`. + * Modified cmdlet `Remove-AzAksMaintenanceConfiguration`: Added parameter `-ManagedClusterInputObject`. Added parameter set `DeleteViaIdentityManagedCluster`. + * Modified cmdlet `Start-AzAksManagedClusterCommand`: Added parameters `-JsonFilePath` and `-JsonString`. Added parameter set `RunViaJsonString`. Added parameter set `RunViaJsonFilePath`. + * Added cmdlet `Update-AzAksMaintenanceConfiguration`. ## Version 6.1.1 * Preannounced breaking change: The default value of `-NodeVmSize` parameter of `New-AzAksCluster` will be changing from 'Standard_DS2_V2 (Linux), Standard_DS2_V3 (Windows)' to being dynamically selected by the AKS resource provider based on quota and capacity in the next major release. From 1b7da7c9aeaa24d786aaf498bb6616d4a2110772 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Tue, 8 Apr 2025 15:09:01 +0800 Subject: [PATCH 4/8] miss example for Update-AzAksMaintenanceConfiguration so update ExampleIssues.csv file --- .../Exceptions/Az.Aks/ExampleIssues.csv | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/StaticAnalysis/Exceptions/Az.Aks/ExampleIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Aks/ExampleIssues.csv index 2f910d9b2db6..b152c8807f85 100644 --- a/tools/StaticAnalysis/Exceptions/Az.Aks/ExampleIssues.csv +++ b/tools/StaticAnalysis/Exceptions/Az.Aks/ExampleIssues.csv @@ -1,3 +1,17 @@ "Module","Cmdlet","Example","Line","RuleName","ProblemId","Severity","Description","Extent","Remediation" "Az.Aks","Disable-AzAksAddOn","1","1","Capitalization_Conventions_Violated","5101","1","Disable-AzAksAddon doesn't follow the Capitalization Conventions.","Disable-AzAksAddon -Name HttpApplicationRouting,Monitoring,AzurePolicy,VirtualNode,KubeDashboard","Check the Capitalization Conventions. Suggest format: Disable-AzAksAddOn" "Az.Aks","Enable-AzAksAddOn","1","1","Capitalization_Conventions_Violated","5101","1","Enable-AzAksAddon doesn't follow the Capitalization Conventions.","Enable-AzAksAddon -Name HttpApplicationRouting,Monitoring,AzurePolicy,VirtualNode,KubeDashboard -WorkspaceResourceId xxxxx/xxxx -SubnetName subnet","Check the Capitalization Conventions. Suggest format: Enable-AzAksAddOn" +"Az.Aks","Update-AzAksMaintenanceConfiguration","1","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\Aks\Aks.Autorest\docs\Update-AzAksMaintenanceConfiguration.md","Add title for the example. Remove any placeholders." +"Az.Aks","Update-AzAksMaintenanceConfiguration","1","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\Aks\Aks.Autorest\docs\Update-AzAksMaintenanceConfiguration.md","Add code for the example. Remove any placeholders." +"Az.Aks","Update-AzAksMaintenanceConfiguration","1","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\Aks\Aks.Autorest\docs\Update-AzAksMaintenanceConfiguration.md","Add description for the example. Remove any placeholders." +"Az.Aks","Update-AzAksMaintenanceConfiguration","2","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\Aks\Aks.Autorest\docs\Update-AzAksMaintenanceConfiguration.md","Add title for the example. Remove any placeholders." +"Az.Aks","Update-AzAksMaintenanceConfiguration","2","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\Aks\Aks.Autorest\docs\Update-AzAksMaintenanceConfiguration.md","Add code for the example. Remove any placeholders." +"Az.Aks","Update-AzAksMaintenanceConfiguration","2","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\Aks\Aks.Autorest\docs\Update-AzAksMaintenanceConfiguration.md","Add description for the example. Remove any placeholders." +"Az.Aks","Update-AzAksMaintenanceConfiguration","1","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\Aks\Aks\help\Update-AzAksMaintenanceConfiguration.md","Add title for the example. Remove any placeholders." +"Az.Aks","Update-AzAksMaintenanceConfiguration","1","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\Aks\Aks\help\Update-AzAksMaintenanceConfiguration.md","Add code for the example. Remove any placeholders." +"Az.Aks","Update-AzAksMaintenanceConfiguration","1","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\Aks\Aks\help\Update-AzAksMaintenanceConfiguration.md","Add description for the example. Remove any placeholders." +"Az.Aks","Update-AzAksMaintenanceConfiguration","2","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\Aks\Aks\help\Update-AzAksMaintenanceConfiguration.md","Add title for the example. Remove any placeholders." +"Az.Aks","Update-AzAksMaintenanceConfiguration","2","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\Aks\Aks\help\Update-AzAksMaintenanceConfiguration.md","Add code for the example. Remove any placeholders." +"Az.Aks","Update-AzAksMaintenanceConfiguration","2","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\Aks\Aks\help\Update-AzAksMaintenanceConfiguration.md","Add description for the example. Remove any placeholders." +"Az.Aks","Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint","1","2","Is_Alias","5100","2","select is an alias of 'Select-Object'.","select Category,Endpoint","Use formal name 'Select-Object' of the alias 'select'." +"Az.Aks","Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint","1","2","Is_Alias","5100","2","select is an alias of 'Select-Object'.","select Category,Endpoint","Use formal name 'Select-Object' of the alias 'select'." \ No newline at end of file From 587d3bd8a9fee7fbf327cc779af35f93544f4274 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Tue, 8 Apr 2025 16:26:25 +0800 Subject: [PATCH 5/8] update examples --- .../docs/New-AzAksMaintenanceConfiguration.md | 83 +++++----------- .../Update-AzAksMaintenanceConfiguration.md | 94 ++++++------------ .../New-AzAksMaintenanceConfiguration.md | 30 ++++-- .../Update-AzAksMaintenanceConfiguration.md | 40 ++++---- src/Aks/Aks.Autorest/generate-info.json | 2 +- src/Aks/Aks.sln | 28 +++--- src/Aks/Aks/Az.Aks.psd1 | 2 +- .../help/New-AzAksMaintenanceConfiguration.md | 90 ++++++------------ .../Update-AzAksMaintenanceConfiguration.md | 95 ++++++------------- .../Exceptions/Az.Aks/ExampleIssues.csv | 12 --- 10 files changed, 175 insertions(+), 301 deletions(-) diff --git a/src/Aks/Aks.Autorest/docs/New-AzAksMaintenanceConfiguration.md b/src/Aks/Aks.Autorest/docs/New-AzAksMaintenanceConfiguration.md index 02f3a889e79d..c27d823a0033 100644 --- a/src/Aks/Aks.Autorest/docs/New-AzAksMaintenanceConfiguration.md +++ b/src/Aks/Aks.Autorest/docs/New-AzAksMaintenanceConfiguration.md @@ -19,19 +19,6 @@ New-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName ] [-Confirm] [-WhatIf] [] ``` -### CreateViaIdentityManagedCluster -``` -New-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject - -Parameter [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### CreateViaIdentityManagedClusterExpanded -``` -New-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject - [-NotAllowedTime ] [-TimeInWeek ] [-DefaultProfile ] [-Confirm] - [-WhatIf] [] -``` - ### CreateViaJsonFilePath ``` New-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName -ResourceName @@ -54,14 +41,30 @@ create a maintenance configuration in the specified managed cluster. ### Example 1: Creates or updates a maintenance configuration in the specified managed cluster ```powershell $TimeSpan = New-AzAksTimeSpanObject -Start (Get-Date -Year 2023 -Month 3 -Day 1) -End (Get-Date -Year 2023 -Month 3 -Day 2) -$TimeInWeek = New-AzAksTimeInWeekObject -Day 'Sunday' -HourSlot 1,2 -$MaintenanceConfig = New-AzAksMaintenanceConfiguration -ResourceGroupName mygroup -ResourceName myCluster -ConfigName 'aks_maintenance_config' -TimeInWeek $TimeInWeek -NotAllowedTime $TimeSpan +$TimeInWeek = New-AzAksTimeInWeekObject -Day Sunday -HourSlot 1,2 +New-AzAksMaintenanceConfiguration -ResourceGroupName mygroup -ResourceName myCluster -ConfigName 'aks_maintenance_config' -TimeInWeek $TimeInWeek -NotAllowedTime $TimeSpan ``` ```output -Name ----- -aks_maintenance_config +Id : /subscriptions/{subId}/resourceGroups/mygroup/providers/Microsoft.ContainerService/managedClusters/myCluster/maintenanceConfigurations/aks_mainten + ance_config +Name : aks_maintenance_config +NotAllowedTime : {{ + "start": "2023-03-01T07:56:08.2725383Z", + "end": "2023-03-02T07:56:08.2727034Z" + }} +ResourceGroupName : mygroup +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +TimeInWeek : {{ + "day": "Sunday", + "hourSlots": [ 1, 2 ] + }} +Type : ``` Create a maintenance configuration "aks_maintenance_config" in a managed cluster "myCluster" with a time in week and a not allowed time span. @@ -129,27 +132,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ManagedClusterInputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity -Parameter Sets: CreateViaIdentityManagedCluster, CreateViaIdentityManagedClusterExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -NotAllowedTime Time slots on which upgrade is not allowed. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan[] -Parameter Sets: CreateExpanded, CreateViaIdentityManagedClusterExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -159,28 +147,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Parameter -See [planned maintenance](https://docs.microsoft.com/azure/aks/planned-maintenance) for more information about planned maintenance. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration -Parameter Sets: CreateViaIdentityManagedCluster -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -ResourceGroupName The name of the resource group. The name is case insensitive. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Parameter Sets: (All) Aliases: Required: True @@ -195,7 +168,7 @@ The name of the managed cluster resource. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Parameter Sets: (All) Aliases: Required: True @@ -210,7 +183,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Parameter Sets: (All) Aliases: Required: False @@ -225,7 +198,7 @@ If two array entries specify the same day of the week, the applied configuration ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek[] -Parameter Sets: CreateExpanded, CreateViaIdentityManagedClusterExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -271,10 +244,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity - -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration - ## OUTPUTS ### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration diff --git a/src/Aks/Aks.Autorest/docs/Update-AzAksMaintenanceConfiguration.md b/src/Aks/Aks.Autorest/docs/Update-AzAksMaintenanceConfiguration.md index ae89b87652ce..dfea38c8084e 100644 --- a/src/Aks/Aks.Autorest/docs/Update-AzAksMaintenanceConfiguration.md +++ b/src/Aks/Aks.Autorest/docs/Update-AzAksMaintenanceConfiguration.md @@ -25,45 +25,41 @@ Update-AzAksMaintenanceConfiguration -InputObject [-NotAllowedTim [-TimeInWeek ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` -### UpdateViaIdentityManagedCluster -``` -Update-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject - -Parameter [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentityManagedClusterExpanded -``` -Update-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject - [-NotAllowedTime ] [-TimeInWeek ] [-DefaultProfile ] [-Confirm] - [-WhatIf] [] -``` - ## DESCRIPTION update a maintenance configuration in the specified managed cluster. ## EXAMPLES -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +### Example 1: Update a maintenance configuration in the specified managed cluster ```powershell -{{ Add code here }} +$TimeSpan = New-AzAksTimeSpanObject -Start (Get-Date -Year 2023 -Month 3 -Day 2) -End (Get-Date -Year 2023 -Month 3 -Day 3) +$TimeInWeek = New-AzAksTimeInWeekObject -Day Sunday -HourSlot 2,3 +Update-AzAksMaintenanceConfiguration -ResourceGroupName mygroup -ResourceName myCluster -ConfigName 'aks_maintenance_config' -TimeInWeek $TimeInWeek -NotAllowedTime $TimeSpan ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Id : /subscriptions/{subId}/resourceGroups/mygroup/providers/Microsoft.ContainerService/managedClusters/myCluster/maintenanceConfigurations/aks_mainten + ance_config +Name : aks_maintenance_config +NotAllowedTime : {{ + "start": "2023-03-02T07:56:08.2725383Z", + "end": "2023-03-03T07:56:08.2727034Z" + }} +ResourceGroupName : mygroup +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +TimeInWeek : {{ + "day": "Sunday", + "hourSlots": [ 2, 3 ] + }} +Type : +``` + +Update a maintenance configuration "aks_maintenance_config" in a managed cluster "myCluster" with a time in week and a not allowed time span. ## PARAMETERS @@ -72,7 +68,7 @@ The name of the maintenance configuration. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityManagedCluster, UpdateViaIdentityManagedClusterExpanded +Parameter Sets: UpdateExpanded Aliases: Required: True @@ -113,27 +109,12 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -ManagedClusterInputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity -Parameter Sets: UpdateViaIdentityManagedCluster, UpdateViaIdentityManagedClusterExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -NotAllowedTime Time slots on which upgrade is not allowed. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan[] -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityManagedClusterExpanded +Parameter Sets: (All) Aliases: Required: False @@ -143,21 +124,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Parameter -See [planned maintenance](https://docs.microsoft.com/azure/aks/planned-maintenance) for more information about planned maintenance. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration -Parameter Sets: UpdateViaIdentityManagedCluster -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -209,7 +175,7 @@ If two array entries specify the same day of the week, the applied configuration ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek[] -Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded, UpdateViaIdentityManagedClusterExpanded +Parameter Sets: (All) Aliases: Required: False @@ -257,8 +223,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration - ## OUTPUTS ### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration diff --git a/src/Aks/Aks.Autorest/examples/New-AzAksMaintenanceConfiguration.md b/src/Aks/Aks.Autorest/examples/New-AzAksMaintenanceConfiguration.md index c5173298fe7a..390e14d2ce0b 100644 --- a/src/Aks/Aks.Autorest/examples/New-AzAksMaintenanceConfiguration.md +++ b/src/Aks/Aks.Autorest/examples/New-AzAksMaintenanceConfiguration.md @@ -1,16 +1,30 @@ ### Example 1: Creates or updates a maintenance configuration in the specified managed cluster ```powershell $TimeSpan = New-AzAksTimeSpanObject -Start (Get-Date -Year 2023 -Month 3 -Day 1) -End (Get-Date -Year 2023 -Month 3 -Day 2) -$TimeInWeek = New-AzAksTimeInWeekObject -Day 'Sunday' -HourSlot 1,2 -$MaintenanceConfig = New-AzAksMaintenanceConfiguration -ResourceGroupName mygroup -ResourceName myCluster -ConfigName 'aks_maintenance_config' -TimeInWeek $TimeInWeek -NotAllowedTime $TimeSpan +$TimeInWeek = New-AzAksTimeInWeekObject -Day Sunday -HourSlot 1,2 +New-AzAksMaintenanceConfiguration -ResourceGroupName mygroup -ResourceName myCluster -ConfigName 'aks_maintenance_config' -TimeInWeek $TimeInWeek -NotAllowedTime $TimeSpan ``` ```output -Name ----- -aks_maintenance_config +Id : /subscriptions/{subId}/resourceGroups/mygroup/providers/Microsoft.ContainerService/managedClusters/myCluster/maintenanceConfigurations/aks_mainten + ance_config +Name : aks_maintenance_config +NotAllowedTime : {{ + "start": "2023-03-01T07:56:08.2725383Z", + "end": "2023-03-02T07:56:08.2727034Z" + }} +ResourceGroupName : mygroup +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +TimeInWeek : {{ + "day": "Sunday", + "hourSlots": [ 1, 2 ] + }} +Type : ``` -Create a maintenance configuration "aks_maintenance_config" in a managed cluster "myCluster" with a time in week and a not allowed time span. - - +Create a maintenance configuration "aks_maintenance_config" in a managed cluster "myCluster" with a time in week and a not allowed time span. \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/examples/Update-AzAksMaintenanceConfiguration.md b/src/Aks/Aks.Autorest/examples/Update-AzAksMaintenanceConfiguration.md index 0371f56c36d2..be034022ccee 100644 --- a/src/Aks/Aks.Autorest/examples/Update-AzAksMaintenanceConfiguration.md +++ b/src/Aks/Aks.Autorest/examples/Update-AzAksMaintenanceConfiguration.md @@ -1,22 +1,30 @@ -### Example 1: {{ Add title here }} +### Example 1: Update a maintenance configuration in the specified managed cluster ```powershell -{{ Add code here }} +$TimeSpan = New-AzAksTimeSpanObject -Start (Get-Date -Year 2023 -Month 3 -Day 2) -End (Get-Date -Year 2023 -Month 3 -Day 3) +$TimeInWeek = New-AzAksTimeInWeekObject -Day Sunday -HourSlot 2,3 +Update-AzAksMaintenanceConfiguration -ResourceGroupName mygroup -ResourceName myCluster -ConfigName 'aks_maintenance_config' -TimeInWeek $TimeInWeek -NotAllowedTime $TimeSpan ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} +Id : /subscriptions/{subId}/resourceGroups/mygroup/providers/Microsoft.ContainerService/managedClusters/myCluster/maintenanceConfigurations/aks_mainten + ance_config +Name : aks_maintenance_config +NotAllowedTime : {{ + "start": "2023-03-02T07:56:08.2725383Z", + "end": "2023-03-03T07:56:08.2727034Z" + }} +ResourceGroupName : mygroup +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +TimeInWeek : {{ + "day": "Sunday", + "hourSlots": [ 2, 3 ] + }} +Type : ``` -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - +Update a maintenance configuration "aks_maintenance_config" in a managed cluster "myCluster" with a time in week and a not allowed time span. \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/generate-info.json b/src/Aks/Aks.Autorest/generate-info.json index 3c66281e5758..e7f58358bc52 100644 --- a/src/Aks/Aks.Autorest/generate-info.json +++ b/src/Aks/Aks.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "725111ea-e9b5-4f80-af1b-eb0a593601ad" + "generate_Id": "a9d82a8f-c2f1-4152-b0b4-326aa630d83d" } diff --git a/src/Aks/Aks.sln b/src/Aks/Aks.sln index bd18da71be65..5a717ab45c04 100644 --- a/src/Aks/Aks.sln +++ b/src/Aks/Aks.sln @@ -29,7 +29,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aks.Management.Sdk", "Aks.M EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Aks.Autorest", "Aks.Autorest", "{16EC2DC2-EB7B-325E-770F-D562EF2F68D3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Aks", "..\..\generated\Aks\Aks.Autorest\Az.Aks.csproj", "{47D66CC7-6EAA-49EF-B028-E60F9E8A0740}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Aks", "..\..\generated\Aks\Aks.Autorest\Az.Aks.csproj", "{EF54FF53-5290-47CF-9B13-9B4823C8C482}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -161,18 +161,18 @@ Global {3CB53E47-87C1-41C9-BD57-19E7B07C63FB}.Release|x64.Build.0 = Release|Any CPU {3CB53E47-87C1-41C9-BD57-19E7B07C63FB}.Release|x86.ActiveCfg = Release|Any CPU {3CB53E47-87C1-41C9-BD57-19E7B07C63FB}.Release|x86.Build.0 = Release|Any CPU - {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Debug|Any CPU.Build.0 = Debug|Any CPU - {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Debug|x64.ActiveCfg = Debug|Any CPU - {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Debug|x64.Build.0 = Debug|Any CPU - {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Debug|x86.ActiveCfg = Debug|Any CPU - {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Debug|x86.Build.0 = Debug|Any CPU - {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Release|Any CPU.ActiveCfg = Release|Any CPU - {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Release|Any CPU.Build.0 = Release|Any CPU - {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Release|x64.ActiveCfg = Release|Any CPU - {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Release|x64.Build.0 = Release|Any CPU - {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Release|x86.ActiveCfg = Release|Any CPU - {47D66CC7-6EAA-49EF-B028-E60F9E8A0740}.Release|x86.Build.0 = Release|Any CPU + {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Debug|x64.ActiveCfg = Debug|Any CPU + {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Debug|x64.Build.0 = Debug|Any CPU + {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Debug|x86.ActiveCfg = Debug|Any CPU + {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Debug|x86.Build.0 = Debug|Any CPU + {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Release|Any CPU.Build.0 = Release|Any CPU + {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Release|x64.ActiveCfg = Release|Any CPU + {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Release|x64.Build.0 = Release|Any CPU + {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Release|x86.ActiveCfg = Release|Any CPU + {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -186,7 +186,7 @@ Global {3087729D-E16D-4A31-BAF7-E115A50F719B} = {7F7F3C8C-B80E-4823-B2E5-20AF86A219FA} {A7EEA531-0AD2-43CD-ACCB-9DC7E8DB86BF} = {3FD20327-1C9F-4940-A96B-AD3B05FC2185} {135EE24A-A2A6-494D-B82F-2167FC3A298E} = {3FD20327-1C9F-4940-A96B-AD3B05FC2185} - {47D66CC7-6EAA-49EF-B028-E60F9E8A0740} = {16EC2DC2-EB7B-325E-770F-D562EF2F68D3} + {EF54FF53-5290-47CF-9B13-9B4823C8C482} = {16EC2DC2-EB7B-325E-770F-D562EF2F68D3} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {35B1D5ED-BE63-4E38-8FFE-7ADAA7A764CA} diff --git a/src/Aks/Aks/Az.Aks.psd1 b/src/Aks/Aks/Az.Aks.psd1 index 61a22af32070..5c07d48afd24 100644 --- a/src/Aks/Aks/Az.Aks.psd1 +++ b/src/Aks/Aks/Az.Aks.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025-04-02 +# Generated on: 2025-04-08 # @{ diff --git a/src/Aks/Aks/help/New-AzAksMaintenanceConfiguration.md b/src/Aks/Aks/help/New-AzAksMaintenanceConfiguration.md index becd0b6ff3a2..6aeb846fee23 100644 --- a/src/Aks/Aks/help/New-AzAksMaintenanceConfiguration.md +++ b/src/Aks/Aks/help/New-AzAksMaintenanceConfiguration.md @@ -19,13 +19,6 @@ New-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName ] [-WhatIf] [-Confirm] [] ``` -### CreateViaJsonString -``` -New-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName -ResourceName - [-SubscriptionId ] -JsonString [-DefaultProfile ] - [-WhatIf] [-Confirm] [] -``` - ### CreateViaJsonFilePath ``` New-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName -ResourceName @@ -33,17 +26,10 @@ New-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName ] ``` -### CreateViaIdentityManagedClusterExpanded -``` -New-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject - [-NotAllowedTime ] [-TimeInWeek ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] -``` - -### CreateViaIdentityManagedCluster +### CreateViaJsonString ``` -New-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject - -Parameter [-DefaultProfile ] +New-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName -ResourceName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` @@ -55,14 +41,30 @@ create a maintenance configuration in the specified managed cluster. ### Example 1: Creates or updates a maintenance configuration in the specified managed cluster ```powershell $TimeSpan = New-AzAksTimeSpanObject -Start (Get-Date -Year 2023 -Month 3 -Day 1) -End (Get-Date -Year 2023 -Month 3 -Day 2) -$TimeInWeek = New-AzAksTimeInWeekObject -Day 'Sunday' -HourSlot 1,2 -$MaintenanceConfig = New-AzAksMaintenanceConfiguration -ResourceGroupName mygroup -ResourceName myCluster -ConfigName 'aks_maintenance_config' -TimeInWeek $TimeInWeek -NotAllowedTime $TimeSpan +$TimeInWeek = New-AzAksTimeInWeekObject -Day Sunday -HourSlot 1,2 +New-AzAksMaintenanceConfiguration -ResourceGroupName mygroup -ResourceName myCluster -ConfigName 'aks_maintenance_config' -TimeInWeek $TimeInWeek -NotAllowedTime $TimeSpan ``` ```output -Name ----- -aks_maintenance_config +Id : /subscriptions/{subId}/resourceGroups/mygroup/providers/Microsoft.ContainerService/managedClusters/myCluster/maintenanceConfigurations/aks_mainten + ance_config +Name : aks_maintenance_config +NotAllowedTime : {{ + "start": "2023-03-01T07:56:08.2725383Z", + "end": "2023-03-02T07:56:08.2727034Z" + }} +ResourceGroupName : mygroup +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +TimeInWeek : {{ + "day": "Sunday", + "hourSlots": [ 1, 2 ] + }} +Type : ``` Create a maintenance configuration "aks_maintenance_config" in a managed cluster "myCluster" with a time in week and a not allowed time span. @@ -130,27 +132,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ManagedClusterInputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity -Parameter Sets: CreateViaIdentityManagedClusterExpanded, CreateViaIdentityManagedCluster -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -NotAllowedTime Time slots on which upgrade is not allowed. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan[] -Parameter Sets: CreateExpanded, CreateViaIdentityManagedClusterExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -160,28 +147,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Parameter -See [planned maintenance](https://docs.microsoft.com/azure/aks/planned-maintenance) for more information about planned maintenance. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration -Parameter Sets: CreateViaIdentityManagedCluster -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -ResourceGroupName The name of the resource group. The name is case insensitive. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath +Parameter Sets: (All) Aliases: Required: True @@ -196,7 +168,7 @@ The name of the managed cluster resource. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath +Parameter Sets: (All) Aliases: Required: True @@ -211,7 +183,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath +Parameter Sets: (All) Aliases: Required: False @@ -226,7 +198,7 @@ If two array entries specify the same day of the week, the applied configuration ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek[] -Parameter Sets: CreateExpanded, CreateViaIdentityManagedClusterExpanded +Parameter Sets: CreateExpanded Aliases: Required: False @@ -272,10 +244,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity - -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration - ## OUTPUTS ### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration diff --git a/src/Aks/Aks/help/Update-AzAksMaintenanceConfiguration.md b/src/Aks/Aks/help/Update-AzAksMaintenanceConfiguration.md index af35a4e18fee..0b9b8a350317 100644 --- a/src/Aks/Aks/help/Update-AzAksMaintenanceConfiguration.md +++ b/src/Aks/Aks/help/Update-AzAksMaintenanceConfiguration.md @@ -19,20 +19,6 @@ Update-AzAksMaintenanceConfiguration -ConfigName -ResourceGroupName ] [-WhatIf] [-Confirm] [] ``` -### UpdateViaIdentityManagedClusterExpanded -``` -Update-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject - [-NotAllowedTime ] [-TimeInWeek ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] -``` - -### UpdateViaIdentityManagedCluster -``` -Update-AzAksMaintenanceConfiguration -ConfigName -ManagedClusterInputObject - -Parameter [-DefaultProfile ] - [-WhatIf] [-Confirm] [] -``` - ### UpdateViaIdentityExpanded ``` Update-AzAksMaintenanceConfiguration -InputObject [-NotAllowedTime ] @@ -45,27 +31,36 @@ update a maintenance configuration in the specified managed cluster. ## EXAMPLES -### Example 1: {{ Add title here }} -```powershell -{{ Add code here }} -``` - -```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +### Example 1: Update a maintenance configuration in the specified managed cluster ```powershell -{{ Add code here }} +$TimeSpan = New-AzAksTimeSpanObject -Start (Get-Date -Year 2023 -Month 3 -Day 2) -End (Get-Date -Year 2023 -Month 3 -Day 3) +$TimeInWeek = New-AzAksTimeInWeekObject -Day Sunday -HourSlot 2,3 +Update-AzAksMaintenanceConfiguration -ResourceGroupName mygroup -ResourceName myCluster -ConfigName 'aks_maintenance_config' -TimeInWeek $TimeInWeek -NotAllowedTime $TimeSpan ``` ```output -{{ Add output here (remove the output block if the example doesn't have an output) }} -``` - -{{ Add description here }} +Id : /subscriptions/{subId}/resourceGroups/mygroup/providers/Microsoft.ContainerService/managedClusters/myCluster/maintenanceConfigurations/aks_mainten + ance_config +Name : aks_maintenance_config +NotAllowedTime : {{ + "start": "2023-03-02T07:56:08.2725383Z", + "end": "2023-03-03T07:56:08.2727034Z" + }} +ResourceGroupName : mygroup +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +TimeInWeek : {{ + "day": "Sunday", + "hourSlots": [ 2, 3 ] + }} +Type : +``` + +Update a maintenance configuration "aks_maintenance_config" in a managed cluster "myCluster" with a time in week and a not allowed time span. ## PARAMETERS @@ -74,7 +69,7 @@ The name of the maintenance configuration. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityManagedClusterExpanded, UpdateViaIdentityManagedCluster +Parameter Sets: UpdateExpanded Aliases: Required: True @@ -115,27 +110,12 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -ManagedClusterInputObject -Identity Parameter - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity -Parameter Sets: UpdateViaIdentityManagedClusterExpanded, UpdateViaIdentityManagedCluster -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -NotAllowedTime Time slots on which upgrade is not allowed. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeSpan[] -Parameter Sets: UpdateExpanded, UpdateViaIdentityManagedClusterExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -145,21 +125,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Parameter -See [planned maintenance](https://docs.microsoft.com/azure/aks/planned-maintenance) for more information about planned maintenance. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration -Parameter Sets: UpdateViaIdentityManagedCluster -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -211,7 +176,7 @@ If two array entries specify the same day of the week, the applied configuration ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.ITimeInWeek[] -Parameter Sets: UpdateExpanded, UpdateViaIdentityManagedClusterExpanded, UpdateViaIdentityExpanded +Parameter Sets: (All) Aliases: Required: False @@ -259,8 +224,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IAksIdentity -### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration - ## OUTPUTS ### Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceConfiguration diff --git a/tools/StaticAnalysis/Exceptions/Az.Aks/ExampleIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Aks/ExampleIssues.csv index b152c8807f85..698224c2ae1d 100644 --- a/tools/StaticAnalysis/Exceptions/Az.Aks/ExampleIssues.csv +++ b/tools/StaticAnalysis/Exceptions/Az.Aks/ExampleIssues.csv @@ -1,17 +1,5 @@ "Module","Cmdlet","Example","Line","RuleName","ProblemId","Severity","Description","Extent","Remediation" "Az.Aks","Disable-AzAksAddOn","1","1","Capitalization_Conventions_Violated","5101","1","Disable-AzAksAddon doesn't follow the Capitalization Conventions.","Disable-AzAksAddon -Name HttpApplicationRouting,Monitoring,AzurePolicy,VirtualNode,KubeDashboard","Check the Capitalization Conventions. Suggest format: Disable-AzAksAddOn" "Az.Aks","Enable-AzAksAddOn","1","1","Capitalization_Conventions_Violated","5101","1","Enable-AzAksAddon doesn't follow the Capitalization Conventions.","Enable-AzAksAddon -Name HttpApplicationRouting,Monitoring,AzurePolicy,VirtualNode,KubeDashboard -WorkspaceResourceId xxxxx/xxxx -SubnetName subnet","Check the Capitalization Conventions. Suggest format: Enable-AzAksAddOn" -"Az.Aks","Update-AzAksMaintenanceConfiguration","1","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\Aks\Aks.Autorest\docs\Update-AzAksMaintenanceConfiguration.md","Add title for the example. Remove any placeholders." -"Az.Aks","Update-AzAksMaintenanceConfiguration","1","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\Aks\Aks.Autorest\docs\Update-AzAksMaintenanceConfiguration.md","Add code for the example. Remove any placeholders." -"Az.Aks","Update-AzAksMaintenanceConfiguration","1","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\Aks\Aks.Autorest\docs\Update-AzAksMaintenanceConfiguration.md","Add description for the example. Remove any placeholders." -"Az.Aks","Update-AzAksMaintenanceConfiguration","2","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\Aks\Aks.Autorest\docs\Update-AzAksMaintenanceConfiguration.md","Add title for the example. Remove any placeholders." -"Az.Aks","Update-AzAksMaintenanceConfiguration","2","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\Aks\Aks.Autorest\docs\Update-AzAksMaintenanceConfiguration.md","Add code for the example. Remove any placeholders." -"Az.Aks","Update-AzAksMaintenanceConfiguration","2","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\Aks\Aks.Autorest\docs\Update-AzAksMaintenanceConfiguration.md","Add description for the example. Remove any placeholders." -"Az.Aks","Update-AzAksMaintenanceConfiguration","1","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\Aks\Aks\help\Update-AzAksMaintenanceConfiguration.md","Add title for the example. Remove any placeholders." -"Az.Aks","Update-AzAksMaintenanceConfiguration","1","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\Aks\Aks\help\Update-AzAksMaintenanceConfiguration.md","Add code for the example. Remove any placeholders." -"Az.Aks","Update-AzAksMaintenanceConfiguration","1","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\Aks\Aks\help\Update-AzAksMaintenanceConfiguration.md","Add description for the example. Remove any placeholders." -"Az.Aks","Update-AzAksMaintenanceConfiguration","2","0","MissingExampleTitle","5043","1","Title of the example is missing.","D:\a\_work\1\s\src\Aks\Aks\help\Update-AzAksMaintenanceConfiguration.md","Add title for the example. Remove any placeholders." -"Az.Aks","Update-AzAksMaintenanceConfiguration","2","0","MissingExampleCode","5044","1","Code of the example is missing.","D:\a\_work\1\s\src\Aks\Aks\help\Update-AzAksMaintenanceConfiguration.md","Add code for the example. Remove any placeholders." -"Az.Aks","Update-AzAksMaintenanceConfiguration","2","0","MissingExampleDescription","5046","1","Description of the example is missing.","D:\a\_work\1\s\src\Aks\Aks\help\Update-AzAksMaintenanceConfiguration.md","Add description for the example. Remove any placeholders." "Az.Aks","Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint","1","2","Is_Alias","5100","2","select is an alias of 'Select-Object'.","select Category,Endpoint","Use formal name 'Select-Object' of the alias 'select'." "Az.Aks","Get-AzAksManagedClusterOutboundNetworkDependencyEndpoint","1","2","Is_Alias","5100","2","select is an alias of 'Select-Object'.","select Category,Endpoint","Use formal name 'Select-Object' of the alias 'select'." \ No newline at end of file From 506128f895dd99d26abd93c825de284ce1a8680d Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Tue, 8 Apr 2025 16:29:58 +0800 Subject: [PATCH 6/8] update changelog --- src/Aks/Aks/ChangeLog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Aks/Aks/ChangeLog.md b/src/Aks/Aks/ChangeLog.md index 8c71af32348b..513adb1aba5f 100644 --- a/src/Aks/Aks/ChangeLog.md +++ b/src/Aks/Aks/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Az.Aks module is migrated to Autorest PowerShell v4: * Modified cmdlet `Get-AzAksMaintenanceConfiguration`: Added parameter `-ManagedClusterInputObject`. Added parameter set `GetViaIdentityManagedCluster`. * Modified cmdlet `Get-AzAksManagedClusterCommandResult`: Added parameter `-ManagedClusterInputObject`. Added parameter set `GetViaIdentityManagedCluster`. * Modified cmdlet `Get-AzAksNodePoolUpgradeProfile`: Added parameter `-ManagedClusterInputObject`. Added parameter set `GetViaIdentityManagedCluster`. From 65fdd7cbc5b2a7308d3a19ceb89cd0b8712161e2 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Thu, 10 Apr 2025 17:45:53 +0800 Subject: [PATCH 7/8] update changelog --- src/Aks/Aks/ChangeLog.md | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/Aks/Aks/ChangeLog.md b/src/Aks/Aks/ChangeLog.md index 513adb1aba5f..ab09506a0645 100644 --- a/src/Aks/Aks/ChangeLog.md +++ b/src/Aks/Aks/ChangeLog.md @@ -18,17 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release -* Az.Aks module is migrated to Autorest PowerShell v4: - * Modified cmdlet `Get-AzAksMaintenanceConfiguration`: Added parameter `-ManagedClusterInputObject`. Added parameter set `GetViaIdentityManagedCluster`. - * Modified cmdlet `Get-AzAksManagedClusterCommandResult`: Added parameter `-ManagedClusterInputObject`. Added parameter set `GetViaIdentityManagedCluster`. - * Modified cmdlet `Get-AzAksNodePoolUpgradeProfile`: Added parameter `-ManagedClusterInputObject`. Added parameter set `GetViaIdentityManagedCluster`. - * Modified cmdlet `Invoke-AzAksAbortAgentPoolLatestOperation`: Added parameter `-ManagedclusterInputObject`. Added parameter set `AbortViaIdentityManagedcluster`. - * Modified cmdlet `New-AzAksMaintenanceConfiguration`: Added parameters `-ManagedClusterInputObject`, `-Parameter`, `-JsonFilePath` and `-JsonString`. Added parameter set `CreateViaJsonString`. Added parameter set `CreateViaJsonFilePath`. Added parameter set `CreateExpanded`. Added parameter set `CreateViaIdentityManagedClusterExpanded`. Added parameter set `CreateViaIdentityManagedCluster`. - * Modified cmdlet `New-AzAksSnapshot`: Added parameters `-JsonFilePath` and `-JsonString`. Changed the type of parameter `-SnapshotType` from `SnapshotType` to `String`. Added parameter set `CreateExpanded`. Added parameter set `CreateViaJsonFilePath`. Added parameter set `CreateViaJsonString`. - * Modified cmdlet `New-AzAksTimeInWeekObject`: Changed the type of parameter `-Day` from `WeekDay` to `String`. - * Modified cmdlet `Remove-AzAksMaintenanceConfiguration`: Added parameter `-ManagedClusterInputObject`. Added parameter set `DeleteViaIdentityManagedCluster`. - * Modified cmdlet `Start-AzAksManagedClusterCommand`: Added parameters `-JsonFilePath` and `-JsonString`. Added parameter set `RunViaJsonString`. Added parameter set `RunViaJsonFilePath`. - * Added cmdlet `Update-AzAksMaintenanceConfiguration`. +* Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). ## Version 6.1.1 * Preannounced breaking change: The default value of `-NodeVmSize` parameter of `New-AzAksCluster` will be changing from 'Standard_DS2_V2 (Linux), Standard_DS2_V3 (Windows)' to being dynamically selected by the AKS resource provider based on quota and capacity in the next major release. From 7a1503df2fb89fc9d9147e0d947a86454111916d Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Wed, 30 Apr 2025 21:46:43 +0800 Subject: [PATCH 8/8] added test case for Update-AzAksMaintenanceConfiguration --- src/Aks/Aks.Autorest/generate-info.json | 2 +- ...AksMaintenanceConfiguration.Recording.json | 42 +++-- ...ew-AzAksMaintenanceConfiguration.Tests.ps1 | 6 +- ...AksMaintenanceConfiguration.Recording.json | 167 ++++++++++++++++++ ...te-AzAksMaintenanceConfiguration.Tests.ps1 | 25 +-- src/Aks/Aks.sln | 28 +-- src/Aks/Aks/Az.Aks.psd1 | 2 +- 7 files changed, 224 insertions(+), 48 deletions(-) create mode 100644 src/Aks/Aks.Autorest/test/Update-AzAksMaintenanceConfiguration.Recording.json diff --git a/src/Aks/Aks.Autorest/generate-info.json b/src/Aks/Aks.Autorest/generate-info.json index e7f58358bc52..82e79c7f224b 100644 --- a/src/Aks/Aks.Autorest/generate-info.json +++ b/src/Aks/Aks.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "a9d82a8f-c2f1-4152-b0b4-326aa630d83d" + "generate_Id": "8e125419-bbed-45dc-a4dc-934a7823b7e7" } diff --git a/src/Aks/Aks.Autorest/test/New-AzAksMaintenanceConfiguration.Recording.json b/src/Aks/Aks.Autorest/test/New-AzAksMaintenanceConfiguration.Recording.json index 381b67d3aa3d..86631621383f 100644 --- a/src/Aks/Aks.Autorest/test/New-AzAksMaintenanceConfiguration.Recording.json +++ b/src/Aks/Aks.Autorest/test/New-AzAksMaintenanceConfiguration.Recording.json @@ -3,7 +3,7 @@ "Request": { "Method": "PUT", "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/aks-test/providers/Microsoft.ContainerService/managedClusters/aks/maintenanceConfigurations/aks_maintenance_config?api-version=2023-02-01", - "Content": "{\r\n \"properties\": {\r\n \"timeInWeek\": [\r\n {\r\n \"day\": \"Sunday\",\r\n \"hourSlots\": [ 1, 2 ]\r\n }\r\n ],\r\n \"notAllowedTime\": [\r\n {\r\n \"start\": \"2023-03-01T17:07:57.6433865+08:00\",\r\n \"end\": \"2023-03-02T17:07:57.6436323+08:00\"\r\n }\r\n ]\r\n }\r\n}", + "Content": "{\r\n \"properties\": {\r\n \"timeInWeek\": [\r\n {\r\n \"day\": \"Sunday\",\r\n \"hourSlots\": [ 1, 2 ]\r\n }\r\n ],\r\n \"notAllowedTime\": [\r\n {\r\n \"start\": \"2025-04-29T21:02:55.4623881+08:00\",\r\n \"end\": \"2025-05-02T21:02:55.4625677+08:00\"\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -17,21 +17,24 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], - "x-ms-correlation-request-id": [ "79524363-4780-431e-8552-086f0fe58189" ], - "x-ms-request-id": [ "4bbec507-2685-4953-ab89-aa524290e446" ], + "x-ms-operation-identifier": [ "tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=80e9b30a-a902-457c-bde2-51f85fcd6eb6/japanwest/afc9417d-ad64-44d2-a05e-7455e419b541" ], + "x-ms-correlation-request-id": [ "091fb50e-caac-4493-819d-90632f6693ae" ], + "x-ms-request-id": [ "e9941b56-6b13-4c05-8188-0e4ef160246b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Server": [ "nginx" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230330T090759Z:79524363-4780-431e-8552-086f0fe58189" ], - "Date": [ "Thu, 30 Mar 2023 09:07:58 GMT" ] + "x-ms-ratelimit-remaining-subscription-writes": [ "199" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "2999" ], + "x-ms-routing-request-id": [ "JAPANWEST:20250430T130257Z:091fb50e-caac-4493-819d-90632f6693ae" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 04F6D7D847E843FD96733A491F8B0C76 Ref B: TYO201151004036 Ref C: 2025-04-30T13:02:56Z" ], + "Date": [ "Wed, 30 Apr 2025 13:02:56 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "487" ], + "Content-Length": [ "467" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\n \"id\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/aks-test/providers/Microsoft.ContainerService/managedClusters/aks/maintenanceConfigurations/aks_maintenance_config\",\n \"name\": \"aks_maintenance_config\",\n \"properties\": {\n \"timeInWeek\": [\n {\n \"day\": \"Sunday\",\n \"hourSlots\": [\n 1,\n 2\n ]\n }\n ],\n \"notAllowedTime\": [\n {\n \"start\": \"2023-03-01T09:07:57.6433865Z\",\n \"end\": \"2023-03-02T09:07:57.6436323Z\"\n }\n ]\n }\n }", + "Content": "{\n \"id\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/aks-test/providers/Microsoft.ContainerService/managedClusters/aks/maintenanceConfigurations/aks_maintenance_config\",\n \"name\": \"aks_maintenance_config\",\n \"properties\": {\n \"timeInWeek\": [\n {\n \"day\": \"Sunday\",\n \"hourSlots\": [\n 1,\n 2\n ]\n }\n ],\n \"notAllowedTime\": [\n {\n \"start\": \"2025-04-29T13:02:55.4623881Z\",\n \"end\": \"2025-05-02T13:02:55.4625677Z\"\n }\n ]\n }\n}", "isContentBase64": false } }, @@ -42,12 +45,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "80d4a0a8-0c88-4084-8f1f-2e90991943a5" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "39105973-d205-4d63-bbcf-49001d25c600" ], "CommandName": [ "Remove-AzAksMaintenanceConfiguration" ], "FullCommandName": [ "Remove-AzAksMaintenanceConfiguration_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.9", "Az.Aks/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.7", "Az.Aks/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -58,14 +61,17 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], - "x-ms-correlation-request-id": [ "b1cbdec1-6394-4432-af07-960eff275344" ], - "x-ms-request-id": [ "5261a3ea-e27d-4a6d-bfa8-67afe9ce2bec" ], + "x-ms-operation-identifier": [ "tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=80e9b30a-a902-457c-bde2-51f85fcd6eb6/japanwest/a674f47c-3d3a-405f-bd9e-03ef4982e68b" ], + "x-ms-correlation-request-id": [ "69cf7ea3-fd53-43e9-924d-f30792be0cfa" ], + "x-ms-request-id": [ "83ab9986-a482-48e4-a901-38a32bf25950" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Server": [ "nginx" ], - "x-ms-routing-request-id": [ "SOUTHEASTASIA:20230330T090759Z:b1cbdec1-6394-4432-af07-960eff275344" ], - "Date": [ "Thu, 30 Mar 2023 09:07:59 GMT" ] + "x-ms-ratelimit-remaining-subscription-deletes": [ "199" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "2999" ], + "x-ms-routing-request-id": [ "JAPANWEST:20250430T130257Z:69cf7ea3-fd53-43e9-924d-f30792be0cfa" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2857DCADA60C463EACFB5B09709C30C7 Ref B: TYO201151004036 Ref C: 2025-04-30T13:02:57Z" ], + "Date": [ "Wed, 30 Apr 2025 13:02:57 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], diff --git a/src/Aks/Aks.Autorest/test/New-AzAksMaintenanceConfiguration.Tests.ps1 b/src/Aks/Aks.Autorest/test/New-AzAksMaintenanceConfiguration.Tests.ps1 index 4463a6282306..ed14d98e16eb 100644 --- a/src/Aks/Aks.Autorest/test/New-AzAksMaintenanceConfiguration.Tests.ps1 +++ b/src/Aks/Aks.Autorest/test/New-AzAksMaintenanceConfiguration.Tests.ps1 @@ -17,13 +17,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzAksMaintenanceConfigura Describe 'New-AzAksMaintenanceConfiguration' { It 'CreateExpanded' { $MaintenanceConfigName = 'aks_maintenance_config' - $TimeSpan = New-AzAksTimeSpanObject -Start (Get-Date -Year 2023 -Month 3 -Day 1) -End (Get-Date -Year 2023 -Month 3 -Day 2) + $TimeSpan = New-AzAksTimeSpanObject -Start (Get-Date -Year 2025 -Month 4 -Day 29) -End (Get-Date -Year 2025 -Month 5 -Day 2) $TimeInWeek = New-AzAksTimeInWeekObject -Day 'Sunday' -HourSlot 1,2 $MaintenanceConfig = New-AzAksMaintenanceConfiguration -ResourceGroupName $env.ResourceGroupName -ResourceName $env.AksName -ConfigName $MaintenanceConfigName -TimeInWeek $TimeInWeek -NotAllowedTime $TimeSpan $MaintenanceConfig.Name | Should -Be $MaintenanceConfigName - $MaintenanceConfig.NotAllowedTime.Start.ToString("M-d-yyyy") | Should -Be '3-1-2023' - $MaintenanceConfig.NotAllowedTime.End.ToString("M-d-yyyy") | Should -Be '3-2-2023' + $MaintenanceConfig.NotAllowedTime.Start.ToString("M-d-yyyy") | Should -Be '4-29-2025' + $MaintenanceConfig.NotAllowedTime.End.ToString("M-d-yyyy") | Should -Be '5-2-2025' $MaintenanceConfig.TimeInWeek.Day | Should -Be 'Sunday' $MaintenanceConfig.TimeInWeek.HourSlot.Count | Should -Be 2 $MaintenanceConfig.TimeInWeek.HourSlot.Contains(1) | Should -Be $true diff --git a/src/Aks/Aks.Autorest/test/Update-AzAksMaintenanceConfiguration.Recording.json b/src/Aks/Aks.Autorest/test/Update-AzAksMaintenanceConfiguration.Recording.json new file mode 100644 index 000000000000..96f7f6e1bc60 --- /dev/null +++ b/src/Aks/Aks.Autorest/test/Update-AzAksMaintenanceConfiguration.Recording.json @@ -0,0 +1,167 @@ +{ + "Update-AzAksMaintenanceConfiguration+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/aks-test/providers/Microsoft.ContainerService/managedClusters/aks/maintenanceConfigurations/aks_maintenance_config?api-version=2023-02-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/aks-test/providers/Microsoft.ContainerService/managedClusters/aks/maintenanceConfigurations/aks_maintenance_config?api-version=2023-02-01", + "Content": "{\r\n \"properties\": {\r\n \"timeInWeek\": [\r\n {\r\n \"day\": \"Sunday\",\r\n \"hourSlots\": [ 1, 2 ]\r\n }\r\n ],\r\n \"notAllowedTime\": [\r\n {\r\n \"start\": \"2025-04-29T21:26:44.7816659+08:00\",\r\n \"end\": \"2025-05-02T21:26:44.7817118+08:00\"\r\n }\r\n ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "289" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ "tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=80e9b30a-a902-457c-bde2-51f85fcd6eb6/japanwest/dc9d8848-01e0-4736-a5f7-46ca83fd7ffd" ], + "x-ms-correlation-request-id": [ "98ff0412-2894-4997-ad7d-808a488c5375" ], + "x-ms-request-id": [ "62afc7ca-3464-4627-b6fa-d4524ad3e9f6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "199" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "2999" ], + "x-ms-routing-request-id": [ "JAPANWEST:20250430T132646Z:98ff0412-2894-4997-ad7d-808a488c5375" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2BC58454A7A94B22BC04112E57DBD672 Ref B: TYO201151004036 Ref C: 2025-04-30T13:26:45Z" ], + "Date": [ "Wed, 30 Apr 2025 13:26:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "467" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/aks-test/providers/Microsoft.ContainerService/managedClusters/aks/maintenanceConfigurations/aks_maintenance_config\",\n \"name\": \"aks_maintenance_config\",\n \"properties\": {\n \"timeInWeek\": [\n {\n \"day\": \"Sunday\",\n \"hourSlots\": [\n 1,\n 2\n ]\n }\n ],\n \"notAllowedTime\": [\n {\n \"start\": \"2025-04-29T13:26:44.7816659Z\",\n \"end\": \"2025-05-02T13:26:44.7817118Z\"\n }\n ]\n }\n}", + "isContentBase64": false + } + }, + "Update-AzAksMaintenanceConfiguration+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/aks-test/providers/Microsoft.ContainerService/managedClusters/aks/maintenanceConfigurations/aks_maintenance_config?api-version=2023-02-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/aks-test/providers/Microsoft.ContainerService/managedClusters/aks/maintenanceConfigurations/aks_maintenance_config?api-version=2023-02-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "91" ], + "x-ms-client-request-id": [ "32d361d6-730b-41ee-825f-0f6a9792db87" ], + "CommandName": [ "Update-AzAksMaintenanceConfiguration" ], + "FullCommandName": [ "Update-AzAksMaintenanceConfiguration_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.7", "Az.Aks/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ "tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=80e9b30a-a902-457c-bde2-51f85fcd6eb6/japanwest/34292402-ed18-437b-b561-252778f9c955" ], + "x-ms-correlation-request-id": [ "ed6a559b-024c-48cd-a249-2879af50f8b6" ], + "x-ms-request-id": [ "84a157ec-a43e-4569-9667-f31fefd2eb6b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "249" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ], + "x-ms-routing-request-id": [ "JAPANWEST:20250430T132647Z:ed6a559b-024c-48cd-a249-2879af50f8b6" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9615218E25ED4F869DCD082CE2A5942F Ref B: TYO201151004036 Ref C: 2025-04-30T13:26:46Z" ], + "Date": [ "Wed, 30 Apr 2025 13:26:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "467" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/aks-test/providers/Microsoft.ContainerService/managedClusters/aks/maintenanceConfigurations/aks_maintenance_config\",\n \"name\": \"aks_maintenance_config\",\n \"properties\": {\n \"timeInWeek\": [\n {\n \"day\": \"Sunday\",\n \"hourSlots\": [\n 1,\n 2\n ]\n }\n ],\n \"notAllowedTime\": [\n {\n \"start\": \"2025-04-29T13:26:44.7816659Z\",\n \"end\": \"2025-05-02T13:26:44.7817118Z\"\n }\n ]\n }\n}", + "isContentBase64": false + } + }, + "Update-AzAksMaintenanceConfiguration+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/aks-test/providers/Microsoft.ContainerService/managedClusters/aks/maintenanceConfigurations/aks_maintenance_config?api-version=2023-02-01+3": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/aks-test/providers/Microsoft.ContainerService/managedClusters/aks/maintenanceConfigurations/aks_maintenance_config?api-version=2023-02-01", + "Content": "{\r\n \"properties\": {\r\n \"timeInWeek\": [\r\n {\r\n \"day\": \"Sunday\",\r\n \"hourSlots\": [ 1, 2 ]\r\n }\r\n ],\r\n \"notAllowedTime\": [\r\n {\r\n \"start\": \"2025-04-29T21:26:44.7816659+08:00\",\r\n \"end\": \"2025-05-02T21:26:44.7817118+08:00\"\r\n }\r\n ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "289" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ "tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=80e9b30a-a902-457c-bde2-51f85fcd6eb6/japanwest/3340fc5f-6368-4b31-a8ac-65f7c48b10af" ], + "x-ms-correlation-request-id": [ "8cff77e9-6018-4c1e-87e1-b82480d2588b" ], + "x-ms-request-id": [ "2c604aba-b5d5-435f-8ac1-e5e6356ef6b4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "199" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "2999" ], + "x-ms-routing-request-id": [ "JAPANWEST:20250430T132648Z:8cff77e9-6018-4c1e-87e1-b82480d2588b" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C1E113EE0EF94B7290B98E238CC7CA9D Ref B: TYO201151004036 Ref C: 2025-04-30T13:26:47Z" ], + "Date": [ "Wed, 30 Apr 2025 13:26:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "467" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\n \"id\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/aks-test/providers/Microsoft.ContainerService/managedClusters/aks/maintenanceConfigurations/aks_maintenance_config\",\n \"name\": \"aks_maintenance_config\",\n \"properties\": {\n \"timeInWeek\": [\n {\n \"day\": \"Sunday\",\n \"hourSlots\": [\n 1,\n 2\n ]\n }\n ],\n \"notAllowedTime\": [\n {\n \"start\": \"2025-04-29T13:26:44.7816659Z\",\n \"end\": \"2025-05-02T13:26:44.7817118Z\"\n }\n ]\n }\n}", + "isContentBase64": false + } + }, + "Update-AzAksMaintenanceConfiguration+[NoContext]+UpdateExpanded+$DELETE+https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/aks-test/providers/Microsoft.ContainerService/managedClusters/aks/maintenanceConfigurations/aks_maintenance_config?api-version=2023-02-01+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/aks-test/providers/Microsoft.ContainerService/managedClusters/aks/maintenanceConfigurations/aks_maintenance_config?api-version=2023-02-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "93" ], + "x-ms-client-request-id": [ "1b70b363-3bb9-4318-81ce-ca449619558d" ], + "CommandName": [ "Remove-AzAksMaintenanceConfiguration" ], + "FullCommandName": [ "Remove-AzAksMaintenanceConfiguration_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.7", "Az.Aks/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ "tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=80e9b30a-a902-457c-bde2-51f85fcd6eb6/japanwest/8f00c02c-57c4-4aec-9b78-a1d6d5ab989c" ], + "x-ms-correlation-request-id": [ "394c79b2-54bb-4c59-99e7-9ee6ac02f538" ], + "x-ms-request-id": [ "c47b8b94-7ecc-4d02-a832-676874ee6e8f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "199" ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ "2999" ], + "x-ms-routing-request-id": [ "JAPANWEST:20250430T132649Z:394c79b2-54bb-4c59-99e7-9ee6ac02f538" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F13244B47A5940DA9E97EE05D9753B59 Ref B: TYO201151004036 Ref C: 2025-04-30T13:26:49Z" ], + "Date": [ "Wed, 30 Apr 2025 13:26:49 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Aks/Aks.Autorest/test/Update-AzAksMaintenanceConfiguration.Tests.ps1 b/src/Aks/Aks.Autorest/test/Update-AzAksMaintenanceConfiguration.Tests.ps1 index a092b65a791e..4b556edd3e5b 100644 --- a/src/Aks/Aks.Autorest/test/Update-AzAksMaintenanceConfiguration.Tests.ps1 +++ b/src/Aks/Aks.Autorest/test/Update-AzAksMaintenanceConfiguration.Tests.ps1 @@ -15,19 +15,22 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzAksMaintenanceConfig } Describe 'Update-AzAksMaintenanceConfiguration' { - It 'UpdateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } + It 'UpdateExpanded' { + $MaintenanceConfigName = 'aks_maintenance_config' + $TimeSpan = New-AzAksTimeSpanObject -Start (Get-Date -Year 2025 -Month 4 -Day 29) -End (Get-Date -Year 2025 -Month 5 -Day 2) + $TimeInWeek = New-AzAksTimeInWeekObject -Day 'Sunday' -HourSlot 1,2 + $MaintenanceConfig = New-AzAksMaintenanceConfiguration -ResourceGroupName $env.ResourceGroupName -ResourceName $env.AksName -ConfigName $MaintenanceConfigName -TimeInWeek $TimeInWeek -NotAllowedTime $TimeSpan - It 'UpdateViaIdentityManagedClusterExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } + $MaintenanceConfig = Update-AzAksMaintenanceConfiguration -ResourceGroupName $env.ResourceGroupName -ResourceName $env.AksName -ConfigName $MaintenanceConfigName -TimeInWeek $TimeInWeek -NotAllowedTime $TimeSpan - It 'UpdateViaIdentityManagedCluster' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } + $MaintenanceConfig.Name | Should -Be $MaintenanceConfigName + $MaintenanceConfig.NotAllowedTime.Start.ToString("M-d-yyyy") | Should -Be '4-29-2025' + $MaintenanceConfig.NotAllowedTime.End.ToString("M-d-yyyy") | Should -Be '5-2-2025' + $MaintenanceConfig.TimeInWeek.Day | Should -Be 'Sunday' + $MaintenanceConfig.TimeInWeek.HourSlot.Count | Should -Be 2 + $MaintenanceConfig.TimeInWeek.HourSlot.Contains(1) | Should -Be $true + $MaintenanceConfig.TimeInWeek.HourSlot.Contains(2) | Should -Be $true - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + Remove-AzAksMaintenanceConfiguration -ResourceGroupName $env.ResourceGroupName -ResourceName $env.AksName -ConfigName $MaintenanceConfigName } } diff --git a/src/Aks/Aks.sln b/src/Aks/Aks.sln index 5a717ab45c04..9607d16f61aa 100644 --- a/src/Aks/Aks.sln +++ b/src/Aks/Aks.sln @@ -29,7 +29,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aks.Management.Sdk", "Aks.M EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Aks.Autorest", "Aks.Autorest", "{16EC2DC2-EB7B-325E-770F-D562EF2F68D3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Aks", "..\..\generated\Aks\Aks.Autorest\Az.Aks.csproj", "{EF54FF53-5290-47CF-9B13-9B4823C8C482}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Aks", "..\..\generated\Aks\Aks.Autorest\Az.Aks.csproj", "{81598225-9F33-4F29-B68D-873568C01663}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -161,18 +161,18 @@ Global {3CB53E47-87C1-41C9-BD57-19E7B07C63FB}.Release|x64.Build.0 = Release|Any CPU {3CB53E47-87C1-41C9-BD57-19E7B07C63FB}.Release|x86.ActiveCfg = Release|Any CPU {3CB53E47-87C1-41C9-BD57-19E7B07C63FB}.Release|x86.Build.0 = Release|Any CPU - {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Debug|x64.ActiveCfg = Debug|Any CPU - {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Debug|x64.Build.0 = Debug|Any CPU - {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Debug|x86.ActiveCfg = Debug|Any CPU - {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Debug|x86.Build.0 = Debug|Any CPU - {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Release|Any CPU.Build.0 = Release|Any CPU - {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Release|x64.ActiveCfg = Release|Any CPU - {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Release|x64.Build.0 = Release|Any CPU - {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Release|x86.ActiveCfg = Release|Any CPU - {EF54FF53-5290-47CF-9B13-9B4823C8C482}.Release|x86.Build.0 = Release|Any CPU + {81598225-9F33-4F29-B68D-873568C01663}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {81598225-9F33-4F29-B68D-873568C01663}.Debug|Any CPU.Build.0 = Debug|Any CPU + {81598225-9F33-4F29-B68D-873568C01663}.Debug|x64.ActiveCfg = Debug|Any CPU + {81598225-9F33-4F29-B68D-873568C01663}.Debug|x64.Build.0 = Debug|Any CPU + {81598225-9F33-4F29-B68D-873568C01663}.Debug|x86.ActiveCfg = Debug|Any CPU + {81598225-9F33-4F29-B68D-873568C01663}.Debug|x86.Build.0 = Debug|Any CPU + {81598225-9F33-4F29-B68D-873568C01663}.Release|Any CPU.ActiveCfg = Release|Any CPU + {81598225-9F33-4F29-B68D-873568C01663}.Release|Any CPU.Build.0 = Release|Any CPU + {81598225-9F33-4F29-B68D-873568C01663}.Release|x64.ActiveCfg = Release|Any CPU + {81598225-9F33-4F29-B68D-873568C01663}.Release|x64.Build.0 = Release|Any CPU + {81598225-9F33-4F29-B68D-873568C01663}.Release|x86.ActiveCfg = Release|Any CPU + {81598225-9F33-4F29-B68D-873568C01663}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -186,7 +186,7 @@ Global {3087729D-E16D-4A31-BAF7-E115A50F719B} = {7F7F3C8C-B80E-4823-B2E5-20AF86A219FA} {A7EEA531-0AD2-43CD-ACCB-9DC7E8DB86BF} = {3FD20327-1C9F-4940-A96B-AD3B05FC2185} {135EE24A-A2A6-494D-B82F-2167FC3A298E} = {3FD20327-1C9F-4940-A96B-AD3B05FC2185} - {EF54FF53-5290-47CF-9B13-9B4823C8C482} = {16EC2DC2-EB7B-325E-770F-D562EF2F68D3} + {81598225-9F33-4F29-B68D-873568C01663} = {16EC2DC2-EB7B-325E-770F-D562EF2F68D3} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {35B1D5ED-BE63-4E38-8FFE-7ADAA7A764CA} diff --git a/src/Aks/Aks/Az.Aks.psd1 b/src/Aks/Aks/Az.Aks.psd1 index 5c07d48afd24..e62950839ba2 100644 --- a/src/Aks/Aks/Az.Aks.psd1 +++ b/src/Aks/Aks/Az.Aks.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025-04-08 +# Generated on: 2025-04-30 # @{