is there an Azure Cli command for "Configure subscription for IoT Hub events"? I cannot find any command on Azure CLI for IOT to create such event.
Goal: automate deployment of IOT Hub and hook up event to Azure Functions
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@boreys Thanks for the feedback! We are currently investigating and will update you shortly.
@boreys Here is the complete list of Azure CLI commands to manage event subscriptions for an Event Grid topic, domain, domain topic, Azure subscription, resource group or for any other Azure resource that supports event notifications.
Do let us know if you need further help.
@AshokPeddakotla-MSFT I found that documentation too, there is no command for creating an event subscription of IOT Hub Event for a Function App
Adding Author @robinsh for further clarifications.
@robinsh is this command available or could be a feature request?
@AshokPeddakotla-MSFT @robinsh @aablackm
IOT Hub Event generate this partial template which is still confusing, it does not tell me where to run this template. I am looking for a complete ARM template or Azure CLI that does the following:
{
"name": "iot-to-functionapp",
"properties": {
"topic": "/subscriptions/[id]/resourceGroups/my-resource-dev/providers/Microsoft.Devices/IotHubs/iot-hub-dev",
"destination": {
"endpointType": "AzureFunction",
"properties": {
"resourceId": "/subscriptions/[id]/resourceGroups/my-resource-dev/providers/Microsoft.Web/sites/myFunctionApp/functions/myDateRecorder",
"maxEventsPerBatch": 1,
"preferredBatchSizeInKilobytes": 64
}
},
"filter": {
"includedEventTypes": [
"Microsoft.Devices.DeviceCreated"
],
"advancedFilters": []
},
"labels": [],
"eventDeliverySchema": "EventGridSchema"
}
}
I'm confused about what you're looking for. You talk about CLI then change in mid-stream to discuss what looks like an Azure Resource Manager template? I don't know what those two things have to do with each other. Is this what you are trying to do: _create an event subscription of IOT Hub Event for a Function App using CLI _ ? Are you trying to use Event grid to subscribe to an IoT Hub event and when the event is triggered, run a function app?
@AshokPeddakotla-MSFT , @boreys -- This doesn't seem to be a documentation issue, rather, I think the question here is whether certain functionality exists. That would be a question better addressed directly to the product team, ether by filing an issue on stack overflow or by filing an issue against the appropriate Github repo. @AshokPeddakotla-MSFT I'm assigning the issue back to you. Can you please work with @boreys to determine where the best place to file this request is? Once you have filed it there, can you please close this issue as it really doesn't seem to be doc-related? Thanks!
Thanks for the heads up, Jimaco,
@boreys I would recommend you to create a thread on the forum - Stack Overflow for further help on this issue.
Once you post your issue on forums, it will have visibility across the community which is a better suited audience for such types of issues. Please create a Forum thread and post it's link here and tag me.
I will now proceed to close this issue. Feel free to comment if you have any other queries.
After one month, the response is go to Stackoverflow.
The goal is clear and written in the question and nobody understand it.
I found the question particularly confusing, as noted above in my response from several days ago, and I didn't get any answers or clarification that would help me understand. We would love to be able to provide an answer, but don't have enough information. I think @JimacoMS3 was right, and whatever it is you're asking for doesn't exist or can't be done, and the best way to find that out is to ask on stack overflow. The product team does follow problems that people post and respond.