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
若要使用中国云环境,以下 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
相关文章推荐
- Android学习笔记(二九):嵌入浏览器
- 微软宣布任命纳德拉为CEO,盖茨辞去董事长职位
- 微软新CEO 纳德拉:这个行业不推崇传统,只尊重创新
- 使用命令修改注册表键值及权限
- Internet Explorer 8 RC1 下载地址(英文版)
- Microsoft Windows Vista 简体中文企业版 MVL DVD IMG 32-bit(1.9GB)
- 用vbs返回 Internet Explorer 的下载控件和 Applet 的列表
- 用vbs更改 Internet Explorer 的标题栏
- 微软Word 2007数学插件 Microsoft Math 提供下载
- Internet Explorer 7 中文版发布
- Microsoft Windows Server 2008 Beta 3VHD官方镜像下载
- Microsoft Office 2007 SP1 简体中文正式版 升级包官方下载地址
- 多语言翻译软件 Translator Internet 序列号
- Microsoft Access 数据库常规规格
- 开发 Internet Explorer 右键功能表(ContextMenu)
- 从ASP.NET得到Microsoft Word文档的代码
- Windows7下Microsoft SQL Server 2008安装图解和注意事项
- Microsoft Office 2007 全系列迅雷下载
- 用vbs实现重新启动 Internet Explorer