简体   繁体   English

Azure 自定义资源提供程序长时间运行的资源创建

[英]Azure custom resource provider long running resource creation

I need to create a custom resource provider with an Azure function in the backend.我需要在后端创建一个带有 Azure 函数的自定义资源提供程序。 So my ARM template would look something like this - https://github.com/Azure/azure-quickstart-templates/blob/master/101-custom-rp-with-function/azuredeploy.json所以我的 ARM 模板看起来像这样 - https://github.com/Azure/azure-quickstart-templates/blob/master/101-custom-rp-with-function/azuredeploy.json

I am confused about how I must design this Azure function.我很困惑我必须如何设计这个 Azure 功能。 I want to understand how a resource of custom resource type is provisioned through ARM template.我想了解如何通过 ARM 模板配置自定义资源类型的资源。

When the custom resource is provisioned through ARM template, is a POST request made and response of the API would determine if the provisioning succeeded or failed?通过ARM模板配置自定义资源时,是否发出POST请求,API的响应决定配置成功还是失败?

If so how can I put a long running operation here?如果是这样,我怎么能在这里进行长时间运行的操作? Can my POST call give a response after 1.5 hours of processing?我的 POST 调用可以在 1.5 小时的处理后给出响应吗?

Or in custom resource provisioning through ARM template, would POST call be made followed by GET calls till the GET call returns 200 OK?或者在通过 ARM 模板的自定义资源配置中,是否会先进行 POST 调用,然后进行 GET 调用,直到 GET 调用返回 200 OK?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM