Install the Azure PowerShell SDK (> 2015.04)
Get and save the mooncake publishsettingsfile:get-azurepublishsettingsfile-environment Azurechinacloud
Import Publishfile to Powershell:import-azurepublishsettingsfile–publishsettingsfile "path"
Toggle Resoucemanager:switch-azuremode-name Azureresourcemanager
Select subscription: select-azuresubscription-name "subscription name" (can be omitted when there is only one subscription)
Create Resourcegroup:new-azureresourcegroup-name groupname-location "Chinaeast/north" Note: select Eastern or North
To Create a redis: new-azurerediscache-resourcegroupname groupname-name rediesname-location "China East/north" Note: Selecting the group and region you created earlier requires a consistent
You can create multiple redies that can be created at the same time in the eastern and North districts, repeating the above commands
get information on Rediscache: Get-azurerediscache
get the access key for Rediscache: get-azurerediscachekey-resourcegroupname groupname-name rediesname
Example:
650) this.width=650; "title=" 1.png "src=" Http://s3.51cto.com/wyfs02/M00/78/58/wKioL1Z6VxaAw3AcAAA8mmMBYlo751.png " alt= "Wkiol1z6vxaaw3acaaa8mmmbylo751.png"/>
Set-azurerediscache-resourcegroupnamegroupname–name Redisname-enablenonsslport $true
Cmdletset-azurerediscache at command pipeline position 1
Supplyvalues for the following parameters:
(type!.)
Maxmemorypolicy: Allkeyslru
Azure Redis Cache