我正在使用以下SendGrid资产部署ARM模板:
{
"name": "[variables('sendgridAccountName')]",
"type": "Sendgrid.Email/accounts",
"location": "[resourceGroup().location]",
"apiVersion": "2015-01-01",
"plan": {
"name": "free",
"publisher": "Sendgrid",
"product": "sendgrid_azure",
"promotionCode": ""
},
"properties": {
"password": "[parameters('emailPassword')]",
"acceptMarketingEmails": "0",
"firstname": "",
"lastname": "",
"email": ""
}
}
失败,并显示以下错误消息:
New-AzureRmResourceGroupDeployment : 14:39:58 - Resource Sendgrid.Email/accounts 'motherstaging' failed with message '{
"error": {
"code": "AccountLimitReached",
"message": "The maximum number of allowed accounts was reached."
}
}'
At D:\Work\ExcelWraps\src\Deploy\ManualDeploy.ps1:113 char:5
+ New-AzureRmResourceGroupDeployment -Name ((Get-ChildItem $templat ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet
我以前已经部署了其中的几个,这是在没有任何SendGrid的新资源组中。我在互联网上找不到有关此错误的任何信息。该消息是什么意思,为什么会发生,该怎么办?
答案 0 :(得分:2)
简而言之:您已达到订阅下(免费)SendGrid帐户的最大数量:
每个Azure订阅最多只能有2个SendGrid帐户。出于安全和合规性原因存在此限制,以防止滥用。
来源:下的SendGrid documentation仍然有问题吗?
如果确实需要两个以上的SendGrid帐户,请考虑打开另一个Azure订阅以容纳该帐户。