Reset-​Azure​Rm​Redis​Cache

Restarts nodes of a cache.

Syntax

Reset-AzureRmRedisCache
     -Name <String>
     -ResourceGroupName <String>
     -RebootType <String>
     [-ShardId <Int32>]
     [-Force]
     [-PassThru]
     [-Confirm]
     [-WhatIf]
     [<CommonParameters>]

Description

The Reset-AzureRmRedisCache cmdlet restarts nodes of an Azure Redis Cache instance.

Examples

Example 1: Restart both nodes

PS C:\>Reset-AzureRmRedisCache -ResourceGroupName "ResourceGroup13" -Name "RedisCache06" -RebootType "AllNodes" -Force

This command restarts both nodes for the cache named RedisCache06.

Required Parameters

-Name

Specifies the name of a cache.

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

Specifies which node or nodes to restart. The acceptable values for this parameter are:- PrimaryNode

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

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

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Indicates that this cmdlet returns a Boolean that indicates whether the operation succeeds. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ShardId

Specifies the ID of the shard that this cmdlet restarts for a premium cache with clustering enabled.

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

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

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

Outputs

None

Notes

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