【Azure Redis 缓存】遇见Azure Redis不能创建成功的问题:至少一个资源部署操作失败,因为 Microsoft.Cache 资源提供程序未注册。
问题描述
在中国区微软云上创建Redis失败。收到的错误消息为:
{ |
解决办法
根据错误提示,在当前的订阅中注册Microsoft.Cache资源。
门户上的操作步骤如下
使用PowerShell命令
也可以通过错误消息中的PowerShell命令进行注册。PS: Powershell需先使用登录命令登录到Azure。
Connect-AzAccount -Environment AzureChinaCloud Select-AzSubscription -Subscription 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' Register-AzureRmResourceProvider -ProviderNamespace 'Microsoft.Cache'
参考资料
Get deployment operations and error message:https://docs.microsoft.com/zh-cn/azure/azure-resource-manager/templates/deployment-history?tabs=azure-portal#get-deployment-operations-and-error-message
Register-AzureRmResourceProvider:https://docs.microsoft.com/en-us/powershell/module/azurerm.resources/register-azurermresourceprovider?view=azurermps-6.13.0
当在复杂的环境中面临问题,格物之道需:浊而静之徐清,安以动之徐生。 云中,恰是如此!