azure-functions

Why Java Azure Function App freezes when trying to access Azure datalake?

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-29 12:28:00
问题 I am developing a Java Azure function that needs to download a file from Azure Datalake Gen2. When the function tries to read the file, it freezes and no exception is thrown, and nothing is written to the console. I am using the azure-storage-file-datalake SDK for Java dependency and this is my code: import com.azure.storage.common.StorageSharedKeyCredential; import com.azure.storage.file.datalake.DataLakeDirectoryClient; import com.azure.storage.file.datalake.DataLakeFileClient; import com

Azure Function - Unzip password protected file using python code

泄露秘密 提交于 2021-01-29 10:30:31
问题 I am trying to unzip password protected file which is stored on Azure Blob container. I want to extract it on Azure Blob itself. I have created a Azure Function App using Python (currently it is Timer Control event based) to test things - Following is my code - I am not sure what would be the correct way to achieve this import datetime import os, uuid import azure.functions as func import azure.storage.blob from zipfile import ZipFile from azure.storage.blob import BlobServiceClient,

Azure Function Status Code 500 internal server error

情到浓时终转凉″ 提交于 2021-01-29 09:58:38
问题 I have a logic app that uses azure function as a http trigger and gets a return string. When the azure function is to receive a Base64 string, create a file with the information and uploads to the assigned storage account, I keep getting status code 500 internal server error from the Azure function every time I run it. After many trial and error I deduced the problem occurs from when the file is to be created from the Base64 string and when the blob container client is created. So Help me

Dynamically send blobs from azure storage account to email using azure logic apps

∥☆過路亽.° 提交于 2021-01-29 09:31:22
问题 I have files getting stored in my Azure Blob storage account regularly. I want to send these blob file contents as attachments via email. I have established a workflow using Azure Logic Apps. Here's the workflow: I am able to send the blob file, but I need to specify the name of the file always. Is there any way I can get all the file contents dynamically without having to specify the name manually? 回答1: Just add Get Blob Metadata using path action to get the name of your file: 来源: https:/

Azure function-Timer unscheduledInvocationReason

耗尽温柔 提交于 2021-01-29 09:24:03
问题 I am trying to diagnose this error when my timer function runs. I have not found much help on this on google search UnscheduledInvocationReason: IsPastDue, OriginalSchedule: 2019-06-13T15:13:00.0000000-07:00 It seems like the process just stops when this error comes. Anyone have any insight on this? 回答1: The IsPastDue flag is passed to your azure function to indicate if the timer was overdue or not. A timer function can run late in some scenarios like the app service was restarted, in this

Azure function binding for Azure data lake (python)

你说的曾经没有我的故事 提交于 2021-01-29 09:19:26
问题 I am having a requirement like I want to connect to my Azure data lake v2(ADLS) from Azure functions, read file, process it using python(pyspark) and write it again in Azure data lake. So my input and output binding would be to ADLS. Is there any ADLS binding for Azure function in python available? Could somebody give any suggestions on this? Thank, Anten D 回答1: Update: 1, When we read the data, we can use blob input binding. 2, But when we write the data, we can not use blob output binding.

Azure Function: Unzip file works in debug but not in production

拈花ヽ惹草 提交于 2021-01-29 08:44:09
问题 This is my very first Azure function. I need to unzip a file after it is uploaded on an Azure Storage Blob. I found this video https://www.youtube.com/watch?v=GRztpy337kU and this post: https://msdevzone.wordpress.com/2017/07/07/extract-a-zip-file-stored-in-azure-blob. Using Visual Studio 2017 with C#, all works fine when i run the function in Visual Studio but when i deploy it to Azure, nothing is extracted. If i watch the log all seems ok. Here is my code: using System; using System.IO;

Cannot bind parameter, cause the parameter type is not supported by the binding (HttpTrigger of Azure Functions)

心不动则不痛 提交于 2021-01-29 08:40:50
问题 I have to migrate a part of a monolith to be able to run the migrated part independently, but i'm new in azure functions. Multiple HttpTriggers contain an a unsupported parameter type. ( IMultiplierService ) public static async Task<IActionResult> GetMultiplier( [HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "multipliers/{id:guid}")] HttpRequest req, string id, IMultiplierService multiplierService){ ... } I read online and understand that the string id is a reference to the {id

How to populate Dynamics 365 lookups with text value from Azure Logic App?

半腔热情 提交于 2021-01-29 08:20:48
问题 I am creating an Azure Logic app which takes data from an external source and populates Dynamics 365. In the Dynamics 365 entity, I have 4 lookup fields which I need to populate. But from the external source, I am getting data in text format, which means I need to search value for lookup fields by text instead of Guid. I am doing this by creating an Azure function but want to know if there is any possibility to achieve this with no code customisation? External data source can only send text

How to handle Azure Python Function exception handling?

一个人想着一个人 提交于 2021-01-29 08:20:45
问题 I'm new to Python exception handling. How do I correctly try the following, except if .get_entity fails, but pass if Status 200 ? Here is where I'm at: Its not correct though. Hoping you could elaborate with an example. from azure.cosmosdb.table.tableservice import TableService from azure.cosmosdb.table.models import Entity from azure.common import AzureMissingResourceHttpError def get_table_row(TableName, PartitionKey, RowKey): try: table_lookup = table_service.get_entity(TableName,