There is a command group 'az_aks_maintenanceconfiguration'. This group of commands could 'commands to manage maintenance configurations in managed kubernetes cluster'. The group of commands has global parameter '--debug' which means 'Increase logging verbosity to show all debug logs.'. The group of commands has global parameter '--help -h' which means 'Show this help message and exit.'. The group of commands has global parameter '--only-show-errors' which means 'Only show errors, suppressing warnings.'. The group of commands has global parameter '--output -o' which means 'Output format.'. The group of commands has global parameter '--query' which means 'JMESPath query string. See <a href="http://jmespath.org/">http://jmespath.org/</a> for more information and examples.'. The group of commands has global parameter '--subscription' which means 'Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.'. The group of commands has global parameter '--verbose' which means 'Increase logging verbosity. Use --debug for full debug logs.'. This group contains a child command 'az_aks_maintenanceconfiguration_add'.The syntax is: az aks maintenanceconfiguration add --cluster-name
                                    --name
                                    --resource-group
                                    [--config-file]
                                    [--day-of-month]
                                    [--day-of-week]
                                    [--duration]
                                    [--interval-days]
                                    [--interval-months]
                                    [--interval-weeks]
                                    [--schedule-type {absolutemonthly, daily, relativemonthly, weekly}]
                                    [--start-date]
                                    [--start-hour]
                                    [--start-time]
                                    [--utc-offset]
                                    [--week-index {first, fourth, last, second, third}]
                                    [--weekday]. The 1th example of the child command would be to use it to 'add default maintenance configuration with   weekday and   start hour', the syntax is: az aks maintenanceconfiguration add -g MyResourceGroup --cluster-name test1 -n default --weekday Monday  --start-hour 1
  The maintenance is allowed on Monday 1:00am to 2:00am. The 2th example of the child command would be to use it to 'add default maintenance configuration with   weekday  the maintenance is allowd on any time of that day', the syntax is: az aks maintenanceconfiguration add -g MyResourceGroup --cluster-name test1 -n default --weekday Monday
  The maintenance is allowed on Monday.. The 3th example of the child command would be to use it to 'add default maintenance configuration with maintenance configuration json file', the syntax is: az aks maintenanceconfiguration add -g MyResourceGroup --cluster-name test1 -n default --config-file ./test.json
    The content of json file looks below. It means the maintenance is allowed on UTC time Tuesday 1:00am - 3:00 am and Wednesday 1:00am - 2:00am, 6:00am-7:00am
    No maintenance is allowed from 2020-11-26T03:00:00Z to 2020-11-30T12:00:00Z and from 2020-12-26T03:00:00Z to 2020-12-26T12:00:00Z even if they are allowed in the above weekly setting
    {
          "timeInWeek": [
            {
              "day": "Tuesday",
              "hourSlots": [
                1,
                2
              ]
            },
            {
              "day": "Wednesday",
              "hourSlots": [
                1,
                6
              ]
            }
          ],
          "notAllowedTime": [
            {
              "start": "2021-11-26T03:00:00Z",
              "end": "2021-11-30T12:00:00Z"
            },
            {
              "start": "2021-12-26T03:00:00Z",
              "end": "2021-12-26T12:00:00Z"
            }
          ]
  }. The 4th example of the child command would be to use it to 'add aksmanagednodeosupgradeschedule maintenance configuration with daily schedule', the syntax is: az aks maintenanceconfiguration add -g MyResourceGroup --cluster-name test1 -n aksManagedNodeOSUpgradeSchedule --schedule-type Daily --interval-days 2 --duration 12 --utc-offset=-08:00 --start-date 2023-01-16 --start-time 00:00
  The maintenance is allowed from 00:00 to 12:00 (adjusted with UTC offset: -08:00) every two days, and this configuration will be effective from 2023-01-16.. The 5th example of the child command would be to use it to 'add aksmanagednodeosupgradeschedule maintenance configuration with weekly schedule', the syntax is: az aks maintenanceconfiguration add -g MyResourceGroup --cluster-name test1 -n aksManagedNodeOSUpgradeSchedule --schedule-type Weekly --day-of-week Friday --interval-weeks 3 --duration 8 --utc-offset +05:30 --start-date 2023-01-16 --start-time 09:30
  The maintenance is allowed on Friday from 09:30 to 17:30 (adjusted with UTC offset: +05:30) every three weeks, and this configuration will be effective from 2023-01-16.. The 6th example of the child command would be to use it to 'add aksmanagedautoupgradeschedule maintenance configuration with absolute monthly schedule', the syntax is: az aks maintenanceconfiguration add -g MyResourceGroup --cluster-name test1 -n aksManagedAutoUpgradeSchedule --schedule-type AbsoluteMonthly --day-of-month 15 --interval-months 1 --duration 6 --utc-offset +05:30 --start-date 2023-01-16 --start-time 09:30
  The maintenance is allowed on the 15th of the month from 09:30 to 15:30 (adjusted with UTC offset: +05:30) every month, and this configuration will be effective from 2023-01-16.. The 7th example of the child command would be to use it to 'add aksmanagedautoupgradeschedule maintenance configuration with relative monthly schedule', the syntax is: az aks maintenanceconfiguration add -g MyResourceGroup --cluster-name test1 -n aksManagedAutoUpgradeSchedule --schedule-type RelativeMonthly --day-of-week Tuesday --week-index Last --interval-months 3 --duration 6 --start-date 2023-01-16 --start-time 09:30
  The maintenance is allowed on the last Tuesday from 09:30 to 15:30 in default UTC time every 3 months, and this configuration will be effective from 2023-01-16.. The 8th example of the child command would be to use it to 'add aksmanagedautoupgradeschedule maintenance configuration with json file', the syntax is: az aks maintenanceconfiguration add -g MyResourceGroup --cluster-name test1 -n aksManagedAutoUpgradeSchedule --config-file ./test.json
    The content of json file looks below. It means the maintenance is allowed on the 1st of the month from 09:00 to 13:00 (adjusted with UTC offset: -08:00) every 3 months, and this configuration will be effective from 2023-01-16.
    No maintenance is allowed from 2022-12-23 to 2023-01-05 and from 2023-11-23 to 2023-11-26 even if they are allowed in the above monthly setting
    {
        "maintenanceWindow": {
            "schedule": {
                "absoluteMonthly": {
                    "intervalMonths": 3,
                    "dayOfMonth": 1
                }
            },
            "durationHours": 4,
            "utcOffset": "-08:00",
            "startTime": "09:00",
            "notAllowedDates": [
                {
                    "start": "2022-12-23",
                    "end": "2023-01-05"
                },
                {
                    "start": "2023-11-23",
                    "end": "2023-11-26"
                }
            ]
        }
    }. The parameter '--cluster-name' is required. It is used to the cluster name.. The parameter '--name -n' is required. It is used to the config name.. The parameter '--resource-group -g' is required. It is used to name of resource group. you can configure the default group using `az configure --defaults group=<name>`.. The parameter '--config-file' is optional. the maintenance configuration json file.. The parameter '--day-of-month' is optional. specify on which day of the month the maintenance occurs. e.g. 1 indicates the 1st of the month. applicable to absolute monthly schedule type only.. The parameter '--day-of-week' is optional. specify on which day of the week the maintenance occurs. e.g. "monday". applicable to weekly and relative monthly schedule types.. The parameter '--duration' is optional. the length of maintenance window range from 4 to 24 hours.. The parameter '--interval-days' is optional. the number of days between each set of occurrences for daily schedule type.. The parameter '--interval-months' is optional. the number of months between each set of occurrences. applicable to absolute and relative monthly schedule types.. The parameter '--interval-weeks' is optional. the number of weeks between each set of occurrences. applicable to weekly schedule types only.. The parameter '--schedule-type' is optional. choose either 'daily', 'weekly', 'absolutemonthly' or 'relativemonthly' for your maintenance schedule. only applicable to 'aksmanagedautoupgradeschedule' and 'aksmanagednodeosupgradeschedule' maintenance configuration.. The parameter '--start-date' is optional. the date the maintenance configuration activates. if not specified, the maintenance window will be active right away.".. The parameter '--start-hour' is optional. the start time of 1 hour window which maintenance is allowd. e.g. 1 means it's allowd between 1:00 am and 2:00 am. applicable to default maintenance configuration only.. The parameter '--start-time' is optional. the start time of the maintenance window. accepted values are from '00:00' to '23:59'. '--utc-offset' applies to this field. for example, '02:00' with '--utc-offset +02:00' means utc time '00:00'.. The parameter '--utc-offset' is optional. the utc offset in format +/-hh:mm. for example, '+05:30' for ist and '-07:00' for pst. if not specified, the default is '+00:00'.. The parameter '--week-index' is optional. specify on which instance of the allowed days specified in '--day-of-week' the maintenance occurs. applicable to relative monthly schedule type only.. The parameter '--weekday' is optional. a day in week on which maintenance is allowed. e.g. monday. applicable to default maintenance configuration only.. 