问题描述:
当执行 powershell 命令有时会遇到此异常信息:
cmdlet Set-AzureRmRedisCacheDiagnostics at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
ResourceGroupName: redispms01
Name: redisstpms01
StorageAccountId: "/subscriptions/8e1c9497-3e47-4f59-ab04-
943aa4661a7b/resourceGroups/redispms01/providers/Microsoft.Storage/storageAccounts/redis01storag
earm"
Set-AzureRmRedisCacheDiagnostics : RdfeClientError: Resource not found at specified location.
问题原因:
该类型错误是因为没有注册执行 azure PowerShell 命令对应的模块导致。
解决方案:
执行以下命令注册相应的模块
Register-AzureRmResourceProvider -ProviderNamespace microsoft.insights
注意:以上 microsoft.insights 为示例,实际情况需要根据自己使用的命令来判断具体的名称。可
以使用 Get-AzureRmResourceProvider 命令查看所有的 ResourceProvider
评论0