There were error(s) encountered during the deployment:
The artifact 'network_deploy_spoke' of type 'Template' failed to deploy due to the following error: Template deployment failed with error [
{ "code": "SubscriptionNotRegistered", "message": "Subscription XXX is not registered with NRP." },
{ "code": "SubscriptionNotRegistered", "message": "Subscription XXX is not registered with NRP." },
{ "code": "SubscriptionNotRegistered", "message": "Subscription XXX is not registered with NRP." },
{ "code": "SubscriptionNotRegistered", "message": "Subscription XXX is not registered with NRP." } ]
2条答案
按热度按时间tvmytwxo1#
Microsoft.Network
资源提供程序未注册相关订阅。您可以查看文档以启用它:
注册资源提供程序
jvlzgdj92#
在我的例子中,我在应用蓝图时出错:
字符串
因此,正如在文档中提到的,下面使用它来查找和比较
NotRegistered
提供程序。Get-AzResourceProvider -ListAvailable | Where-Object RegistrationState -eq "NotRegistered" | Select-Object ProviderNamespace, RegistrationState | Sort-Object ProviderNamespace
个然后,我就用下面的方法解决了这个问题:
型