Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.Maintenance/maintenanceConfigurations - rebootSetting return AlwaysReboot if pass Always #27222

Open
teowa opened this issue Jan 2, 2024 · 0 comments
Labels
Maintenance Service Attention This issue is responsible by Azure service team.

Comments

@teowa
Copy link
Contributor

teowa commented Jan 2, 2024

swagger:

"InputPatchConfiguration": {
"type": "object",
"properties": {
"rebootSetting": {
"type": "string",
"enum": [
"IfRequired",
"Never",
"Always"
],

API flow: send Always return AlwaysReboot:

PUT https://management.azure.com/subscriptions/xxx/resourceGroups/example-resources/providers/Microsoft.Maintenance/maintenanceConfigurations/example-mc?api-version=2022-07-01-preview HTTP/2.0
content-type: application/json; charset=utf-8

{
   "location":"westeurope",
   "name":"example-mc",
   "properties":{
      "extensionProperties":{
         "InGuestPatchMode":"User"
      },
      "installPatches":{
         "linuxParameters":{
            "classificationsToInclude":[
               "Critical",
               "Security"
            ],
            "packageNameMasksToExclude":[],
            "packageNameMasksToInclude":[]
         },
       -->  "rebootSetting":"Always",
         "windowsParameters":{
            "classificationsToInclude":[
               "Critical",
               "Security",
               "UpdateRollup",
               "Definition",
               "Updates"
            ],
            "kbNumbersToExclude":[],
            "kbNumbersToInclude":[]
         }
      },
      "maintenanceScope":"InGuestPatch",
      "maintenanceWindow":{
         "duration":"02:00",
         "expirationDateTime":"",
         "recurEvery":"Day",
         "startDateTime":"2025-02-01 11:00",
         "timeZone":"Central Standard Time"
      },
      "namespace":"Microsoft.Maintenance",
      "visibility":"Custom"
   },
   "tags":{
      "Env":"prod"
   }
}

HTTP/2.0 200
cache-control: no-cache
pragma: no-cache
content-type: application/json; charset=utf-8
expires: -1
vary: Accept-Encoding
x-ms-request-id: cc905654-4c0c-988b-6823-d8d3436011ff
x-ms-correlation-request-id: cc905654-4c0c-988b-6823-d8d3436011ff
date: Tue, 02 Jan 2024 10:43:47 GMT
content-length: 1316

{
  "location": "westeurope",
  "tags": {
    "env": "prod"
  },
  "properties": {
    "namespace": "Microsoft.Maintenance",
    "extensionProperties": {
      "inGuestPatchMode": "User"
    },
    "maintenanceScope": "InGuestPatch",
    "maintenanceWindow": {
      "startDateTime": "2025-02-01 11:00",
      "duration": "02:00",
      "timeZone": "Central Standard Time",
      "recurEvery": "Day"
    },
    "visibility": "Custom",
    "installPatches": {
    -->  "rebootSetting": "AlwaysReboot",
      "windowsParameters": {
        "kbNumbersToExclude": [],
        "kbNumbersToInclude": [],
        "classificationsToInclude": [
          "Critical",
          "Security",
          "UpdateRollup",
          "Definition",
          "Updates"
        ]
      },
      "linuxParameters": {
        "packageNameMasksToExclude": [],
        "packageNameMasksToInclude": [],
        "classificationsToInclude": [
          "Critical",
          "Security"
        ]
      }
    },
    "configurationType": "Regular"
  },
  "id": "/subscriptions/xxx/resourcegroups/example-resources/providers/Microsoft.Maintenance/maintenanceConfigurations/example-mc",
  "name": "example-mc",
  "type": "Microsoft.Maintenance/maintenanceConfigurations"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

2 participants