Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure 存储帐户blob创建事件网格订阅的ARM模板_Azure_Azure Storage_Arm Template_Azure Eventgrid_Azure Template - Fatal编程技术网

Azure 存储帐户blob创建事件网格订阅的ARM模板

Azure 存储帐户blob创建事件网格订阅的ARM模板,azure,azure-storage,arm-template,azure-eventgrid,azure-template,Azure,Azure Storage,Arm Template,Azure Eventgrid,Azure Template,我在存储帐户上为blob创建的事件创建了事件网格订阅。我想使用ARM模板创建相同的东西,但遇到了问题 观察- 运行以下模板将在资源组而不是存储帐户上创建事件网格订阅 根据问题#和#,应使用提供程序作为类型。但“提供者”类型在apiversion“2020-04-01-preview”中无效 下面是一个官方示例,您可以使用该示例: { "type": "Microsoft.Storage/storageAccounts/providers/eventSubscriptions",

我在存储帐户上为blob创建的事件创建了事件网格订阅。我想使用ARM模板创建相同的东西,但遇到了问题

观察-

  • 运行以下模板将在资源组而不是存储帐户上创建事件网格订阅
  • 根据问题#和#,应使用提供程序作为类型。但“提供者”类型在apiversion“2020-04-01-preview”中无效

  • 下面是一个官方示例,您可以使用该示例:

    {
        "type": "Microsoft.Storage/storageAccounts/providers/eventSubscriptions",
        "name": "[concat(parameters('storageName'), '/Microsoft.EventGrid/', parameters('eventSubName'))]",
        "apiVersion": "2018-01-01",
        "dependsOn": [
            "[parameters('storageName')]"
        ],
        "properties": {
            "destination": {
                "endpointType": "WebHook",
                "properties": {
                    "endpointUrl": "[parameters('endpoint')]"
                }
            },
            "filter": {
                "subjectBeginsWith": "",
                "subjectEndsWith": "",
                "isSubjectCaseSensitive": false,
                "includedEventTypes": [
                    "All"
                ]
            }
        }
    }
    
    请注意资源类型和资源的名称


    根据vs代码扩展工具,上述“类型”无效。但这在部署时起作用。。谢谢:)不要真正关注vscode中的intellisense,它是基于模式的。模式不好
    {
        "type": "Microsoft.Storage/storageAccounts/providers/eventSubscriptions",
        "name": "[concat(parameters('storageName'), '/Microsoft.EventGrid/', parameters('eventSubName'))]",
        "apiVersion": "2018-01-01",
        "dependsOn": [
            "[parameters('storageName')]"
        ],
        "properties": {
            "destination": {
                "endpointType": "WebHook",
                "properties": {
                    "endpointUrl": "[parameters('endpoint')]"
                }
            },
            "filter": {
                "subjectBeginsWith": "",
                "subjectEndsWith": "",
                "isSubjectCaseSensitive": false,
                "includedEventTypes": [
                    "All"
                ]
            }
        }
    }