您的位置:首页 > 数据库 > Redis

Azure Redis Cache---Redis加入到V-net

2016-04-22 15:13 615 查看
在创建Microsoft Azure的Redis Cache 的服务后,会给到一个internet的url,但是通过这个URL访问时由于是从internet访问,所以会有一定的性能的影响,其实Azure的redis服务是可以加入到azure的虚拟网络中,目前在21V版本中,只能通过powershell配置。
若要使用中国云环境,以下 AzureRm PowerShell 命令需要添加“-Environment”参数。
Add-AzureRmAccount
Login-AzureRmAccount
例如,如果你使用的是 Azure PowerShell 1.0.0 或者 1.0.1,应变为
$china = Get-AzureRmEnvironment -Name AzureChinaCloud; Login-AzureRmAccount -Environment $china,或者,如果你使用的是 Azure PowerShell 1.0.2 或者更高:
Login-AzureRmAccount -EnvironmentName AzureChinaCloud
Powershell 版本:1.0.2或以上
1、登陆账户,以使用RM。









2、创建V-net(见之前的文章)
3、创建资源组



4、创建Redis Cache,同时加入到之前创建的V-NET和设置IP
New-AzureRmRedisCache -Location "china east" -Name ngredis001 -ResourceGroupName redisrmgp -Size 6GB -Sku Premium -VirtualNetwork /subscriptions/{subID}/resourceGroups/Default-Networking/providers/Microsoft.ClassicNetwork/virtualNetworks/redisvnet -Subnet Subnet-1 -StaticIP 10.10.100.5



在同一个V-net的VM中测试redis cache





内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Microsoft internet 中国