azure-functions

How to specify multiple file types for Azure Function Blob Trigger input binding?

风格不统一 提交于 2021-01-07 03:53:55
问题 I'm looking to only allow the upload of specific filetypes to Azure Storage to trigger an Azure Function. Current function.json file: { "scriptFile": "__init__.py", "bindings": [{ "name": "myblob", "type": "blobTrigger", "direction": "in", "path": "{name}.json", "connection": "storage-dev" }] } Would I just add another path value like this... "path": "{name}.json", "path": "{name}.csv" ...or an array of values like this... "path": [ "{name}.csv", "{name}.json" ] Can't seem to find an example

Is it possible to use AzureAppConfiguration together with an Azure Function ServiceBusTrigger

懵懂的女人 提交于 2021-01-04 12:31:32
问题 Today I have an Azure Function with the ServiceBusTrigger that reads values from my settings file. Like this: [FunctionName("BookingEventListner")] public static async Task Run([ServiceBusTrigger("%topic_name%", "%subscription_name%", Connection = "BookingservicesTopicEndpoint")]Microsoft.Azure.ServiceBus.Message mySbMsg, ILogger log) { But I am using Azure App Configuration with other projects in this solution and would like to store the endpoint, topic and subscriptname into the Azure App

Azure durable functions and retention of data

落花浮王杯 提交于 2021-01-04 12:30:40
问题 I can see azure durable functions uses a storage account for managing state and instrumentation. When running durable functions in an environment with a high amount of data tables and queues will get larger and larger, and properly slower and slower. Does durable function clean logs them self, or is this a task you need to do your self? 回答1: After researching this, it appear that it's up to the developer to implement their own handler for this. I read through the github issue the accepted

Azure durable functions and retention of data

一世执手 提交于 2021-01-04 12:28:19
问题 I can see azure durable functions uses a storage account for managing state and instrumentation. When running durable functions in an environment with a high amount of data tables and queues will get larger and larger, and properly slower and slower. Does durable function clean logs them self, or is this a task you need to do your self? 回答1: After researching this, it appear that it's up to the developer to implement their own handler for this. I read through the github issue the accepted

Azure durable functions and retention of data

心已入冬 提交于 2021-01-04 12:27:54
问题 I can see azure durable functions uses a storage account for managing state and instrumentation. When running durable functions in an environment with a high amount of data tables and queues will get larger and larger, and properly slower and slower. Does durable function clean logs them self, or is this a task you need to do your self? 回答1: After researching this, it appear that it's up to the developer to implement their own handler for this. I read through the github issue the accepted

How can I deploy multiple copies of an Azure function with different parameters

こ雲淡風輕ζ 提交于 2021-01-04 07:36:51
问题 I am currently running an Azure function to periodically pull data from a REST API and copy the data to a set of files. It works fine but is currently architected to iterate through 100 different parameters. Ideally the loads would be independent. Is there any way of deploying an Azure function multiple times with a different static parameter for each instance? Thanks 回答1: One possible solution is to use Application Settings to store your parameters if you want to keep your current

Custom properties in azure function application insights

送分小仙女□ 提交于 2021-01-03 06:56:20
问题 I am monitoring a lot of applications in Azure Application Insights. In all of them I add some custom properties to events, traces etc so I can filter/group in the portal. Is it possible to add the same custom properties to the built in application insight integration with Azure Functions? Have read the documentation but can't find anything about it. Edit: I maintain a large number of applications hosted in various environments. About 15 of these are Azure Functions. From all my applications

Custom properties in azure function application insights

风流意气都作罢 提交于 2021-01-03 06:55:28
问题 I am monitoring a lot of applications in Azure Application Insights. In all of them I add some custom properties to events, traces etc so I can filter/group in the portal. Is it possible to add the same custom properties to the built in application insight integration with Azure Functions? Have read the documentation but can't find anything about it. Edit: I maintain a large number of applications hosted in various environments. About 15 of these are Azure Functions. From all my applications

Azure Function Read local.settings.json to object

半世苍凉 提交于 2021-01-03 06:20:22
问题 I know i could add all my environment vars under the values {} section of local.settings.json. I am however trying to keep a tidy home and would like if I could do something like this. local.settings.json { "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "UseDevelopmentStorage=true", "AzureWebJobsDashboard": "", "Hello": "world" }, "ClientConfiguration": { "this": "that", "SubscriberEndpoint": "", "Username": "", "Password": "", "ObjectEndpoint": "" } } in my code i have var config =

Azure Function Read local.settings.json to object

自闭症网瘾萝莉.ら 提交于 2021-01-03 06:19:47
问题 I know i could add all my environment vars under the values {} section of local.settings.json. I am however trying to keep a tidy home and would like if I could do something like this. local.settings.json { "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "UseDevelopmentStorage=true", "AzureWebJobsDashboard": "", "Hello": "world" }, "ClientConfiguration": { "this": "that", "SubscriberEndpoint": "", "Username": "", "Password": "", "ObjectEndpoint": "" } } in my code i have var config =