Create Pull Request
| Date | Scan | Status | Result |
|---|---|---|---|
| 2025-07-12 23:44 | #41 | cancelled |
Biased
|
| 2025-07-12 00:58 | #8 | cancelled |
Clean
|
| 2025-07-10 05:06 | #7 | processing |
Clean
|
1. Create a maintenance configuration using the `New-AzMaintenanceConfiguration` cmdlet.
- The `-Duration` must be a minimum of a five hour window.
- The `-RecurEvery` is per day.
- For TimeZone options, see [Time Zones](/dotnet/api/system.timezoneinfo).
1. Save the maintenance configuration as a variable named `$config`.
1. Save the service resource as a variable named `$serviceResource`.
1. Create the maintenance configuration assignment using the `New-AzConfigurationAssignment` cmdlet. The maintenance policy is applied to the resource within 24 hours.
1. To remove a configuration assignment:
- A configuration assignment is removed automatically if the configuration or the resource is deleted.
- If you want to manually remove a configuration assignment from the maintenance configuration to a resource, use the `Remove-AzConfigurationAssignment` cmdlet.
1. Create a maintenance configuration using the `az maintenance configuration create` command.
- Sets the `--location` to specify the Azure region for the maintenance configuration.
- Sets the `--maintenance-scope` to `Resource`.
- Sets the extension property to `maintenanceSubScope=NetworkSecurity` using `--extension-properties`.
- Sets the `--maintenance-window-duration` to specify the maintenance window length (must be at least five hours, format: HH:mm).
- Sets the `--maintenance-window-start-date-time` to specify when the maintenance window begins (format: YYYY-MM-DD HH:MM).
- Sets the `--maintenance-window-expiration-date-time` to specify when the maintenance window expires (format: YYYY-MM-DD HH:MM).
- Sets the `--maintenance-window-recur-every` to `Day` for daily recurrence.
- Sets the `--maintenance-window-time-zone` to specify the time zone for the schedule. For available time zones, see [Time Zones](/dotnet/api/system.timezoneinfo).
- Sets the `--namespace` to `Microsoft.Maintenance`.
- Sets the `--visibility` to `Custom`.
- Sets the `--resource-group` to specify the resource group.
- Sets the `--resource-name` to specify the name of the maintenance configuration.