New-AzRedisCacheScheduleEntry
Creates a schedule entry.
Syntax
Default (Default)
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
Parameter properties
Type: | String |
Default value: | None |
Accepted values: | Everyday, Weekend, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure.
Parameter properties
Type: | IAzureContextContainer |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-MaintenanceWindow
Specifies the amount of time window allowed for updates.
Parameter properties
Type: | |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-StartHourUtc
Specifies an hour of the day when the schedule starts.
Parameter properties
Type: | Int32 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
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.
Inputs
String
Int32
Nullable<T>
Outputs
PSScheduleEntry
Notes
- Keywords: azure, azurerm, arm, resource, management, manager, redis, cache, web, webapp, website