diff --git a/swaggerci/maintenance/.gitattributes b/swaggerci/maintenance/.gitattributes
new file mode 100644
index 000000000000..2125666142eb
--- /dev/null
+++ b/swaggerci/maintenance/.gitattributes
@@ -0,0 +1 @@
+* text=auto
\ No newline at end of file
diff --git a/swaggerci/maintenance/.gitignore b/swaggerci/maintenance/.gitignore
new file mode 100644
index 000000000000..7998f37e1e47
--- /dev/null
+++ b/swaggerci/maintenance/.gitignore
@@ -0,0 +1,5 @@
+bin
+obj
+.vs
+tools
+test/*-TestResults.xml
\ No newline at end of file
diff --git a/swaggerci/maintenance/Az.Maintenance.csproj b/swaggerci/maintenance/Az.Maintenance.csproj
new file mode 100644
index 000000000000..fd6135eb441c
--- /dev/null
+++ b/swaggerci/maintenance/Az.Maintenance.csproj
@@ -0,0 +1,44 @@
+
+
+
+ 0.1.0
+ 7.1
+ netstandard2.0
+ Library
+ Az.Maintenance.private
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance
+ true
+ false
+ ./bin
+ $(OutputPath)
+ Az.Maintenance.nuspec
+ true
+
+
+ 1998, 1591
+ true
+
+
+
+
+ false
+ TRACE;DEBUG;NETSTANDARD
+
+
+
+ true
+ true
+ MSSharedLibKey.snk
+ TRACE;RELEASE;NETSTANDARD;SIGN
+
+
+
+
+
+
+
+
+ $(DefaultItemExcludes);resources/**
+
+
+
\ No newline at end of file
diff --git a/swaggerci/maintenance/Az.Maintenance.format.ps1xml b/swaggerci/maintenance/Az.Maintenance.format.ps1xml
new file mode 100644
index 000000000000..649cfed67aef
--- /dev/null
+++ b/swaggerci/maintenance/Az.Maintenance.format.ps1xml
@@ -0,0 +1,947 @@
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.MaintenanceIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.MaintenanceIdentity
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ApplyUpdateName
+
+
+ ConfigurationAssignmentName
+
+
+ Id
+
+
+ ProviderName
+
+
+ ResourceGroupName
+
+
+ ResourceName
+
+
+ ResourceParentName
+
+
+ ResourceParentType
+
+
+ ResourceType
+
+
+ SubscriptionId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.ApplyUpdate
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.ApplyUpdate
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Id
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.ApplyUpdateProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.ApplyUpdateProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ LastUpdateTime
+
+
+ ResourceId
+
+
+ Status
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.ConfigurationAssignment
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.ConfigurationAssignment
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Id
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ Type
+
+
+ Location
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.ConfigurationAssignmentProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.ConfigurationAssignmentProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ MaintenanceConfigurationId
+
+
+ ResourceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.ErrorDetails
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.ErrorDetails
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ Message
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.InputLinuxParameters
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.InputLinuxParameters
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ClassificationsToInclude
+
+
+ PackageNameMasksToExclude
+
+
+ PackageNameMasksToInclude
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.InputPatchConfiguration
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.InputPatchConfiguration
+
+
+
+
+
+
+
+
+
+
+
+ RebootSetting
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.InputWindowsParameters
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.InputWindowsParameters
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ClassificationsToInclude
+
+
+ ExcludeKbsRequiringReboot
+
+
+ KbNumbersToExclude
+
+
+ KbNumbersToInclude
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.MaintenanceConfiguration
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.MaintenanceConfiguration
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Id
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ Type
+
+
+ Location
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.MaintenanceConfigurationProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.MaintenanceConfigurationProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ MaintenanceScope
+
+
+ Namespace
+
+
+ Visibility
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.MaintenanceConfigurationPropertiesExtensionProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.MaintenanceConfigurationPropertiesExtensionProperties
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.MaintenanceConfigurationTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.MaintenanceConfigurationTags
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.MaintenanceOverrideProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.MaintenanceOverrideProperties
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.MaintenanceOverrideProperties1
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.MaintenanceOverrideProperties1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ EndDateTime
+
+
+ StartDateTime
+
+
+ TimeZone
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.MaintenanceWindow
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.MaintenanceWindow
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Duration
+
+
+ ExpirationDateTime
+
+
+ RecurEvery
+
+
+ StartDateTime
+
+
+ TimeZone
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.Operation
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.Operation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ IsDataAction
+
+
+ Name
+
+
+ Origin
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.OperationInfo
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.OperationInfo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Description
+
+
+ Operation
+
+
+ Provider
+
+
+ Resource
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.Resource
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.Resource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Id
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.TaskProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.TaskProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source
+
+
+ TaskScope
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.TaskPropertiesParameters
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.TaskPropertiesParameters
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.Update
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.Update
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ImpactDurationInSec
+
+
+ ImpactType
+
+
+ MaintenanceScope
+
+
+ NotBefore
+
+
+ Status
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.UpdateProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.UpdateProperties
+
+
+
+
+
+
+
+
+
+
+
+ ResourceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20.SystemData
+
+ Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20.SystemData
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CreatedAt
+
+
+ CreatedBy
+
+
+ CreatedByType
+
+
+ LastModifiedAt
+
+
+ LastModifiedBy
+
+
+ LastModifiedByType
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/swaggerci/maintenance/Az.Maintenance.nuspec b/swaggerci/maintenance/Az.Maintenance.nuspec
new file mode 100644
index 000000000000..54ba58e10c21
--- /dev/null
+++ b/swaggerci/maintenance/Az.Maintenance.nuspec
@@ -0,0 +1,32 @@
+
+
+
+ Az.Maintenance
+ 0.1.0
+ Microsoft Corporation
+ Microsoft Corporation
+ true
+ https://aka.ms/azps-license
+ https://github.com/Azure/azure-powershell
+ Microsoft Azure PowerShell: $(service-name) cmdlets
+
+ Microsoft Corporation. All rights reserved.
+ Azure ResourceManager ARM PSModule $(service-name)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/swaggerci/maintenance/Az.Maintenance.psd1 b/swaggerci/maintenance/Az.Maintenance.psd1
new file mode 100644
index 000000000000..095a208ea944
--- /dev/null
+++ b/swaggerci/maintenance/Az.Maintenance.psd1
@@ -0,0 +1,24 @@
+@{
+ GUID = '3f0dc60c-d6fd-4bd2-96ae-534568c26317'
+ RootModule = './Az.Maintenance.psm1'
+ ModuleVersion = '0.1.0'
+ CompatiblePSEditions = 'Core', 'Desktop'
+ Author = 'Microsoft Corporation'
+ CompanyName = 'Microsoft Corporation'
+ Copyright = 'Microsoft Corporation. All rights reserved.'
+ Description = 'Microsoft Azure PowerShell: Maintenance cmdlets'
+ PowerShellVersion = '5.1'
+ DotNetFrameworkVersion = '4.7.2'
+ RequiredAssemblies = './bin/Az.Maintenance.private.dll'
+ FormatsToProcess = './Az.Maintenance.format.ps1xml'
+ FunctionsToExport = 'Get-AzMaintenanceApplyUpdate', 'Get-AzMaintenanceApplyUpdateForResourceGroup', 'Get-AzMaintenanceApplyUpdateParent', 'Get-AzMaintenanceConfiguration', 'Get-AzMaintenanceConfigurationAssignment', 'Get-AzMaintenanceConfigurationAssignmentParent', 'Get-AzMaintenanceConfigurationAssignmentsWithinSubscription', 'Get-AzMaintenanceConfigurationsForResourceGroup', 'Get-AzMaintenancePublicMaintenanceConfiguration', 'Get-AzMaintenanceUpdate', 'Get-AzMaintenanceUpdateParent', 'New-AzMaintenanceConfiguration', 'New-AzMaintenanceConfigurationAssignment', 'New-AzMaintenanceConfigurationAssignmentParent', 'Remove-AzMaintenanceConfiguration', 'Remove-AzMaintenanceConfigurationAssignment', 'Remove-AzMaintenanceConfigurationAssignmentParent', 'Update-AzMaintenanceConfiguration', '*'
+ AliasesToExport = '*'
+ PrivateData = @{
+ PSData = @{
+ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Maintenance'
+ LicenseUri = 'https://aka.ms/azps-license'
+ ProjectUri = 'https://github.com/Azure/azure-powershell'
+ ReleaseNotes = ''
+ }
+ }
+}
diff --git a/swaggerci/maintenance/Az.Maintenance.psm1 b/swaggerci/maintenance/Az.Maintenance.psm1
new file mode 100644
index 000000000000..297a2017e7d4
--- /dev/null
+++ b/swaggerci/maintenance/Az.Maintenance.psm1
@@ -0,0 +1,107 @@
+# region Generated
+ # ----------------------------------------------------------------------------------
+ # Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ # ----------------------------------------------------------------------------------
+ # Load required Az.Accounts module
+ $accountsName = 'Az.Accounts'
+ $accountsModule = Get-Module -Name $accountsName
+ if(-not $accountsModule) {
+ $localAccountsPath = Join-Path $PSScriptRoot 'generated/modules'
+ if(Test-Path -Path $localAccountsPath) {
+ $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1
+ if($localAccounts) {
+ $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru
+ }
+ }
+ if(-not $accountsModule) {
+ $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0
+ if($hasAdequateVersion) {
+ $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru
+ }
+ }
+ }
+
+ if(-not $accountsModule) {
+ Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
+ } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) {
+ Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
+ }
+ Write-Information "Loaded Module '$($accountsModule.Name)'"
+
+ # Load the private module dll
+ $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.Maintenance.private.dll')
+
+ # Get the private module's instance
+ $instance = [Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Module]::Instance
+
+ # Ask for the shared functionality table
+ $VTable = Register-AzModule
+
+ # Tweaks the pipeline on module load
+ $instance.OnModuleLoad = $VTable.OnModuleLoad
+
+ # Following two delegates are added for telemetry
+ $instance.GetTelemetryId = $VTable.GetTelemetryId
+ $instance.Telemetry = $VTable.Telemetry
+
+
+ # Tweaks the pipeline per call
+ $instance.OnNewRequest = $VTable.OnNewRequest
+
+ # Gets shared parameter values
+ $instance.GetParameterValue = $VTable.GetParameterValue
+
+ # Allows shared module to listen to events from this module
+ $instance.EventListener = $VTable.EventListener
+
+ # Gets shared argument completers
+ $instance.ArgumentCompleter = $VTable.ArgumentCompleter
+
+ # The name of the currently selected Azure profile
+ $instance.ProfileName = $VTable.ProfileName
+
+
+ # Load the custom module
+ $customModulePath = Join-Path $PSScriptRoot './custom/Az.Maintenance.custom.psm1'
+ if(Test-Path $customModulePath) {
+ $null = Import-Module -Name $customModulePath
+ }
+
+ # Export nothing to clear implicit exports
+ Export-ModuleMember
+
+ # Export proxy cmdlet scripts
+ $exportsPath = Join-Path $PSScriptRoot './exports'
+ $directories = Get-ChildItem -Directory -Path $exportsPath
+ $profileDirectory = $null
+ if($instance.ProfileName) {
+ if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) {
+ $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName }
+ } else {
+ # Don't export anything if the profile doesn't exist for the module
+ $exportsPath = $null
+ Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded."
+ }
+ } elseif(($directories | Measure-Object).Count -gt 0) {
+ # Load the last folder if no profile is selected
+ $profileDirectory = $directories | Select-Object -Last 1
+ }
+
+ if($profileDirectory) {
+ Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'"
+ $exportsPath = $profileDirectory.FullName
+ }
+
+ if($exportsPath) {
+ Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
+ $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath
+ Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias)
+ }
+
+ # Finalize initialization of this module
+ $instance.Init();
+ Write-Information "Loaded Module '$($instance.Name)'"
+# endregion
diff --git a/swaggerci/maintenance/MSSharedLibKey.snk b/swaggerci/maintenance/MSSharedLibKey.snk
new file mode 100644
index 000000000000..695f1b38774e
Binary files /dev/null and b/swaggerci/maintenance/MSSharedLibKey.snk differ
diff --git a/swaggerci/maintenance/README.md b/swaggerci/maintenance/README.md
new file mode 100644
index 000000000000..8b07b279f787
--- /dev/null
+++ b/swaggerci/maintenance/README.md
@@ -0,0 +1,27 @@
+
+# Az.Maintenance
+This directory contains the PowerShell module for the Maintenance service.
+
+---
+## Status
+[](https://www.powershellgallery.com/packages/Az.Maintenance/)
+
+## Info
+- Modifiable: yes
+- Generated: all
+- Committed: yes
+- Packaged: yes
+
+---
+## Detail
+This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
+
+## Module Requirements
+- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater
+
+## Authentication
+AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
+
+## Development
+For information on how to develop for `Az.Maintenance`, see [how-to.md](how-to.md).
+
diff --git a/swaggerci/maintenance/build-module.ps1 b/swaggerci/maintenance/build-module.ps1
new file mode 100644
index 000000000000..a90243fe6202
--- /dev/null
+++ b/swaggerci/maintenance/build-module.ps1
@@ -0,0 +1,153 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs)
+$ErrorActionPreference = 'Stop'
+
+if($PSEdition -ne 'Core') {
+ Write-Error 'This script requires PowerShell Core to execute. [Note] Generated cmdlets will work in both PowerShell Core or Windows PowerShell.'
+}
+
+if(-not $Isolated -and -not $Debugger) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+ & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+
+ if($LastExitCode -ne 0) {
+ # Build failed. Don't attempt to run the module.
+ return
+ }
+
+ if($Test) {
+ . (Join-Path $PSScriptRoot 'test-module.ps1')
+ if($LastExitCode -ne 0) {
+ # Tests failed. Don't attempt to run the module.
+ return
+ }
+ }
+
+ if($Docs) {
+ . (Join-Path $PSScriptRoot 'generate-help.ps1')
+ if($LastExitCode -ne 0) {
+ # Docs generation failed. Don't attempt to run the module.
+ return
+ }
+ }
+
+ if($Pack) {
+ . (Join-Path $PSScriptRoot 'pack-module.ps1')
+ if($LastExitCode -ne 0) {
+ # Packing failed. Don't attempt to run the module.
+ return
+ }
+ }
+
+ $runModulePath = Join-Path $PSScriptRoot 'run-module.ps1'
+ if($Code) {
+ . $runModulePath -Code
+ } elseif($Run) {
+ . $runModulePath
+ } else {
+ Write-Host -ForegroundColor Cyan "To run this module in an isolated PowerShell session, run the 'run-module.ps1' script or provide the '-Run' parameter to this script."
+ }
+ return
+}
+
+$binFolder = Join-Path $PSScriptRoot 'bin'
+$objFolder = Join-Path $PSScriptRoot 'obj'
+
+if(-not $Debugger) {
+ Write-Host -ForegroundColor Green 'Cleaning build folders...'
+ $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder
+
+ if((Test-Path $binFolder) -or (Test-Path $objFolder)) {
+ Write-Host -ForegroundColor Cyan 'Did you forget to exit your isolated module session before rebuilding?'
+ Write-Error 'Unable to clean ''bin'' or ''obj'' folder. A process may have an open handle.'
+ }
+
+ Write-Host -ForegroundColor Green 'Compiling module...'
+ $buildConfig = 'Debug'
+ if($Release) {
+ $buildConfig = 'Release'
+ }
+ dotnet publish $PSScriptRoot --verbosity quiet --configuration $buildConfig /nologo
+ if($LastExitCode -ne 0) {
+ Write-Error 'Compilation failed.'
+ }
+
+ $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path (Join-Path $binFolder 'Debug'), (Join-Path $binFolder 'Release')
+}
+
+$dll = Join-Path $PSScriptRoot 'bin/Az.Maintenance.private.dll'
+if(-not (Test-Path $dll)) {
+ Write-Error "Unable to find output assembly in '$binFolder'."
+}
+
+# Load DLL to use build-time cmdlets
+$null = Import-Module -Name $dll
+
+$modulePaths = $dll
+$customPsm1 = Join-Path $PSScriptRoot 'custom/Az.Maintenance.custom.psm1'
+if(Test-Path $customPsm1) {
+ $modulePaths = @($dll, $customPsm1)
+}
+
+$exportsFolder = Join-Path $PSScriptRoot 'exports'
+if(Test-Path $exportsFolder) {
+ $null = Get-ChildItem -Path $exportsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
+}
+$null = New-Item -ItemType Directory -Force -Path $exportsFolder
+
+$internalFolder = Join-Path $PSScriptRoot 'internal'
+if(Test-Path $internalFolder) {
+ $null = Get-ChildItem -Path $internalFolder -Recurse -Exclude '*.psm1', 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
+}
+$null = New-Item -ItemType Directory -Force -Path $internalFolder
+
+$psd1 = Join-Path $PSScriptRoot './Az.Maintenance.psd1'
+$guid = Get-ModuleGuid -Psd1Path $psd1
+$moduleName = 'Az.Maintenance'
+$examplesFolder = Join-Path $PSScriptRoot 'examples'
+$null = New-Item -ItemType Directory -Force -Path $examplesFolder
+
+Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
+$modelCmdlets = @()
+if ($modelCmdlets.Count -gt 0) {
+ . (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
+ CreateModelCmdlet($modelCmdlets)
+}
+
+if($NoDocs) {
+ Write-Host -ForegroundColor Green 'Creating exports...'
+ Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs -ExamplesFolder $examplesFolder
+} else {
+ Write-Host -ForegroundColor Green 'Creating exports and docs...'
+ $moduleDescription = 'Microsoft Azure PowerShell: Maintenance cmdlets'
+ $docsFolder = Join-Path $PSScriptRoot 'docs'
+ if(Test-Path $docsFolder) {
+ $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
+ }
+ $null = New-Item -ItemType Directory -Force -Path $docsFolder
+ Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid
+}
+
+Write-Host -ForegroundColor Green 'Creating format.ps1xml...'
+$formatPs1xml = Join-Path $PSScriptRoot './Az.Maintenance.format.ps1xml'
+Export-FormatPs1xml -FilePath $formatPs1xml
+
+Write-Host -ForegroundColor Green 'Creating psd1...'
+$customFolder = Join-Path $PSScriptRoot 'custom'
+Export-Psd1 -ExportsFolder $exportsFolder -CustomFolder $customFolder -Psd1Path $psd1 -ModuleGuid $guid
+
+Write-Host -ForegroundColor Green 'Creating test stubs...'
+$testFolder = Join-Path $PSScriptRoot 'test'
+$null = New-Item -ItemType Directory -Force -Path $testFolder
+Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFolder $testFolder
+
+Write-Host -ForegroundColor Green 'Creating example stubs...'
+Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
+
+Write-Host -ForegroundColor Green '-------------Done-------------'
diff --git a/swaggerci/maintenance/check-dependencies.ps1 b/swaggerci/maintenance/check-dependencies.ps1
new file mode 100644
index 000000000000..ec3055201a71
--- /dev/null
+++ b/swaggerci/maintenance/check-dependencies.ps1
@@ -0,0 +1,57 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
+$ErrorActionPreference = 'Stop'
+
+if(-not $Isolated) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+ & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+ return
+}
+
+function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) {
+ if($predicate) {
+ $module = Get-Module -ListAvailable -Name $moduleName
+ if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) {
+ $null = New-Item -ItemType Directory -Force -Path $path
+ Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..."
+ if ($requiredVersion) {
+ Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path
+ }elseif($versionMinimum) {
+ Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path
+ } else {
+ Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path
+ }
+ }
+ }
+}
+
+$ProgressPreference = 'SilentlyContinue'
+$all = (@($Accounts.IsPresent, $Pester.IsPresent) | Select-Object -Unique | Measure-Object).Count -eq 1
+
+$localModulesPath = Join-Path $PSScriptRoot 'generated/modules'
+if(Test-Path -Path $localModulesPath) {
+ $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath"
+}
+
+DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5'
+DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1'
+
+$tools = Join-Path $PSScriptRoot 'tools'
+$resourceDir = Join-Path $tools 'Resources'
+$resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1'
+
+if ($Resources.IsPresent -and ((-not (Test-Path -Path $resourceModule)) -or $RegenerateSupportModule.IsPresent)) {
+ Write-Host -ForegroundColor Green "Building local Resource module used for test..."
+ Set-Location $resourceDir
+ $null = autorest .\README.md --use:@autorest/powershell@3.0.414 --output-folder=$HOME/.PSSharedModules/Resources
+ $null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/
+ Set-Location $HOME/.PSSharedModules/Resources
+ $null = .\build-module.ps1
+ Set-Location $PSScriptRoot
+}
diff --git a/swaggerci/maintenance/create-model-cmdlets.ps1 b/swaggerci/maintenance/create-model-cmdlets.ps1
new file mode 100644
index 000000000000..3c3add82fc46
--- /dev/null
+++ b/swaggerci/maintenance/create-model-cmdlets.ps1
@@ -0,0 +1,163 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# ----------------------------------------------------------------------------------
+
+function CreateModelCmdlet {
+
+ param([string[]]$Models)
+
+ if ($Models.Count -eq 0)
+ {
+ return
+ }
+
+ $ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated/api') 'Models'
+ $ModuleName = 'Maintenance'
+ $OutputDir = Join-Path $PSScriptRoot 'custom/autogen-model-cmdlets'
+ $null = New-Item -ItemType Directory -Force -Path $OutputDir
+
+ $CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs
+ $Content = ''
+ $null = $CsFiles | ForEach-Object -Process { if ($_.Name.Split('.').count -eq 2 )
+ { $Content += get-content $_.fullname -raw
+ } }
+
+ $Tree = [Microsoft.CodeAnalysis.CSharp.SyntaxFactory]::ParseCompilationUnit($Content)
+ $Nodes = $Tree.ChildNodes().ChildNodes()
+ foreach ($Model in $Models)
+ {
+ $InterfaceNode = $Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq "I$Model") }
+ if ($InterfaceNode.count -eq 0) {
+ continue
+ }
+ # through a queue, we iterate all the parent models.
+ $Queue = @($InterfaceNode)
+ $visited = @("I$Model")
+ $AllInterfaceNodes = @()
+ while ($Queue.count -ne 0)
+ {
+ $AllInterfaceNodes += $Queue[0]
+ # Baselist contains the direct parent models.
+ foreach ($parent in $Queue[0].BaseList.Types)
+ {
+ if (($parent.Type.Right.Identifier.Value -ne 'IJsonSerializable') -and (-not $visited.Contains($parent.Type.Right.Identifier.Value)))
+ {
+ $Queue = [Array]$Queue + ($Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq $parent.Type.Right.Identifier.Value) })
+ $visited = [Array]$visited + $parent.Type.Right.Identifier.Value
+ }
+ }
+ $first, $Queue = $Queue
+ }
+
+ $Namespace = $InterfaceNode.Parent.Name
+ $ObjectType = $Model
+ $ObjectTypeWithNamespace = "${Namespace}.${ObjectType}"
+ # remove duplicated module name
+ if ($ObjectType.StartsWith($ModuleName)) {
+ $ModulePrefix = ''
+ } else {
+ $ModulePrefix = $ModuleName
+ }
+ $OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir
+
+ $ParameterDefineScriptList = New-Object System.Collections.Generic.List[string]
+ $ParameterAssignScriptList = New-Object System.Collections.Generic.List[string]
+ foreach ($Node in $AllInterfaceNodes)
+ {
+ foreach ($Member in $Node.Members)
+ {
+ $Arguments = $Member.AttributeLists.Attributes.ArgumentList.Arguments
+ $Required = $false
+ $Description = ""
+ $Readonly = $False
+ foreach ($Argument in $Arguments)
+ {
+ if ($Argument.NameEquals.Name.Identifier.Value -eq "Required")
+ {
+ $Required = $Argument.Expression.Token.Value
+ }
+ if ($Argument.NameEquals.Name.Identifier.Value -eq "Description")
+ {
+ $Description = $Argument.Expression.Token.Value.Trim('.').replace('"', '`"')
+ }
+ if ($Argument.NameEquals.Name.Identifier.Value -eq "Readonly")
+ {
+ $Readonly = $Argument.Expression.Token.Value
+ }
+ }
+ if ($Readonly)
+ {
+ continue
+ }
+ $Identifier = $Member.Identifier.Value
+ $Type = $Member.Type.ToString().replace('?', '').Split("::")[-1]
+ $ParameterDefinePropertyList = New-Object System.Collections.Generic.List[string]
+ if ($Required)
+ {
+ $ParameterDefinePropertyList.Add("Mandatory")
+ }
+ if ($Description -ne "")
+ {
+ $ParameterDefinePropertyList.Add("HelpMessage=`"${Description}.`"")
+ }
+ $ParameterDefineProperty = [System.String]::Join(", ", $ParameterDefinePropertyList)
+ # check whether completer is needed
+ $completer = '';
+ if($Type.Split('.').Split('.')[-2] -eq 'Support') {
+ # If Type is an array, need to strip []
+ $strippedType = $Type.Replace('[]', '')
+ $completer += "`n [ArgumentCompleter([${strippedType}])]"
+ }
+ $ParameterDefineScript = "
+ [Parameter($ParameterDefineProperty)]${completer}
+ [${Type}]
+ `$${Identifier}"
+ $ParameterDefineScriptList.Add($ParameterDefineScript)
+ $ParameterAssignScriptList.Add("
+ if (`$PSBoundParameters.ContainsKey('${Identifier}')) {
+ `$Object.${Identifier} = `$${Identifier}
+ }")
+ }
+ }
+ $ParameterDefineScript = $ParameterDefineScriptList | Join-String -Separator ","
+ $ParameterAssignScript = $ParameterAssignScriptList | Join-String -Separator ""
+
+ $Script = "
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ${ObjectType}.
+.Description
+Create an in-memory object for ${ObjectType}.
+
+.Outputs
+${ObjectTypeWithNamespace}
+.Link
+https://docs.microsoft.com/en-us/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
+#>
+function New-Az${ModulePrefix}${ObjectType}Object {
+ [OutputType('${ObjectTypeWithNamespace}')]
+ [CmdletBinding(PositionalBinding=`$false)]
+ Param(
+${ParameterDefineScript}
+ )
+
+ process {
+ `$Object = [${ObjectTypeWithNamespace}]::New()
+${ParameterAssignScript}
+ return `$Object
+ }
+}
+"
+ Set-Content -Path $OutputPath -Value $Script
+ }
+}
diff --git a/swaggerci/maintenance/custom/Az.Maintenance.custom.psm1 b/swaggerci/maintenance/custom/Az.Maintenance.custom.psm1
new file mode 100644
index 000000000000..38a3e8035e9d
--- /dev/null
+++ b/swaggerci/maintenance/custom/Az.Maintenance.custom.psm1
@@ -0,0 +1,17 @@
+# region Generated
+ # Load the private module dll
+ $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.Maintenance.private.dll')
+
+ # Load the internal module
+ $internalModulePath = Join-Path $PSScriptRoot '../internal/Az.Maintenance.internal.psm1'
+ if(Test-Path $internalModulePath) {
+ $null = Import-Module -Name $internalModulePath
+ }
+
+ # Export nothing to clear implicit exports
+ Export-ModuleMember
+
+ # Export script cmdlets
+ Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
+ Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias)
+# endregion
diff --git a/swaggerci/maintenance/custom/README.md b/swaggerci/maintenance/custom/README.md
new file mode 100644
index 000000000000..374a29cb780c
--- /dev/null
+++ b/swaggerci/maintenance/custom/README.md
@@ -0,0 +1,41 @@
+# Custom
+This directory contains custom implementation for non-generated cmdlets for the `Az.Maintenance` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.Maintenance.custom.psm1`. This file should not be modified.
+
+## Info
+- Modifiable: yes
+- Generated: partial
+- Committed: yes
+- Packaged: yes
+
+## Details
+For `Az.Maintenance` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*.
+
+For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.Maintenance.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder.
+
+For script cmdlets, these are loaded via the `Az.Maintenance.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build.
+
+## Purpose
+This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder.
+
+## Usage
+The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters:
+- Break
+- DefaultProfile
+- HttpPipelineAppend
+- HttpPipelinePrepend
+- Proxy
+- ProxyCredential
+- ProxyUseDefaultCredentials
+
+These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.Maintenance`. For C#, follow the usage seen in the `ProcessRecordAsync` method.
+
+### Attributes
+For processing the cmdlets, we've created some additional attributes:
+- `Microsoft.Azure.PowerShell.Cmdlets.Maintenance.DescriptionAttribute`
+ - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
+- `Microsoft.Azure.PowerShell.Cmdlets.Maintenance.DoNotExportAttribute`
+ - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.Maintenance`.
+- `Microsoft.Azure.PowerShell.Cmdlets.Maintenance.InternalExportAttribute`
+ - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.Maintenance`. For more information, see [README.md](../internal/README.md) in the `../internal` folder.
+- `Microsoft.Azure.PowerShell.Cmdlets.Maintenance.ProfileAttribute`
+ - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.
\ No newline at end of file
diff --git a/swaggerci/maintenance/docs/Az.Maintenance.md b/swaggerci/maintenance/docs/Az.Maintenance.md
new file mode 100644
index 000000000000..f9a7765b7f24
--- /dev/null
+++ b/swaggerci/maintenance/docs/Az.Maintenance.md
@@ -0,0 +1,67 @@
+---
+Module Name: Az.Maintenance
+Module Guid: 3f0dc60c-d6fd-4bd2-96ae-534568c26317
+Download Help Link: https://docs.microsoft.com/en-us/powershell/module/az.maintenance
+Help Version: 1.0.0.0
+Locale: en-US
+---
+
+# Az.Maintenance Module
+## Description
+Microsoft Azure PowerShell: Maintenance cmdlets
+
+## Az.Maintenance Cmdlets
+### [Get-AzMaintenanceApplyUpdate](Get-AzMaintenanceApplyUpdate.md)
+Track maintenance updates to resource
+
+### [Get-AzMaintenanceApplyUpdateForResourceGroup](Get-AzMaintenanceApplyUpdateForResourceGroup.md)
+Get Configuration records within a subscription and resource group
+
+### [Get-AzMaintenanceApplyUpdateParent](Get-AzMaintenanceApplyUpdateParent.md)
+Track apply maintenance updates to resource with parent
+
+### [Get-AzMaintenanceConfiguration](Get-AzMaintenanceConfiguration.md)
+Get Configuration record
+
+### [Get-AzMaintenanceConfigurationAssignment](Get-AzMaintenanceConfigurationAssignment.md)
+Get configuration for resource.
+
+### [Get-AzMaintenanceConfigurationAssignmentParent](Get-AzMaintenanceConfigurationAssignmentParent.md)
+Get configuration for resource.
+
+### [Get-AzMaintenanceConfigurationAssignmentsWithinSubscription](Get-AzMaintenanceConfigurationAssignmentsWithinSubscription.md)
+Get configuration assignment within a subscription
+
+### [Get-AzMaintenanceConfigurationsForResourceGroup](Get-AzMaintenanceConfigurationsForResourceGroup.md)
+Get Configuration records within a subscription and resource group
+
+### [Get-AzMaintenancePublicMaintenanceConfiguration](Get-AzMaintenancePublicMaintenanceConfiguration.md)
+Get Public Maintenance Configuration record
+
+### [Get-AzMaintenanceUpdate](Get-AzMaintenanceUpdate.md)
+Get updates to resources.
+
+### [Get-AzMaintenanceUpdateParent](Get-AzMaintenanceUpdateParent.md)
+Get updates to resources.
+
+### [New-AzMaintenanceConfiguration](New-AzMaintenanceConfiguration.md)
+Create or Update configuration record
+
+### [New-AzMaintenanceConfigurationAssignment](New-AzMaintenanceConfigurationAssignment.md)
+Register configuration for resource.
+
+### [New-AzMaintenanceConfigurationAssignmentParent](New-AzMaintenanceConfigurationAssignmentParent.md)
+Register configuration for resource.
+
+### [Remove-AzMaintenanceConfiguration](Remove-AzMaintenanceConfiguration.md)
+Delete Configuration record
+
+### [Remove-AzMaintenanceConfigurationAssignment](Remove-AzMaintenanceConfigurationAssignment.md)
+Unregister configuration for resource.
+
+### [Remove-AzMaintenanceConfigurationAssignmentParent](Remove-AzMaintenanceConfigurationAssignmentParent.md)
+Unregister configuration for resource.
+
+### [Update-AzMaintenanceConfiguration](Update-AzMaintenanceConfiguration.md)
+Patch configuration record
+
diff --git a/swaggerci/maintenance/docs/Get-AzMaintenanceApplyUpdate.md b/swaggerci/maintenance/docs/Get-AzMaintenanceApplyUpdate.md
new file mode 100644
index 000000000000..2e5f265f3759
--- /dev/null
+++ b/swaggerci/maintenance/docs/Get-AzMaintenanceApplyUpdate.md
@@ -0,0 +1,217 @@
+---
+external help file:
+Module Name: Az.Maintenance
+online version: https://docs.microsoft.com/en-us/powershell/module/az.maintenance/get-azmaintenanceapplyupdate
+schema: 2.0.0
+---
+
+# Get-AzMaintenanceApplyUpdate
+
+## SYNOPSIS
+Track maintenance updates to resource
+
+## SYNTAX
+
+### List (Default)
+```
+Get-AzMaintenanceApplyUpdate [-SubscriptionId ] [-DefaultProfile ] []
+```
+
+### Get
+```
+Get-AzMaintenanceApplyUpdate -Name -ProviderName -ResourceGroupName
+ -ResourceName -ResourceType [-SubscriptionId ] [-DefaultProfile ]
+ []
+```
+
+### GetViaIdentity
+```
+Get-AzMaintenanceApplyUpdate -InputObject [-DefaultProfile ]
+ []
+```
+
+## DESCRIPTION
+Track maintenance updates to resource
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```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
+To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.IMaintenanceIdentity
+Parameter Sets: GetViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -Name
+applyUpdate Id
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases: ApplyUpdateName
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ProviderName
+Resource provider name
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+Resource group name
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceName
+Resource identifier
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceType
+Resource type
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+Subscription credentials that uniquely identify a Microsoft Azure subscription.
+The subscription ID forms part of the URI for every service call.
+
+```yaml
+Type: System.String[]
+Parameter Sets: Get, List
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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.Maintenance.Models.IMaintenanceIdentity
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.IApplyUpdate
+
+## NOTES
+
+ALIASES
+
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+
+`INPUTOBJECT `: Identity Parameter
+ - `[ApplyUpdateName ]`: applyUpdate Id
+ - `[ConfigurationAssignmentName ]`: Configuration assignment name
+ - `[Id ]`: Resource identity path
+ - `[ProviderName ]`: Resource provider name
+ - `[ResourceGroupName ]`: Resource group name
+ - `[ResourceName ]`: Maintenance Configuration Name
+ - `[ResourceParentName ]`: Resource parent identifier
+ - `[ResourceParentType ]`: Resource parent type
+ - `[ResourceType ]`: Resource type
+ - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+
+## RELATED LINKS
+
diff --git a/swaggerci/maintenance/docs/Get-AzMaintenanceApplyUpdateForResourceGroup.md b/swaggerci/maintenance/docs/Get-AzMaintenanceApplyUpdateForResourceGroup.md
new file mode 100644
index 000000000000..59599e6c5129
--- /dev/null
+++ b/swaggerci/maintenance/docs/Get-AzMaintenanceApplyUpdateForResourceGroup.md
@@ -0,0 +1,109 @@
+---
+external help file:
+Module Name: Az.Maintenance
+online version: https://docs.microsoft.com/en-us/powershell/module/az.maintenance/get-azmaintenanceapplyupdateforresourcegroup
+schema: 2.0.0
+---
+
+# Get-AzMaintenanceApplyUpdateForResourceGroup
+
+## SYNOPSIS
+Get Configuration records within a subscription and resource group
+
+## SYNTAX
+
+```
+Get-AzMaintenanceApplyUpdateForResourceGroup -ResourceGroupName [-SubscriptionId ]
+ [-DefaultProfile ] []
+```
+
+## DESCRIPTION
+Get Configuration records within a subscription and resource group
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```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
+```
+
+### -ResourceGroupName
+Resource Group Name
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+Subscription credentials that uniquely identify a Microsoft Azure subscription.
+The subscription ID forms part of the URI for every service call.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.IApplyUpdate
+
+## NOTES
+
+ALIASES
+
+## RELATED LINKS
+
diff --git a/swaggerci/maintenance/docs/Get-AzMaintenanceApplyUpdateParent.md b/swaggerci/maintenance/docs/Get-AzMaintenanceApplyUpdateParent.md
new file mode 100644
index 000000000000..58f8365e8aab
--- /dev/null
+++ b/swaggerci/maintenance/docs/Get-AzMaintenanceApplyUpdateParent.md
@@ -0,0 +1,242 @@
+---
+external help file:
+Module Name: Az.Maintenance
+online version: https://docs.microsoft.com/en-us/powershell/module/az.maintenance/get-azmaintenanceapplyupdateparent
+schema: 2.0.0
+---
+
+# Get-AzMaintenanceApplyUpdateParent
+
+## SYNOPSIS
+Track apply maintenance updates to resource with parent
+
+## SYNTAX
+
+### Get (Default)
+```
+Get-AzMaintenanceApplyUpdateParent -ApplyUpdateName -ProviderName
+ -ResourceGroupName -ResourceName -ResourceParentName -ResourceParentType
+ -ResourceType [-SubscriptionId ] [-DefaultProfile ] []
+```
+
+### GetViaIdentity
+```
+Get-AzMaintenanceApplyUpdateParent -InputObject [-DefaultProfile ]
+ []
+```
+
+## DESCRIPTION
+Track apply maintenance updates to resource with parent
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -ApplyUpdateName
+applyUpdate Id
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```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
+To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.IMaintenanceIdentity
+Parameter Sets: GetViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -ProviderName
+Resource provider name
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+Resource group name
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceName
+Resource identifier
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceParentName
+Resource parent identifier
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceParentType
+Resource parent type
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceType
+Resource type
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+Subscription credentials that uniquely identify a Microsoft Azure subscription.
+The subscription ID forms part of the URI for every service call.
+
+```yaml
+Type: System.String[]
+Parameter Sets: Get
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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.Maintenance.Models.IMaintenanceIdentity
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.IApplyUpdate
+
+## NOTES
+
+ALIASES
+
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+
+`INPUTOBJECT `: Identity Parameter
+ - `[ApplyUpdateName ]`: applyUpdate Id
+ - `[ConfigurationAssignmentName ]`: Configuration assignment name
+ - `[Id ]`: Resource identity path
+ - `[ProviderName ]`: Resource provider name
+ - `[ResourceGroupName ]`: Resource group name
+ - `[ResourceName ]`: Maintenance Configuration Name
+ - `[ResourceParentName ]`: Resource parent identifier
+ - `[ResourceParentType ]`: Resource parent type
+ - `[ResourceType ]`: Resource type
+ - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+
+## RELATED LINKS
+
diff --git a/swaggerci/maintenance/docs/Get-AzMaintenanceConfiguration.md b/swaggerci/maintenance/docs/Get-AzMaintenanceConfiguration.md
new file mode 100644
index 000000000000..0d9c3506d945
--- /dev/null
+++ b/swaggerci/maintenance/docs/Get-AzMaintenanceConfiguration.md
@@ -0,0 +1,171 @@
+---
+external help file:
+Module Name: Az.Maintenance
+online version: https://docs.microsoft.com/en-us/powershell/module/az.maintenance/get-azmaintenanceconfiguration
+schema: 2.0.0
+---
+
+# Get-AzMaintenanceConfiguration
+
+## SYNOPSIS
+Get Configuration record
+
+## SYNTAX
+
+### List (Default)
+```
+Get-AzMaintenanceConfiguration [-SubscriptionId ] [-DefaultProfile ] []
+```
+
+### Get
+```
+Get-AzMaintenanceConfiguration -ResourceGroupName -ResourceName [-SubscriptionId ]
+ [-DefaultProfile ] []
+```
+
+### GetViaIdentity
+```
+Get-AzMaintenanceConfiguration -InputObject [-DefaultProfile ]
+ []
+```
+
+## DESCRIPTION
+Get Configuration record
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```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
+To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.IMaintenanceIdentity
+Parameter Sets: GetViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+Resource Group Name
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceName
+Maintenance Configuration Name
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+Subscription credentials that uniquely identify a Microsoft Azure subscription.
+The subscription ID forms part of the URI for every service call.
+
+```yaml
+Type: System.String[]
+Parameter Sets: Get, List
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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.Maintenance.Models.IMaintenanceIdentity
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.IMaintenanceConfiguration
+
+## NOTES
+
+ALIASES
+
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+
+`INPUTOBJECT `: Identity Parameter
+ - `[ApplyUpdateName ]`: applyUpdate Id
+ - `[ConfigurationAssignmentName ]`: Configuration assignment name
+ - `[Id ]`: Resource identity path
+ - `[ProviderName ]`: Resource provider name
+ - `[ResourceGroupName ]`: Resource group name
+ - `[ResourceName ]`: Maintenance Configuration Name
+ - `[ResourceParentName ]`: Resource parent identifier
+ - `[ResourceParentType ]`: Resource parent type
+ - `[ResourceType ]`: Resource type
+ - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+
+## RELATED LINKS
+
diff --git a/swaggerci/maintenance/docs/Get-AzMaintenanceConfigurationAssignment.md b/swaggerci/maintenance/docs/Get-AzMaintenanceConfigurationAssignment.md
new file mode 100644
index 000000000000..e9a331367f07
--- /dev/null
+++ b/swaggerci/maintenance/docs/Get-AzMaintenanceConfigurationAssignment.md
@@ -0,0 +1,219 @@
+---
+external help file:
+Module Name: Az.Maintenance
+online version: https://docs.microsoft.com/en-us/powershell/module/az.maintenance/get-azmaintenanceconfigurationassignment
+schema: 2.0.0
+---
+
+# Get-AzMaintenanceConfigurationAssignment
+
+## SYNOPSIS
+Get configuration for resource.
+
+## SYNTAX
+
+### List (Default)
+```
+Get-AzMaintenanceConfigurationAssignment -ProviderName -ResourceGroupName
+ -ResourceName -ResourceType [-SubscriptionId ] [-DefaultProfile ]
+ []
+```
+
+### Get
+```
+Get-AzMaintenanceConfigurationAssignment -Name -ProviderName -ResourceGroupName
+ -ResourceName -ResourceType [-SubscriptionId ] [-DefaultProfile ]
+ []
+```
+
+### GetViaIdentity
+```
+Get-AzMaintenanceConfigurationAssignment -InputObject [-DefaultProfile ]
+ []
+```
+
+## DESCRIPTION
+Get configuration for resource.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```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
+To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.IMaintenanceIdentity
+Parameter Sets: GetViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -Name
+Configuration assignment name
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases: ConfigurationAssignmentName
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ProviderName
+Resource provider name
+
+```yaml
+Type: System.String
+Parameter Sets: Get, List
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+Resource group name
+
+```yaml
+Type: System.String
+Parameter Sets: Get, List
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceName
+Resource identifier
+
+```yaml
+Type: System.String
+Parameter Sets: Get, List
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceType
+Resource type
+
+```yaml
+Type: System.String
+Parameter Sets: Get, List
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+Subscription credentials that uniquely identify a Microsoft Azure subscription.
+The subscription ID forms part of the URI for every service call.
+
+```yaml
+Type: System.String[]
+Parameter Sets: Get, List
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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.Maintenance.Models.IMaintenanceIdentity
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.IConfigurationAssignment
+
+## NOTES
+
+ALIASES
+
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+
+`INPUTOBJECT `: Identity Parameter
+ - `[ApplyUpdateName ]`: applyUpdate Id
+ - `[ConfigurationAssignmentName ]`: Configuration assignment name
+ - `[Id ]`: Resource identity path
+ - `[ProviderName ]`: Resource provider name
+ - `[ResourceGroupName ]`: Resource group name
+ - `[ResourceName ]`: Maintenance Configuration Name
+ - `[ResourceParentName ]`: Resource parent identifier
+ - `[ResourceParentType ]`: Resource parent type
+ - `[ResourceType ]`: Resource type
+ - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+
+## RELATED LINKS
+
diff --git a/swaggerci/maintenance/docs/Get-AzMaintenanceConfigurationAssignmentParent.md b/swaggerci/maintenance/docs/Get-AzMaintenanceConfigurationAssignmentParent.md
new file mode 100644
index 000000000000..93c132ec8a50
--- /dev/null
+++ b/swaggerci/maintenance/docs/Get-AzMaintenanceConfigurationAssignmentParent.md
@@ -0,0 +1,249 @@
+---
+external help file:
+Module Name: Az.Maintenance
+online version: https://docs.microsoft.com/en-us/powershell/module/az.maintenance/get-azmaintenanceconfigurationassignmentparent
+schema: 2.0.0
+---
+
+# Get-AzMaintenanceConfigurationAssignmentParent
+
+## SYNOPSIS
+Get configuration for resource.
+
+## SYNTAX
+
+### List (Default)
+```
+Get-AzMaintenanceConfigurationAssignmentParent -ProviderName -ResourceGroupName
+ -ResourceName -ResourceParentName -ResourceParentType -ResourceType
+ [-SubscriptionId ] [-DefaultProfile ] []
+```
+
+### Get
+```
+Get-AzMaintenanceConfigurationAssignmentParent -ConfigurationAssignmentName -ProviderName
+ -ResourceGroupName -ResourceName -ResourceParentName -ResourceParentType
+ -ResourceType [-SubscriptionId ] [-DefaultProfile ] []
+```
+
+### GetViaIdentity
+```
+Get-AzMaintenanceConfigurationAssignmentParent -InputObject
+ [-DefaultProfile ] []
+```
+
+## DESCRIPTION
+Get configuration for resource.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -ConfigurationAssignmentName
+Configuration assignment name
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```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
+To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.IMaintenanceIdentity
+Parameter Sets: GetViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -ProviderName
+Resource provider name
+
+```yaml
+Type: System.String
+Parameter Sets: Get, List
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+Resource group name
+
+```yaml
+Type: System.String
+Parameter Sets: Get, List
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceName
+Resource identifier
+
+```yaml
+Type: System.String
+Parameter Sets: Get, List
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceParentName
+Resource parent identifier
+
+```yaml
+Type: System.String
+Parameter Sets: Get, List
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceParentType
+Resource parent type
+
+```yaml
+Type: System.String
+Parameter Sets: Get, List
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceType
+Resource type
+
+```yaml
+Type: System.String
+Parameter Sets: Get, List
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+Subscription credentials that uniquely identify a Microsoft Azure subscription.
+The subscription ID forms part of the URI for every service call.
+
+```yaml
+Type: System.String[]
+Parameter Sets: Get, List
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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.Maintenance.Models.IMaintenanceIdentity
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.IConfigurationAssignment
+
+## NOTES
+
+ALIASES
+
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+
+`INPUTOBJECT `: Identity Parameter
+ - `[ApplyUpdateName ]`: applyUpdate Id
+ - `[ConfigurationAssignmentName ]`: Configuration assignment name
+ - `[Id ]`: Resource identity path
+ - `[ProviderName ]`: Resource provider name
+ - `[ResourceGroupName ]`: Resource group name
+ - `[ResourceName ]`: Maintenance Configuration Name
+ - `[ResourceParentName ]`: Resource parent identifier
+ - `[ResourceParentType ]`: Resource parent type
+ - `[ResourceType ]`: Resource type
+ - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+
+## RELATED LINKS
+
diff --git a/swaggerci/maintenance/docs/Get-AzMaintenanceConfigurationAssignmentsWithinSubscription.md b/swaggerci/maintenance/docs/Get-AzMaintenanceConfigurationAssignmentsWithinSubscription.md
new file mode 100644
index 000000000000..c9ae2e608206
--- /dev/null
+++ b/swaggerci/maintenance/docs/Get-AzMaintenanceConfigurationAssignmentsWithinSubscription.md
@@ -0,0 +1,94 @@
+---
+external help file:
+Module Name: Az.Maintenance
+online version: https://docs.microsoft.com/en-us/powershell/module/az.maintenance/get-azmaintenanceconfigurationassignmentswithinsubscription
+schema: 2.0.0
+---
+
+# Get-AzMaintenanceConfigurationAssignmentsWithinSubscription
+
+## SYNOPSIS
+Get configuration assignment within a subscription
+
+## SYNTAX
+
+```
+Get-AzMaintenanceConfigurationAssignmentsWithinSubscription [-SubscriptionId ]
+ [-DefaultProfile ] []
+```
+
+## DESCRIPTION
+Get configuration assignment within a subscription
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```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
+```
+
+### -SubscriptionId
+Subscription credentials that uniquely identify a Microsoft Azure subscription.
+The subscription ID forms part of the URI for every service call.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.IConfigurationAssignment
+
+## NOTES
+
+ALIASES
+
+## RELATED LINKS
+
diff --git a/swaggerci/maintenance/docs/Get-AzMaintenanceConfigurationsForResourceGroup.md b/swaggerci/maintenance/docs/Get-AzMaintenanceConfigurationsForResourceGroup.md
new file mode 100644
index 000000000000..bd249fcdc926
--- /dev/null
+++ b/swaggerci/maintenance/docs/Get-AzMaintenanceConfigurationsForResourceGroup.md
@@ -0,0 +1,109 @@
+---
+external help file:
+Module Name: Az.Maintenance
+online version: https://docs.microsoft.com/en-us/powershell/module/az.maintenance/get-azmaintenanceconfigurationsforresourcegroup
+schema: 2.0.0
+---
+
+# Get-AzMaintenanceConfigurationsForResourceGroup
+
+## SYNOPSIS
+Get Configuration records within a subscription and resource group
+
+## SYNTAX
+
+```
+Get-AzMaintenanceConfigurationsForResourceGroup -ResourceGroupName [-SubscriptionId ]
+ [-DefaultProfile ] []
+```
+
+## DESCRIPTION
+Get Configuration records within a subscription and resource group
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```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
+```
+
+### -ResourceGroupName
+Resource Group Name
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+Subscription credentials that uniquely identify a Microsoft Azure subscription.
+The subscription ID forms part of the URI for every service call.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.IMaintenanceConfiguration
+
+## NOTES
+
+ALIASES
+
+## RELATED LINKS
+
diff --git a/swaggerci/maintenance/docs/Get-AzMaintenancePublicMaintenanceConfiguration.md b/swaggerci/maintenance/docs/Get-AzMaintenancePublicMaintenanceConfiguration.md
new file mode 100644
index 000000000000..6980411f6ca5
--- /dev/null
+++ b/swaggerci/maintenance/docs/Get-AzMaintenancePublicMaintenanceConfiguration.md
@@ -0,0 +1,157 @@
+---
+external help file:
+Module Name: Az.Maintenance
+online version: https://docs.microsoft.com/en-us/powershell/module/az.maintenance/get-azmaintenancepublicmaintenanceconfiguration
+schema: 2.0.0
+---
+
+# Get-AzMaintenancePublicMaintenanceConfiguration
+
+## SYNOPSIS
+Get Public Maintenance Configuration record
+
+## SYNTAX
+
+### List (Default)
+```
+Get-AzMaintenancePublicMaintenanceConfiguration [-SubscriptionId ] [-DefaultProfile ]
+ []
+```
+
+### Get
+```
+Get-AzMaintenancePublicMaintenanceConfiguration -ResourceName [-SubscriptionId ]
+ [-DefaultProfile ] []
+```
+
+### GetViaIdentity
+```
+Get-AzMaintenancePublicMaintenanceConfiguration -InputObject
+ [-DefaultProfile ] []
+```
+
+## DESCRIPTION
+Get Public Maintenance Configuration record
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```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
+To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.IMaintenanceIdentity
+Parameter Sets: GetViaIdentity
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -ResourceName
+Maintenance Configuration Name
+
+```yaml
+Type: System.String
+Parameter Sets: Get
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+Subscription credentials that uniquely identify a Microsoft Azure subscription.
+The subscription ID forms part of the URI for every service call.
+
+```yaml
+Type: System.String[]
+Parameter Sets: Get, List
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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.Maintenance.Models.IMaintenanceIdentity
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.IMaintenanceConfiguration
+
+## NOTES
+
+ALIASES
+
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+
+`INPUTOBJECT `: Identity Parameter
+ - `[ApplyUpdateName ]`: applyUpdate Id
+ - `[ConfigurationAssignmentName ]`: Configuration assignment name
+ - `[Id ]`: Resource identity path
+ - `[ProviderName ]`: Resource provider name
+ - `[ResourceGroupName ]`: Resource group name
+ - `[ResourceName ]`: Maintenance Configuration Name
+ - `[ResourceParentName ]`: Resource parent identifier
+ - `[ResourceParentType ]`: Resource parent type
+ - `[ResourceType ]`: Resource type
+ - `[SubscriptionId ]`: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
+
+## RELATED LINKS
+
diff --git a/swaggerci/maintenance/docs/Get-AzMaintenanceUpdate.md b/swaggerci/maintenance/docs/Get-AzMaintenanceUpdate.md
new file mode 100644
index 000000000000..cddf05524217
--- /dev/null
+++ b/swaggerci/maintenance/docs/Get-AzMaintenanceUpdate.md
@@ -0,0 +1,154 @@
+---
+external help file:
+Module Name: Az.Maintenance
+online version: https://docs.microsoft.com/en-us/powershell/module/az.maintenance/get-azmaintenanceupdate
+schema: 2.0.0
+---
+
+# Get-AzMaintenanceUpdate
+
+## SYNOPSIS
+Get updates to resources.
+
+## SYNTAX
+
+```
+Get-AzMaintenanceUpdate -ProviderName -ResourceGroupName -ResourceName
+ -ResourceType [-SubscriptionId ] [-DefaultProfile ] []
+```
+
+## DESCRIPTION
+Get updates to resources.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```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
+```
+
+### -ProviderName
+Resource provider name
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+Resource group name
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceName
+Resource identifier
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceType
+Resource type
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+Subscription credentials that uniquely identify a Microsoft Azure subscription.
+The subscription ID forms part of the URI for every service call.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.IUpdate
+
+## NOTES
+
+ALIASES
+
+## RELATED LINKS
+
diff --git a/swaggerci/maintenance/docs/Get-AzMaintenanceUpdateParent.md b/swaggerci/maintenance/docs/Get-AzMaintenanceUpdateParent.md
new file mode 100644
index 000000000000..17b7b6322d72
--- /dev/null
+++ b/swaggerci/maintenance/docs/Get-AzMaintenanceUpdateParent.md
@@ -0,0 +1,185 @@
+---
+external help file:
+Module Name: Az.Maintenance
+online version: https://docs.microsoft.com/en-us/powershell/module/az.maintenance/get-azmaintenanceupdateparent
+schema: 2.0.0
+---
+
+# Get-AzMaintenanceUpdateParent
+
+## SYNOPSIS
+Get updates to resources.
+
+## SYNTAX
+
+```
+Get-AzMaintenanceUpdateParent -ProviderName -ResourceGroupName -ResourceName
+ -ResourceParentName -ResourceParentType -ResourceType [-SubscriptionId ]
+ [-DefaultProfile ] []
+```
+
+## DESCRIPTION
+Get updates to resources.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```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
+```
+
+### -ProviderName
+Resource provider name
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+Resource group name
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceName
+Resource identifier
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceParentName
+Resource parent identifier
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceParentType
+Resource parent type
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceType
+Resource type
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+Subscription credentials that uniquely identify a Microsoft Azure subscription.
+The subscription ID forms part of the URI for every service call.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.IUpdate
+
+## NOTES
+
+ALIASES
+
+## RELATED LINKS
+
diff --git a/swaggerci/maintenance/docs/New-AzMaintenanceConfiguration.md b/swaggerci/maintenance/docs/New-AzMaintenanceConfiguration.md
new file mode 100644
index 000000000000..355113fef61a
--- /dev/null
+++ b/swaggerci/maintenance/docs/New-AzMaintenanceConfiguration.md
@@ -0,0 +1,548 @@
+---
+external help file:
+Module Name: Az.Maintenance
+online version: https://docs.microsoft.com/en-us/powershell/module/az.maintenance/new-azmaintenanceconfiguration
+schema: 2.0.0
+---
+
+# New-AzMaintenanceConfiguration
+
+## SYNOPSIS
+Create or Update configuration record
+
+## SYNTAX
+
+```
+New-AzMaintenanceConfiguration -ResourceGroupName -ResourceName [-SubscriptionId ]
+ [-ExtensionProperty ] [-InstallPatchRebootSetting ]
+ [-LinuxParameterClassificationsToInclude ] [-LinuxParameterPackageNameMasksToExclude ]
+ [-LinuxParameterPackageNameMasksToInclude ] [-Location ]
+ [-MaintenanceScope ] [-MaintenanceWindowDuration ]
+ [-MaintenanceWindowExpirationDateTime ] [-MaintenanceWindowRecurEvery ]
+ [-MaintenanceWindowStartDateTime ] [-MaintenanceWindowTimeZone ] [-Namespace ]
+ [-Override ] [-Tag ] [-TaskPostTask ]
+ [-TaskPreTask ] [-Visibility ]
+ [-WindowParameterClassificationsToInclude ] [-WindowParameterExcludeKbsRequiringReboot]
+ [-WindowParameterKbNumbersToExclude ] [-WindowParameterKbNumbersToInclude ]
+ [-DefaultProfile ] [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+Create or Update configuration record
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```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
+```
+
+### -ExtensionProperty
+Gets or sets extensionProperties of the maintenanceConfiguration
+
+```yaml
+Type: System.Collections.Hashtable
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InstallPatchRebootSetting
+Possible reboot preference as defined by the user based on which it would be decided to reboot the machine or not after the patch operation is completed.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Support.RebootOptions
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -LinuxParameterClassificationsToInclude
+Classification category of patches to be patched
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -LinuxParameterPackageNameMasksToExclude
+Package names to be excluded for patching.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -LinuxParameterPackageNameMasksToInclude
+Package names to be included for patching.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Location
+Gets or sets location of the resource
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -MaintenanceScope
+Gets or sets maintenanceScope of the configuration
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Support.MaintenanceScope
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -MaintenanceWindowDuration
+Duration of the maintenance window in HH:mm format.
+If not provided, default value will be used based on maintenance scope provided.
+Example: 05:00.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -MaintenanceWindowExpirationDateTime
+Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format.
+The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.
+Expiration date must be set to a future date.
+If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -MaintenanceWindowRecurEvery
+Rate at which a Maintenance window is expected to recur.
+The rate can be expressed as daily, weekly, or monthly schedules.
+Daily schedule are formatted as recurEvery: [Frequency as integer]['Day(s)'].
+If no frequency is provided, the default frequency is 1.
+Daily schedule examples are recurEvery: Day, recurEvery: 3Days.
+Weekly schedule are formatted as recurEvery: [Frequency as integer]['Week(s)'] [Optional comma separated list of weekdays Monday-Sunday].
+Weekly schedule examples are recurEvery: 3Weeks, recurEvery: Week Saturday,Sunday.
+Monthly schedules are formatted as [Frequency as integer]['Month(s)'] [Comma separated list of month days] or [Frequency as integer]['Month(s)'] [Week of Month (First, Second, Third, Fourth, Last)] [Weekday Monday-Sunday] [Optional Offset(No.
+of days)].
+Offset value must be between -6 to 6 inclusive.
+Monthly schedule examples are recurEvery: Month, recurEvery: 2Months, recurEvery: Month day23,day24, recurEvery: Month Last Sunday, recurEvery: Month Fourth Monday, recurEvery: Month Last Sunday Offset-3, recurEvery: Month Third Sunday Offset6.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -MaintenanceWindowStartDateTime
+Effective start date of the maintenance window in YYYY-MM-DD hh:mm format.
+The start date can be set to either the current date or future date.
+The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -MaintenanceWindowTimeZone
+Name of the timezone.
+List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell.
+Example: Pacific Standard Time, UTC, W.
+Europe Standard Time, Korea Standard Time, Cen.
+Australia Standard Time.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Namespace
+Gets or sets namespace of the resource
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Override
+Override Properties for the maintenance Configuration.
+To construct, see NOTES section for OVERRIDE properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.IMaintenanceOverrideProperties1[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+Resource Group Name
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceName
+Maintenance Configuration Name
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+Subscription credentials that uniquely identify a Microsoft Azure subscription.
+The subscription ID forms part of the URI for every service call.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Tag
+Gets or sets tags of the resource
+
+```yaml
+Type: System.Collections.Hashtable
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -TaskPostTask
+List of post tasks.
+e.g.
+[{'source' :'runbook', 'taskScope': 'Resource', 'parameters': { 'arg1': 'value1'}}]
+To construct, see NOTES section for TASKPOSTTASK properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.ITaskProperties[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -TaskPreTask
+List of pre tasks.
+e.g.
+[{'source' :'runbook', 'taskScope': 'Global', 'parameters': { 'arg1': 'value1'}}]
+To construct, see NOTES section for TASKPRETASK properties and create a hash table.
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.ITaskProperties[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Visibility
+Gets or sets the visibility of the configuration.
+The default value is 'Custom'
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Support.Visibility
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -WindowParameterClassificationsToInclude
+Classification category of patches to be patched
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -WindowParameterExcludeKbsRequiringReboot
+Exclude patches which need reboot
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -WindowParameterKbNumbersToExclude
+Windows KBID to be excluded for patching.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -WindowParameterKbNumbersToInclude
+Windows KBID to be included for patching.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+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
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.IMaintenanceConfiguration
+
+## NOTES
+
+ALIASES
+
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+
+`OVERRIDE `: Override Properties for the maintenance Configuration.
+ - `[EndDateTime ]`: Effective end date of the maintenance override window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.
+ - `[OverrideProperty ]`: Gets or sets overrideProperties of the maintenanceConfiguration
+ - `[(Any) ]`: This indicates any property can be added to this object.
+ - `[StartDateTime ]`: Effective start date of the maintenance override window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.
+ - `[TimeZone ]`: Name of the timezone. List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. Example: Pacific Standard Time, UTC, W. Europe Standard Time, Korea Standard Time, Cen. Australia Standard Time.
+
+`TASKPOSTTASK `: List of post tasks. e.g. [{'source' :'runbook', 'taskScope': 'Resource', 'parameters': { 'arg1': 'value1'}}]
+ - `[Parameter ]`: Gets or sets the parameters of the task.
+ - `[(Any) ]`: This indicates any property can be added to this object.
+ - `[Source ]`: Gets or sets the name of the runbook.
+ - `[TaskScope ]`: Global Task execute once when schedule trigger. Resource task execute for each VM.
+
+`TASKPRETASK `: List of pre tasks. e.g. [{'source' :'runbook', 'taskScope': 'Global', 'parameters': { 'arg1': 'value1'}}]
+ - `[Parameter ]`: Gets or sets the parameters of the task.
+ - `[(Any) ]`: This indicates any property can be added to this object.
+ - `[Source ]`: Gets or sets the name of the runbook.
+ - `[TaskScope ]`: Global Task execute once when schedule trigger. Resource task execute for each VM.
+
+## RELATED LINKS
+
diff --git a/swaggerci/maintenance/docs/New-AzMaintenanceConfigurationAssignment.md b/swaggerci/maintenance/docs/New-AzMaintenanceConfigurationAssignment.md
new file mode 100644
index 000000000000..1269251ea35e
--- /dev/null
+++ b/swaggerci/maintenance/docs/New-AzMaintenanceConfigurationAssignment.md
@@ -0,0 +1,247 @@
+---
+external help file:
+Module Name: Az.Maintenance
+online version: https://docs.microsoft.com/en-us/powershell/module/az.maintenance/new-azmaintenanceconfigurationassignment
+schema: 2.0.0
+---
+
+# New-AzMaintenanceConfigurationAssignment
+
+## SYNOPSIS
+Register configuration for resource.
+
+## SYNTAX
+
+```
+New-AzMaintenanceConfigurationAssignment -Name -ProviderName -ResourceGroupName
+ -ResourceName -ResourceType [-SubscriptionId ] [-Location ]
+ [-MaintenanceConfigurationId ] [-ResourceId ] [-DefaultProfile ] [-Confirm]
+ [-WhatIf] []
+```
+
+## DESCRIPTION
+Register configuration for resource.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```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
+```
+
+### -Location
+Location of the resource
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -MaintenanceConfigurationId
+The maintenance configuration Id
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Name
+Configuration assignment name
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases: ConfigurationAssignmentName
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ProviderName
+Resource provider name
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+Resource group name
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceId
+The unique resourceId
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceName
+Resource identifier
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceType
+Resource type
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+Subscription credentials that uniquely identify a Microsoft Azure subscription.
+The subscription ID forms part of the URI for every service call.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.IConfigurationAssignment
+
+## NOTES
+
+ALIASES
+
+## RELATED LINKS
+
diff --git a/swaggerci/maintenance/docs/New-AzMaintenanceConfigurationAssignmentParent.md b/swaggerci/maintenance/docs/New-AzMaintenanceConfigurationAssignmentParent.md
new file mode 100644
index 000000000000..c649bac59761
--- /dev/null
+++ b/swaggerci/maintenance/docs/New-AzMaintenanceConfigurationAssignmentParent.md
@@ -0,0 +1,277 @@
+---
+external help file:
+Module Name: Az.Maintenance
+online version: https://docs.microsoft.com/en-us/powershell/module/az.maintenance/new-azmaintenanceconfigurationassignmentparent
+schema: 2.0.0
+---
+
+# New-AzMaintenanceConfigurationAssignmentParent
+
+## SYNOPSIS
+Register configuration for resource.
+
+## SYNTAX
+
+```
+New-AzMaintenanceConfigurationAssignmentParent -ConfigurationAssignmentName -ProviderName
+ -ResourceGroupName -ResourceName -ResourceParentName -ResourceParentType
+ -ResourceType [-SubscriptionId ] [-Location ] [-MaintenanceConfigurationId ]
+ [-ResourceId ] [-DefaultProfile ] [-Confirm] [-WhatIf] []
+```
+
+## DESCRIPTION
+Register configuration for resource.
+
+## EXAMPLES
+
+### Example 1: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+### Example 2: {{ Add title here }}
+```powershell
+{{ Add code here }}
+```
+
+```output
+{{ Add output here }}
+```
+
+{{ Add description here }}
+
+## PARAMETERS
+
+### -ConfigurationAssignmentName
+Configuration assignment name
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```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
+```
+
+### -Location
+Location of the resource
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -MaintenanceConfigurationId
+The maintenance configuration Id
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ProviderName
+Resource provider name
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+Resource group name
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceId
+The unique resourceId
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceName
+Resource identifier
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceParentName
+Resource parent identifier
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceParentType
+Resource parent type
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceType
+Resource type
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SubscriptionId
+Subscription credentials that uniquely identify a Microsoft Azure subscription.
+The subscription ID forms part of the URI for every service call.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: (Get-AzContext).Subscription.Id
+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
+
+## OUTPUTS
+
+### Microsoft.Azure.PowerShell.Cmdlets.Maintenance.Models.Api20221101Preview.IConfigurationAssignment
+
+## NOTES
+
+ALIASES
+
+## RELATED LINKS
+
diff --git a/swaggerci/maintenance/docs/README.md b/swaggerci/maintenance/docs/README.md
new file mode 100644
index 000000000000..38f08b7aca3b
--- /dev/null
+++ b/swaggerci/maintenance/docs/README.md
@@ -0,0 +1,11 @@
+# Docs
+This directory contains the documentation of the cmdlets for the `Az.Maintenance` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `../examples` folder.
+
+## Info
+- Modifiable: no
+- Generated: all
+- Committed: yes
+- Packaged: yes
+
+## Details
+The process of documentation generation loads `Az.Maintenance` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `../exports` folder. Additionally, when writing custom cmdlets in the `../custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `../examples` folder.
\ No newline at end of file
diff --git a/swaggerci/maintenance/docs/Remove-AzMaintenanceConfiguration.md b/swaggerci/maintenance/docs/Remove-AzMaintenanceConfiguration.md
new file mode 100644
index 000000000000..5ff0470aefb8
--- /dev/null
+++ b/swaggerci/maintenance/docs/Remove-AzMaintenanceConfiguration.md
@@ -0,0 +1,212 @@
+---
+external help file:
+Module Name: Az.Maintenance
+online version: https://docs.microsoft.com/en-us/powershell/module/az.maintenance/remove-azmaintenanceconfiguration
+schema: 2.0.0
+---
+
+# Remove-AzMaintenanceConfiguration
+
+## SYNOPSIS
+Delete Configuration record
+
+## SYNTAX
+
+### Delete (Default)
+```
+Remove-AzMaintenanceConfiguration -ResourceGroupName -ResourceName
+ [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] []
+```
+
+### DeleteViaIdentity
+```
+Remove-AzMaintenanceConfiguration -InputObject [-DefaultProfile ] [-PassThru]
+ [-Confirm] [-WhatIf] [