Azure Update Manger - Cannot edit maintenance configurations that were created with Powershell

Eccup Reservoir 66 Reputation points
2024-01-13T12:52:44.0833333+00:00
  1. Use the command 'New-AzMaintenanceConfiguration' to create a maintenance configuration.
  2. Then, attempt to manually add or remove a KB to 'exclusions' in the Updates part of the schedule using the normal Azure Portal Web interface.
  3. The issues is - I'm unavble to save any changes to a maintenance configuration through the GUI if it’s been created using Powershell.

If the maintenance configuration is created using the Azure Portal web interface manually, this isn't a problem.

Any suggestions or workarounds? This is problematic bug.

Here's powershell sample:

$ResourceGroupName = "YOUR-RESOURCEGROUP-NAME"
$Name = "YOUR NAME"
$MaintenanceScope = "InGuestPatch"
$Location = "uksouth"
$StartDateTime = "2024-11-14 12:00"
$ExpirationDateTime = "2024-12-04 17:00"
$TimeZone = "GMT Standard Time"
$Duration = "03:00"
$RecurEvery = "Day"
$InstallPatchRebootSetting = "IfRequired"
$Visibility = "Custom"

# Assuming these are the classifications you want to include
$WindowParameterClassificationToInclude = "Critical", "Security", "UpdateRollup", "FeaturePack", "ServicePack", "Definition", "Tools", "Updates"

# Assuming these are the KB numbers you want to exclude
$WindowParameterKbNumberToExclude = "KB5002501", "KB5002517", "KB5002541"

# ExtensionProperty should be a hashtable
$ExtensionProperty = @{
    "InGuestPatchMode" = "User"
}

New-AzMaintenanceConfiguration `
-ResourceGroupName $ResourceGroupName `
-Name $Name `
-MaintenanceScope $MaintenanceScope `
-Location $Location `
-StartDateTime $StartDateTime `
-ExpirationDateTime $ExpirationDateTime `
-TimeZone $TimeZone `
-Duration $Duration `
-RecurEvery $RecurEvery `
-WindowParameterClassificationToInclude $WindowParameterClassificationToInclude `
-WindowParameterKbNumberToExclude $WindowParameterKbNumberToExclude `
-InstallPatchRebootSetting $InstallPatchRebootSetting `
-Visibility $Visibility `
-ExtensionProperty $ExtensionProperty `
-Debug

Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
357 questions
{count} votes

Accepted answer
  1. AnuragSingh-MSFT 21,491 Reputation points
    2024-02-16T08:48:04.3033333+00:00

    Eccup Reservoir, Thank you again for reporting this issue.

    The fix for this issue is already released and you should be able to edit the maintenance configuration from portal - even those which were created using Azure PowerShell.

    Please check and confirm (I tested it in my subscription, and it worked) and do let me know if you have any questions.

    If the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.