Reputation: 1239
I need to create a custom resource provider with an Azure function in the backend. 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
I am confused about how I must design this Azure function. I want to understand how a resource of custom resource type is provisioned through ARM template.
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?
If so how can I put a long running operation here? Can my POST call give a response after 1.5 hours of processing?
Or in custom resource provisioning through ARM template, would POST call be made followed by GET calls till the GET call returns 200 OK?
Upvotes: 0
Views: 176
Reputation: 1239
Here is a link which answers the question - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md
Upvotes: 0