New-AzRedisCacheScheduleEntry
Creates a schedule entry.
Syntax
New-AzRedisCacheScheduleEntry
-DayOfWeek <String>
-StartHourUtc <Int32>
[-MaintenanceWindow <TimeSpan>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The New-AzRedisCacheScheduleEntry cmdlet creates a PSScheduleEntry object. Azure Redis Cache patch schedule cmdlets, such as the New-AzRedisCachePatchSchedule cmdlet, require schedule entry objects.
Examples
Example 1: Create a schedule entry for weekends
New-AzRedisCacheScheduleEntry -DayOfWeek "Weekend" -StartHourUtc 2 -MaintenanceWindow "06:00:00"
This command creates a PSScheduleEntry object that represents a weekend schedule that has the specified start time and window.
Parameters
-DayOfWeek
Specifies the day of the week for the schedule entry. The acceptable values for this parameter are:
- Everyday
- Weekend
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
- Sunday
Type: | String |
Accepted values: | Everyday, Weekend, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MaintenanceWindow
Specifies the amount of time window allowed for updates.
Type: | Nullable<T>[TimeSpan] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StartHourUtc
Specifies an hour of the day when the schedule starts.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
Nullable<T>[[System.TimeSpan, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
Outputs
Notes
- Keywords: azure, azurerm, arm, resource, management, manager, redis, cache, web, webapp, website
Related Links
Azure PowerShell