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

Adds a patch schedule.

Syntax

New-AzureRmRedisCachePatchSchedule
   -Name <String>
   -ResourceGroupName <String>
   -Entries <PSScheduleEntry[]>
   [<CommonParameters>]

Description

The New-AzureRmRedisCachePatchSchedule cmdlet adds a patch schedule to a cache in Azure Redis Cache.

Examples

Example 1: Create and add a patch schedule on a cache

PS C:\>New-AzureRmRedisCachePatchSchedule -ResourceGroupName "ResourceGroup13" -Name "RedisCache06" -Entries @(New-AzureRmRedisCacheScheduleEntry -DayOfWeek "Weekend" -StartHourUtc 2 -MaintenanceWindow "06:00:00")

This command adds a patch schedule to the cache named RedisCache06. The Entries parameter takes as its value a command that uses New-AzureRmRedisCacheScheduleEntry to create a schedule.

Required Parameters

-Entries

Specifies an array of schedules that this cmdlet sets on a cache. To obtain a PSScheduleEntry object, use the New-AzureRmRedisCacheScheduleEntry cmdlet.

Type:PSScheduleEntry[]
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

Specifies the name of the cache.

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

Specifies the name of the resource group which contains the cache.

Type:String
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 the of patch schedule entries set on the cache.

Notes

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