我正在使用 ARM 模板创建 EventGrid API 连接。它已成功创建,但是,我仍然必须通过 Azure 门户手动对其进行身份验证。
这是我的 ARM 模板:
"resources": [
{
"type": "Microsoft.Web/connections",
"apiVersion": "2016-06-01",
"name": "[parameters('azureEventGridConnectionAPIName')]",
"location": "[resourceGroup().location]",
"properties": {
"api": {
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', resourceGroup().location, '/managedApis/', 'azureeventgrid')]"
},
"displayName": "[parameters('azureEventGridConnectionAPIName')]"
},
"dependsOn": []
}
]
我是否遗漏了模板中负责立即验证连接的内容?
有没有办法使用例如 Azure PowerShell 来验证该连接,以便我可以自动化该过程?