This command creates configuration object for patching.
The command specifies the day of the week and defines the maintenance window.
This configuration enables patching that uses these values.
The command stores the result in the $AutoBackupConfig variable.
You can specify this configuration item for other cmdlets, such as the Set-AzVMSqlServerExtension cmdlet.
Parameters
-DayOfWeek
Specifies the day of the week when updates should be installed.
The acceptable values for this parameter are:
Indicates that automated patching for the virtual machine is enabled.
If you enable automated patching the cmdlet puts Windows Update into interactive mode.
If you disable automated patching, Windows Update settings do not change.
Specifies the duration, in minutes, of the maintenance window.
Automated patching avoids performing an action that can affect a virtual machine availability outside that window.
Specify a multiple of 30 minutes.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.