Step-by-Step Instruction for creating Managed Cache Namespace Using Windows Azure PowerShell CmdLets

Currently the ability to create Azure Managed Cache Service Namespace from Portal is disabled, however end users can still create the Managed Cache namespace using the latest PowerShell CmdLet. So in this blog I will provide the step-by-step instruction on creating Managed Cache Service Namespace by leveraging latest version PowerShell CmdLet.

1. Please download the latest version of the Azure PowerShell Module from here

2. Create a  PowerShell Script file (*.ps1) with below CmdLet to add and List the  new managed cache namespace (Please refer the attached CreateManageCache.ps1)

 Add-AzureAccount
New-AzureManagedCache -Name <cachenamespace> -Location "Location" -Sku Basic -Memory 128MB
Get-AzureManagedCache

3. Open the PowerShell Script, which is created in Step 2, in the PowerShell Script editor  ‘Windows PowerShell ISE’ , which is located under ‘%windir%\system32\WindowsPowerShell\v1.0\PowerShell_ISE.exe’

4. Please note that, it will take couple of minutes to complete above script, once it created the name space, you can open the management portal and you will see the newly created Managed Cache Namespace, and you can do further cache management from the Management Portal.

Reference:

-
How to: Create a Cache for Azure Managed Cache Service

-
 https://msdn.microsoft.com/en-us/library/dn448831.aspx#CreateCache

-
New-AzureManagedCache

-
 https://msdn.microsoft.com/en-us/library/azure/dn688997.aspx

-
How to install and configure Azure PowerShell

-
 https://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/

CreateManageCache.ps1

Comments

  • Anonymous
    May 14, 2014
    it's  great article for creating managed cache service through PowerShell.Thanks Pradeep for sharing it.
  • Anonymous
    May 14, 2014
    Is there any comment as to why it's been disabled in the portal?
  • Anonymous
    May 15, 2014
    Any idea why it's disabled in the Azure Portal?
  • Anonymous
    May 18, 2014
    Any way to set the expiry mode and time via powershell?
  • Anonymous
    May 18, 2014
    Awesome!! Thanks for sharing this valuable article as there is no clear information on MSDN for this.Wondering, why option to create cache is absent on the azure portal though, it was present in the preview version?
  • Anonymous
    May 19, 2014
    Are you able to get any information why the option to create a new cache has been deleted from the portal? Does this cache have any future ore should we start using the redis preview?
  • Anonymous
    May 20, 2014
    Very nice blog. Any reason why Microsoft removed the create cache option removed from portal.If we know the reason then that will be very informative for us.
  • Anonymous
    May 30, 2014
    The comment has been removed
  • Anonymous
    June 01, 2014
    @Mike, I am not 100% sure, what might be  went wrong  in your scenario, it look like due to some unknown reason, session information is loosing from PowerShell Console, So verify whether you can workaround this issue by leveraging PowerShell CmdLet Get-AzurePublishSettingsFile. If this doesn't fix the issue, please open a support ticket with Microsoft ,so that we can have a investigation on this issue