How to resolve “No resources of this type found under this subscription” While call an azure function in Logic App
Introduction
Working with azure logic app is amazing, where it provides us to create our own automated workflows with the help of designer by selecting prebuilt operations. Basically it consists of two kind of built in connectors
- Triggers
- Actions
In one of my use cases, when I click azure function operation and tried to call azure function, I got this issue "No resource of this type found under this subscription". In this article, I will drive you to fix this issue in Azure Logic App.
Built in Azure functions
Azure functions are very powerful in serverless computing, we can perform calculations in logic app workflow. It can also compute or format the fields in logic app workflow. Let's try to implement this simple use case in Azure Logic App for better understandingCreate your sampleworkflow in azure logic app and you could able to see designer menu to orchestrate your services
Create Http Request Trigger
Create Azure Function through VS
- [FunctionName("ComputeTestFunc")]
- public static async Task<IActionResult> Run(
- [HttpTrigger(AuthorizationLevel.Function, "get", "post",
- Route = null)] HttpRequest req,
- ILogger log)
- {
- string firstname = req.Query["firstname"];
- string lastname = req.Query["lastname"];
- var name = string.Concat(firstname, lastname);
- return new OkObjectResult(name);
- }
Publish this function to your azure cloud
Now we got that issue
How to fix No Resource issue
Now Go to API -> CORS -> Add '*' -> then saveNow repeat steps provided in create azure functions in logic app and provide connection name and then click create button
Then Provide Method Parameter value as 'GET'
Choose another action next to call azure function action
Our Workflow is ready to test now, to check the output copy the workflow url into Postman, select Get Request and paste the URL
rename firstname and lastname with expected values in relative path
We got the expected result. Hope this article is useful to you.
rename firstname and lastname with expected values in relative path
We got the expected result. Hope this article is useful to you.
Comments
Post a Comment