azure-function-app

Run Azure CLI Commands from a Azure Function APP

拟墨画扇 提交于 2021-01-29 16:31:17
问题 I need suggestions on how to use azure function app to create Web app in Azure under a resource group. Is there any way from azure function app can i invoke an azure CLI to create a Resource. Thanks in advance. 回答1: Azure function does not support Azure CLI now.At present, there are several Generally available and experimental languages in Azure Function. You can use Powershell instead. If you want to create resources using Azure functions, you can use the REST API to create resources and

Authorising Azure Function App Http endpoint from Data Factory

本小妞迷上赌 提交于 2021-01-29 15:18:36
问题 We are currently developing a ETL solution in Azure Data Factory that requires calling out to an Azure Function App HTTP trigger. Out Data Factory instance has a Managed Identity configured and I was wondering how I can secure the Azure Function App to only allow access from the Data Factroy Managed Identity? I have previously used Azure Function Apps System Assigned Managed Identities to access other resources (Key Vault) so I understand the basic concepts but I am struggling to understand

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,

Is automating App Registration on Azure possible through ARM Template on the User's tenant?

时光怂恿深爱的人放手 提交于 2021-01-07 02:42:25
问题 I am trying to deploy a solution as a managed application through ARM Template. For the deployment to work, I need the Client Id and Client Secret of a registered Application along with the Tenant Id. In my previous scope, I was assuming that the user would have an existing App Registered but now I want to Automate the App registration process for the user and be able to register an application having O365 API Permissions in user's tenant. Below is the approach I were following earlier. So

Azure Function successfully published but missing from Azure Portal

ⅰ亾dé卋堺 提交于 2020-12-15 06:10:55
问题 My Function app is not showing up in the Portal though it publishes successfully from local machine. Example: Success!: Failure: Tried: Visiting https:myapp.azurewebsites.net Visiting https://myapp.scm.azurewebsites.net/api/deployments Last deployment looks good: { "id": "<redacted>", "status": 4, "status_text": "", "author_email": "N/A", "author": "<redacted>", "deployer": "Push-Deployer", "message": "Created via a push deployment", "progress": "", "received_time": "2020-10-23T20:38:47

Azure Function successfully published but missing from Azure Portal

断了今生、忘了曾经 提交于 2020-12-15 06:09:25
问题 My Function app is not showing up in the Portal though it publishes successfully from local machine. Example: Success!: Failure: Tried: Visiting https:myapp.azurewebsites.net Visiting https://myapp.scm.azurewebsites.net/api/deployments Last deployment looks good: { "id": "<redacted>", "status": 4, "status_text": "", "author_email": "N/A", "author": "<redacted>", "deployer": "Push-Deployer", "message": "Created via a push deployment", "progress": "", "received_time": "2020-10-23T20:38:47

Avoid severity-level-0 logging in application insights from function app

空扰寡人 提交于 2020-12-13 03:36:31
问题 In my azure solution, I have 1 app service and 2 function apps logging to 1 application insights instance. In a specific environment I want to reduce the logging load, so I wanted to get rid of severity-level-0 logs. I am currently focusing on one of the function apps, let's call it fa1. The logging statements I add with ILogger as LogDebug do not show up in application insights, as expected. However I can see the following entries in application insights: "Poll for function '{name of

Avoid severity-level-0 logging in application insights from function app

非 Y 不嫁゛ 提交于 2020-12-13 03:32:13
问题 In my azure solution, I have 1 app service and 2 function apps logging to 1 application insights instance. In a specific environment I want to reduce the logging load, so I wanted to get rid of severity-level-0 logs. I am currently focusing on one of the function apps, let's call it fa1. The logging statements I add with ILogger as LogDebug do not show up in application insights, as expected. However I can see the following entries in application insights: "Poll for function '{name of

Azure Functions App is Read Only after publishing

烂漫一生 提交于 2020-12-12 11:18:28
问题 I have several Azure Functions Apps (c#, javascript and python) and after some time they were all randomly set to Read Only mode. The strange thing is that only one of these 3 function apps were updated before this happened. I know that this is not necessarily a problem, but I want to be able to make edits from the portal. I can't open App Service Editor I can't set the app to Read/Write from Function App Settings -> Function app edit mode I also tried using "func azure functionapp publish

Azure Functions App is Read Only after publishing

扶醉桌前 提交于 2020-12-12 11:17:07
问题 I have several Azure Functions Apps (c#, javascript and python) and after some time they were all randomly set to Read Only mode. The strange thing is that only one of these 3 function apps were updated before this happened. I know that this is not necessarily a problem, but I want to be able to make edits from the portal. I can't open App Service Editor I can't set the app to Read/Write from Function App Settings -> Function app edit mode I also tried using "func azure functionapp publish