事件订阅存储队列ARM模板

时间:2020-04-11 00:31:07

标签: azure templates arm

"resources": [
        {
            "name": "[concat(parameters('eventGridTopicName'), '/Microsoft.EventGrid/', parameters('eventGridSubscriptionName'))]",
            "type": "Microsoft.EventGrid/topics/providers/eventSubscriptions",
            "location": "France central",
            "apiVersion": "2018-01-01",
            "properties": {
                "destination": {
                    "endpointType": "StorageQueue",
                    "properties": {                 
                        "resourceId": "/subscriptions/57a94d8d-cece-4585-af8a-e0660dd3eeac/resourceGroups/APP-Integration-InterfaceEchange-RG/providers/Microsoft.Storage/storageAccounts/storageaccounttestinteg",
                        "queueName":"testqueueintg"                     
                    }
                },
        "filter": {
            "advancedFilters": []
        },
        "labels": [],
        "eventDeliverySchema": "EventGridSchema"
        }
    }
]

这是我用于部署事件订阅的资源,但出现此错误:

|资源Microsoft.EventGrid /主题/提供者/事件订阅 | 'Eventtopictest-Integration / Microsoft.EventGrid / EventSubcriptiontest-Integration' 失败,
|消息'{“错误”:{“代码”:“ InvalidRequest”,“消息”:“无效的事件订阅 |要求:提供的网址无效。它不能为null或为空,并且应该是正确的HTTPS URL,例如 | https://www.example.com。“}}'

1 个答案:

答案 0 :(得分:0)

您使用的2018-01-01 API version不支持StorageQueue值。 2019-01-01及以后的There is support