【问题标题】:event subscription storage queue ARM template事件订阅存储队列ARM模板
【发布时间】:2020-04-26 06:23:35
【问题描述】:
"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/topics/providers/eventSubscriptions | 'Eventtopictest-Integration/Microsoft.EventGrid/EventSubcriptiontest-Integration' 失败了
| message '{ "error": { "code": "InvalidRequest", "message": "无效的事件订阅 |请求:提供的 URL 无效。它不能为 null 或为空,并且应该是正确的 HTTPS URL,例如 | https://www.example.com。” } }'

【问题讨论】:

  • 我认为您的某个参数有问题。你能说明这个 ARM 使用了哪些参数吗?前任。 eventGridTopicName, eventGridSubscriptionName.

标签: azure templates arm


【解决方案1】:

您正在使用 2018-01-01 API version,它不支持 StorageQueue 值。 There is support2019-01-01 及以后。

【讨论】:

    猜你喜欢
    • 2020-07-18
    • 2019-11-05
    • 2020-03-31
    • 2020-09-28
    • 2019-01-17
    • 2022-11-07
    • 2017-03-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多