Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell 创建Azure托管缓存时出错_Powershell_Caching_Azure - Fatal编程技术网

Powershell 创建Azure托管缓存时出错

Powershell 创建Azure托管缓存时出错,powershell,caching,azure,Powershell,Caching,Azure,我正在尝试在Azure中创建托管缓存,并根据需要在Azure Powershell中调用以下命令(或类似命令)的说明: New-AzureManagedCache -Name contosocache -Location "South Central US" -Sku Basic -Memory 128MB 我使用Add AzureAccount登录,但出现以下错误: “术语New-AzureManagedCache未被识别为cmdlet的名称” 当我询问帮助(help Azure)时,没有提

我正在尝试在Azure中创建托管缓存,并根据需要在Azure Powershell中调用以下命令(或类似命令)的说明:

New-AzureManagedCache -Name contosocache -Location "South Central US" -Sku Basic -Memory 128MB
我使用Add AzureAccount登录,但出现以下错误:

“术语New-AzureManagedCache未被识别为cmdlet的名称”

当我询问帮助(help Azure)时,没有提到任何用于托管缓存的命令。我知道Redis缓存将取代托管缓存,但Redis在东南亚尚不可用,因此我别无选择,只能使用托管缓存,但它似乎已被删除


是否有人知道我在这里缺少什么东西,或者这是一个一般性错误?

请确保从这里下载最新版本的Azure PowerShell模块:。截至目前,最新版本为0.8.4,于6月30日发布

然后,要确保PowerShell会话中的
新AzureManagedCache
命令可用,请运行:

Get-Command -Module Azure -Name *cache*;

非常感谢。我只是假设几个月前下载的Azure Powershell版本会有ManagedCache命令。。马克:很高兴你把事情搞定了。我同意,假设通常不是一个好主意。信任,但要验证!:)