gpt4 book ai didi

azure - 是否可以通过 Azure CLI 创建 SendGrid 帐户?

转载 作者:行者123 更新时间:2023-12-04 04:29:09 24 4
gpt4 key购买 nike

我见过的每个教程和资源都要求您通过 GUI 创建 SendGrid 帐户,但我希望能够使用 cli。可能吗?

类似于:

az sendgrid create

最佳答案

虽然您无法使用 Azure Cli 创建 SendGrid 帐户,但您可以使用 ARM 模板创建一个帐户,如下所示

{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
"type": "string"
},
"location": {
"type": "string"
},
"plan_name": {
"type": "string"
},
"plan_publisher": {
"type": "string"
},
"plan_product": {
"type": "string"
},
"plan_promotion_code": {
"type": "string"
},
"password": {
"type": "secureString"
},
"email": {
"type": "string"
},
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"company": {
"type": "string"
},
"website": {
"type": "string"
},
"acceptMarketingEmails": {
"type": "string"
}
},
"resources": [
{
"apiVersion": "2015-01-01",
"name": "[parameters('name')]",
"type": "Sendgrid.Email/accounts",
"location": "[parameters('location')]",
"plan": {
"name": "[parameters('plan_name')]",
"publisher": "[parameters('plan_publisher')]",
"product": "[parameters('plan_product')]",
"promotionCode": "[parameters('plan_promotion_code')]"
},
"properties": {
"password": "[parameters('password')]",
"acceptMarketingEmails": "[parameters('acceptMarketingEmails')]",
"email": "[parameters('email')]",
"firstName": "[parameters('firstName')]",
"lastName": "[parameters('lastName')]",
"company": "[parameters('company')]",
"website": "[parameters('website')]"
}
}
]

然后你可以使用az group deployment create配置您的模板。

关于azure - 是否可以通过 Azure CLI 创建 SendGrid 帐户?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43240672/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com