azure-functions

Azure functions deploy from github actions results in Error: connect ECONNREFUSED 127.0.0.1:443

女生的网名这么多〃 提交于 2021-01-29 08:11:37
问题 I have the following yaml file in my .github/workflows folder which I got from here. name: Deploy Python project to Azure Function App on: [push] env: AZURE_FUNCTIONAPP_NAME: zypp-covid # set this to your application's name AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root PYTHON_VERSION: '3.8' # set this to the python version to use (supports 3.6, 3.7, 3.8) jobs: build-and-deploy: runs-on: ubuntu-latest steps: - name:

Azure Functions - Value cannot be null. (Parameter 'connectionString')

邮差的信 提交于 2021-01-29 05:43:41
问题 I was trying to setup simple Azure Function to read a XML stream and sync it back to the database. My plan was to use a Time Trigger to execute the function once per day. Howerver, things are not looking great. I'm getting the following error, even if I don't use a database: [Error] Executed 'Functions.<func-name>' (Failed, Id=<func-id>, Duration=1ms)Value cannot be null. (Parameter 'connectionString') I'm currently trying to execute the following function: module.exports = async function

Trigger Jenkins job remotely from Azure Functions / Azure VM

匆匆过客 提交于 2021-01-29 05:26:22
问题 Am pretty new with Jenkins and just simply can't get this to work. I have been browsing the net for an answer but have not found an answer, or might not have understood what I should do. I have Jobs in Jenkins that are currently scheduled (Python scripts). But one of these needs to be converted to be triggered remotely via URL. This I have been able to achieve and everything works fine when I am using the URL to trigger the Job from within our network at the office (Python, CMD, Browser,

Azure Function - trigger Python script containing Azure CLI commands

眉间皱痕 提交于 2021-01-29 04:04:55
问题 I have a python script for provisioning infrastructure in Azure - IaC. This script is using mostly the Python SDK, but is also running multiple Azure CLI commands - it is needed at times when I didn't find an equivalent command in the Python SDK. My goal is to trigger this script on-demand using Azure Functions. When testing the Azure Function locally, everything works fine as I have Azure CLI installed on my machine, however, when I publish it to Azure functions, I will run into an error

Azure function proxy returns error 500

时光毁灭记忆、已成空白 提交于 2021-01-29 03:51:06
问题 Currently I am having Azure API app located in UK but I would like to create a Proxy in HK for my users in china to access the servers without much performance impact in connecting the DB server that's allocated in EU. I just setting up the proxy functionality on Azure function, which is located in East Asia. Unfortunately, I kept getting error code 500 with the api request though postman. How can I trace the error which is causing error code 500? 回答1: Adding to Hamid's Answer, When you add

Is there a way to see when the Azure Functions Runtime was updated?

佐手、 提交于 2021-01-28 21:59:51
问题 We started seeing some new errors in one of our functions in relation to a DryIoc accessing a disposed Singleton object. There are several posts suggesting to set the FUNCTIONS_WORKER_RUNTIME to a specific version. I can see in the Azure Portal that our runtime is currently set 2.0.13759.0 which was released on June 1, 2020. There have been a few more releases since that time, which leads me to my question. I'm not necessarily saying it is the cause of our issue, but how can I tell when a

EventGrid-triggered, Python Azure Function keeps triggering after successfully running?

蓝咒 提交于 2021-01-28 18:11:46
问题 There are a couple other topics out there, but none with solutions or none pertaining to Python Functions. Background: EventGrid-triggered, Python Azure Function EventGrid messages created only when a blob is uploaded to a given Storage Account Function receives message, downloads blob from message URL and does "stuff" Function can run for several seconds/minutes (up to 120 seconds for large blobs) Example of issue: 4 files uploaded to blob container in correct Storage Account Function

Azure Servicebus Queue function trigger called twice

做~自己de王妃 提交于 2021-01-28 18:02:00
问题 I have an Azure function with a ServiceBusTrigger that is being called twice when it is deployed to Azure. It is very easy to reproduce. Just create a new ServiceBus Trigger function and add a message to the queue. Here's the code to send the message: static async Task Main(string[] args) { IQueueClient qc = new QueueClient(_sbConnString, "testing"); string data = "hello"; var msg = new Message(Encoding.UTF8.GetBytes(data)); await qc.SendAsync(msg); await qc.CloseAsync(); } Here's the

Azure Servicebus Queue function trigger called twice

≯℡__Kan透↙ 提交于 2021-01-28 17:47:22
问题 I have an Azure function with a ServiceBusTrigger that is being called twice when it is deployed to Azure. It is very easy to reproduce. Just create a new ServiceBus Trigger function and add a message to the queue. Here's the code to send the message: static async Task Main(string[] args) { IQueueClient qc = new QueueClient(_sbConnString, "testing"); string data = "hello"; var msg = new Message(Encoding.UTF8.GetBytes(data)); await qc.SendAsync(msg); await qc.CloseAsync(); } Here's the

Working with Python Files in Azure Function - Read Only File System

对着背影说爱祢 提交于 2021-01-28 14:54:39
问题 New to Azure functions, but looking to utilize a Function in an ADF pipeline to call out to a third party and write the json back for ingestion. However, I receive Result: Failure Exception: OSError: [Errno 30] Read-only file system: ... "/home/site/wwwroot/AzureFunctionFileTest/ init .py", line 10, in main with open('test.json', 'w') as file. My script is below: logging.info('Python HTTP trigger function processed a request.') logging.info('opening file') with open('test.json', 'rb') as file