Skip to content

Latest commit

 

History

History
151 lines (111 loc) · 3.9 KB

New-AzureRmRedisCachePatchSchedule.md

File metadata and controls

151 lines (111 loc) · 3.9 KB
external help file Module Name ms.assetid online version schema
Microsoft.Azure.Commands.RedisCache.dll-Help.xml
AzureRM.RedisCache
F7FAFF52-5E07-4D88-B48F-BC70C43E8691
2.0.0

New-AzureRmRedisCachePatchSchedule

SYNOPSIS

Adds a patch schedule.

SYNTAX

New-AzureRmRedisCachePatchSchedule [-ResourceGroupName <String>] -Name <String> -Entries <PSScheduleEntry[]>
 [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<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.

PARAMETERS

-DefaultProfile

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

Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzureRmContext, AzureCredential

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Entries

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

Type: Microsoft.Azure.Commands.RedisCache.Models.PSScheduleEntry[]
Parameter Sets: (All)
Aliases:

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

-Name

Specifies the name of the cache.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
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: System.String
Parameter Sets: (All)
Aliases:

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

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

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

System.String

Microsoft.Azure.Commands.RedisCache.Models.PSScheduleEntry[]

OUTPUTS

Microsoft.Azure.Commands.RedisCache.Models.PSScheduleEntry

NOTES

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

RELATED LINKS

Get-AzureRmRedisCachePatchSchedule

New-AzureRmRedisCacheScheduleEntry

Remove-AzureRmRedisCachePatchSchedule