New-​Azure​Managed​Cache

Creates an Azure cache.

Syntax

New-AzureManagedCache
   -Location <String>
   [-Memory <String>]
   -Name <String>
   [-Profile <AzureSMProfile>]
   [-Sku <CacheServiceSkuType>]
   [<CommonParameters>]

Description

The New-AzureManagedCache cmdlet creates an Azure Cache in your Azure account and returns an object that represents the new Azure Cache. An Azure Cache is a secure, dedicated cache that provides extremely fast access to data. This distributed, in-memory, scalable solution enables you to build highly scalable and responsive applications. For more information about Azure Cache, see Azure Cache (http://azure.microsoft.com/en-us/services/cache/).

Examples

Example 1: Create an Azure Cache

PS C:\>New-AzureManagedCache -Name "ContosoCache" -Location "West Europe"

This command creates an Azure Cache named ContosoCache in the West Europe Azure data center. It uses the default values for the Sku and Memory parameters, which are Basic and 128 MB.

Example 2: Create a premium Azure Cache

PS C:\>New-AzureManagedCache -Name "ContosoAppCache" -Location "West Europe" -Sku Premium -Memory 150GB

This command creates the largest available Azure Cache.

Required Parameters

-Location

Specifies the location of the Azure Cache. Enter an Azure data center location, such as North Central US or West Europe. Use the Get-AzureLocation cmdlet to find a location that supports Azure Cache.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies a name for the Azure Cache. The name can include only lower-case letters and numbers, and it must begin with a lower-case letter. The name must be unique.

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

Optional Parameters

-Memory

Specifies the size of the Azure Cache. The cache size may affect the cost of the service. Enter a value followed by MB or GB, such as 128MB or 8GB. This value must be compatible with the value of the Sku parameter. The default value is the lowest value in the range specified by the Sku parameter. The following are some considerations: - When the value of Sku is Basic, the value of Memory must be divisible by 128 MB.

  • When the value of Sku is Standard, the value of Memory must be divisible by 1 GB.
  • When the value of Sku is Premium, the value of Memory must be divisible by 5 GB.
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Sku

Specifies the tier of the Azure Cache. The default value is Basic. The acceptable values for this parameter are:- Basic (128 MB - 1 GB)

  • Standard (1 GB - 10 GB)
  • Premium (5 GB - 150 GB)
Type:CacheServiceSkuType
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Azure.Commands.ManagedCache.Models .PSCacheService

Notes