< Back

New-AzureRmRedisCachePatchSchedule

Tue Jan 29, 2019 10:04 pm

NAME New-AzureRmRedisCachePatchSchedule



SYNOPSIS

Adds a patch schedule.





SYNTAX

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

<String>] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Entries <PSScheduleEntry[]>

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

New-AzureRmRedisCacheScheduleEntry cmdlet.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Name <String>

Specifies the name of the cache.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

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



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



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



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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... chschedule

Get-AzureRmRedisCachePatchSchedule

New-AzureRmRedisCacheScheduleEntry

Remove-AzureRmRedisCachePatchSchedule