New-​Azure​Rm​Redis​Cache​Schedule​Entry

Creates a schedule entry.

Syntax

New-AzureRmRedisCacheScheduleEntry
   -DayOfWeek <String>
   [-MaintenanceWindow <TimeSpan>]
   -StartHourUtc <Int32>
   [<CommonParameters>]

Description

The New-AzureRmRedisCacheScheduleEntry cmdlet creates a PSScheduleEntry object. Azure Redis Cache patch schedule cmdlets, such as the New-AzureRmRedisCachePatchSchedule cmdlet, require schedule entry objects.

Examples

Example 1: Create a schedule entry for weekends

PS C:\>New-AzureRmRedisCacheScheduleEntry -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.

Required 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
Parameter Sets:Everyday, Weekend, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-StartHourUtc

Specifies an hour of the day when the schedule starts.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-MaintenanceWindow

Specifies the amount of time window allowed for updates.

Type:TimeSpan
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Inputs

None

You can pipe input to this cmdlet by property name, but not by value.

Outputs

Microsoft.Azure.Commands.RedisCache.Models.PSScheduleEntry

This cmdlet returns a schedule entry object.

Notes

  • Keywords: azure, azurerm, arm, resource, management, manager, redis, cache, web, webapp, website