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

[QUERY] Old API version in Azure.ResourceManager.Maintenance #47683

Open
TheToor opened this issue Dec 27, 2024 · 1 comment
Open

[QUERY] Old API version in Azure.ResourceManager.Maintenance #47683

TheToor opened this issue Dec 27, 2024 · 1 comment
Assignees
Labels
ARM customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@TheToor
Copy link

TheToor commented Dec 27, 2024

Library name and version

Azure.ResourceManager.Maintenance 1.1.2

Query/Question

The current version of the module is missing the "installPatches" property in the Maintenance Window. These are the Guest specific settings here:
Image

This is due to the Client still using an old API version. Using:

clientOptions.SetApiVersion(new ResourceType("Microsoft.Maintenance/maintenanceConfigurations"), "2023-04-01");

Yields a response with the correct content:

Azure.Core: Debug: Response [a8887816-e66a-40f8-bb55-2f9712b269f3] content: {
  "value": [
    {
      "location": "northeurope",
      "tags": {},
      "properties": {
        "extensionProperties": {
          "InGuestPatchMode": "User"
        },
        "maintenanceScope": "InGuestPatch",
        "maintenanceWindow": {
          "startDateTime": "2024-12-27 00:00",
          "duration": "03:55",
          "timeZone": "W. Europe Standard Time",
          "recurEvery": "1Day"
        },
        "visibility": "Custom",
        "installPatches": {
          "rebootSetting": "IfRequired",
          "windowsParameters": {
            "classificationsToInclude": [
              "Definition"
            ]
          },
          "linuxParameters": {}
        },
        "configurationType": "Regular"
      },
      "id": "/subscriptions/<Redacted>/resourcegroups/<Redacted>/providers/microsoft.maintenance/maintenanceconfigurations/mwi-test-neu-001",
      "name": "mwi-test-neu-001",
      "type": "Microsoft.Maintenance/maintenanceConfigurations"
    }
  ]
}

Not using the override results in:

Azure.Core: Debug: Response [611b98c8-2c53-4fac-82de-66616121c92d] content: {
  "value": [
    {
      "location": "northeurope",
      "tags": {},
      "properties": {
        "extensionProperties": {
          "InGuestPatchMode": "User"
        },
        "maintenanceScope": "InGuestPatch",
        "maintenanceWindow": {
          "startDateTime": "2024-12-27 00:00",
          "duration": "03:55",
          "timeZone": "W. Europe Standard Time",
          "recurEvery": "1Day"
        },
        "visibility": "Custom",
        "configurationType": "Regular"
      },
      "id": "/subscriptions/<Redacted>/resourcegroups/<Redacted>/providers/microsoft.maintenance/maintenanceconfigurations/mwi-test-neu-001",
      "name": "mwi-test-neu-001",
      "type": "Microsoft.Maintenance/maintenanceConfigurations"
    }
  ]
}

The normal request is using ?api-version=2021-05-01.

Can the module be updated to use the newest version so it is possible to set Guest Configurations?

Environment

No response

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Dec 27, 2024
@jsquire jsquire added ARM Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Dec 27, 2024
@jsquire
Copy link
Member

jsquire commented Dec 27, 2024

Thank you for your feedback. Tagging and routing to the team member best able to assist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants