在 api 版本 2018-01-01 的命名空间 Microsoft.storage 中找不到资源类型 - Azure Powershell
The resource type could not be found in the namespace Microsoft.storage for api version 2018-01-01- Azure Powershell
我正在 Azure 存储上创建指标警报,因为我有一个 ARM 模板
当我通过 Azure Powershell 执行它时,我收到如下所述的错误,我不确定是什么导致了这个问题。
POWERSHELL 命令:New-AzResourceGroupDeployment -name "StorageBlobDeployment" -ResourceGroupName TestStorage-RG -TemplateFile "C:\ARM\azureDeploy.storage.json" -TemplateParameterFile "C:\ARM\azureDeploy.storage.parameters.json"
尽管当我通过 Portal 部署相同的 ARM 模板时它工作正常。
错误如下:
new-AzResourceGroupDeployment : 2:37:34 PM - Resource microsoft.insights/metricAlerts '-storage_account_ingress_traffic_alert' failed with message '{
"Code": "BadRequest",
"Message": "The resource type could not be found in the namespace 'Microsoft.storage' for api version '2018-01-01'."
}
我想发生这种情况是因为您的 Azure Powershell 已过时。更新它,它会工作得很好。
我正在 Azure 存储上创建指标警报,因为我有一个 ARM 模板 当我通过 Azure Powershell 执行它时,我收到如下所述的错误,我不确定是什么导致了这个问题。
POWERSHELL 命令:New-AzResourceGroupDeployment -name "StorageBlobDeployment" -ResourceGroupName TestStorage-RG -TemplateFile "C:\ARM\azureDeploy.storage.json" -TemplateParameterFile "C:\ARM\azureDeploy.storage.parameters.json"
尽管当我通过 Portal 部署相同的 ARM 模板时它工作正常。
错误如下:
new-AzResourceGroupDeployment : 2:37:34 PM - Resource microsoft.insights/metricAlerts '-storage_account_ingress_traffic_alert' failed with message '{
"Code": "BadRequest",
"Message": "The resource type could not be found in the namespace 'Microsoft.storage' for api version '2018-01-01'."
}
我想发生这种情况是因为您的 Azure Powershell 已过时。更新它,它会工作得很好。