无法通过 ARM 模板注册命名空间 'Microsoft.AlertsManagement'
Not able to to register namespace 'Microsoft.AlertsManagement' through ARM templates
我正在尝试通过 ARM 模板构建我的基础架构和我的基础架构。但是出现以下错误。
{
"status": "Failed",
"error": {
"code": "MissingSubscriptionRegistration",
"message": "The subscription is not registered to use namespace 'Microsoft.AlertsManagement'. See https://aka.ms/rps-not-found for how to register subscriptions.",
"details": [
{
"code": "MissingSubscriptionRegistration",
"target": "Microsoft.AlertsManagement",
"message": "The subscription is not registered to use namespace 'Microsoft.AlertsManagement'. See https://aka.ms/rps-not-found for how to register subscriptions."
}
]
}
}
当我进一步检查时,我的订阅似乎没有注册到资源提供商'Microsoft.AlertsManagement'(见下图)
https://i.stack.imgur.com/wTxDD.jpg
我知道如何通过 Azure 门户并注册我的 Azure 订阅来解决此问题。但我无法通过 ARM 模板执行相同的操作。任何人都遇到过类似的问题,我该如何解决。
我认为这与
的API版本有关
"applicationInsightsApiVersion": "2015-05-01",
我不太确定可能是什么问题,我尝试更改 API 的版本但没有帮助。
注册资源提供者是在订阅级别完成的。
查看订阅级别部署ARM模板支持的资源,不可以:
Subscription deployments with ARM templates
您最好的选择是使用 Az CLI 或 Az Powershell,如下所述:
Resolve errors for resource provider registration
Az Powershell:
Register-AzResourceProvider -ProviderNamespace Microsoft.AlertsManagement
Az CLI:
az provider register --namespace Microsoft.AlertsManagement
我正在尝试通过 ARM 模板构建我的基础架构和我的基础架构。但是出现以下错误。
{
"status": "Failed",
"error": {
"code": "MissingSubscriptionRegistration",
"message": "The subscription is not registered to use namespace 'Microsoft.AlertsManagement'. See https://aka.ms/rps-not-found for how to register subscriptions.",
"details": [
{
"code": "MissingSubscriptionRegistration",
"target": "Microsoft.AlertsManagement",
"message": "The subscription is not registered to use namespace 'Microsoft.AlertsManagement'. See https://aka.ms/rps-not-found for how to register subscriptions."
}
]
}
}
当我进一步检查时,我的订阅似乎没有注册到资源提供商'Microsoft.AlertsManagement'(见下图)
https://i.stack.imgur.com/wTxDD.jpg
我知道如何通过 Azure 门户并注册我的 Azure 订阅来解决此问题。但我无法通过 ARM 模板执行相同的操作。任何人都遇到过类似的问题,我该如何解决。
我认为这与
的API版本有关 "applicationInsightsApiVersion": "2015-05-01",
我不太确定可能是什么问题,我尝试更改 API 的版本但没有帮助。
注册资源提供者是在订阅级别完成的。 查看订阅级别部署ARM模板支持的资源,不可以:
Subscription deployments with ARM templates
您最好的选择是使用 Az CLI 或 Az Powershell,如下所述:
Resolve errors for resource provider registration
Az Powershell:
Register-AzResourceProvider -ProviderNamespace Microsoft.AlertsManagement
Az CLI:
az provider register --namespace Microsoft.AlertsManagement