目前Redis在中国上线了,不过只是预览版而且不能通过Portal进行操作,不过可以通过Powershell创建,具体如下:
- 下载最新的Powershell SDK:http://www.windowsazure.cn/downloads/
- Switch-AzureMode -name AzureResourceManager
- Add-AzureAccount -Environment AzureChinaCloud
- Get-AzureSubscription –Current
- New-AzureResourceGroup -Name mygroup1 -Location "China North"
- New-AzureRedisCache -ResourceGroupName mygroup1 -Name TerryRedis01 -Location "China North"
- 一段时间后,再次查看Redis 创建是否成功。
创建成功后,如果想再次获取key,方法如下:
1.
2.使用groupname和cache name获取key: