New-AzureRmRedisCacheScheduleEntry

Creates a schedule entry.

Caution

The AzureRM PowerShell module will retire on 29 February 2024. For more information, see Migrate Azure PowerShell from AzureRM to Az.

Retirement indicates that the AzureRM PowerShell module will be deprecated, subsequently ceasing to receive support. While this does not inherently mean the module will stop functioning, its use beyond 29 February 2024 will be at the user's discretion and risk, as it will no longer be maintained or updated.

Syntax

New-AzureRmRedisCacheScheduleEntry
   -DayOfWeek <String>
   -StartHourUtc <Int32>
   [-MaintenanceWindow <TimeSpan>]
   [-DefaultProfile <IAzureContextContainer>]
   [<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.

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: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

String

Int32

Nullable<T>[[System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]

Outputs

PSScheduleEntry

Notes

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