azure-function-app

How to retrieve storage account key using powershell function app?

喜欢而已 提交于 2020-06-09 05:31:05
问题 I'm using powershell function app to retrieve storage account key but i'm not able to access resources .Please help me . $resourceGroup = "DemoResourceGroup" $AccountName = "Demo" $Key = (Get-AzStorageAccountKey -ResourceGroupName $resourceGroup -Name $AccountName) Write-Host "storage account key 1 = " $Key I'm getting following error : 2020-05-14T14:00:05Z [Error] ERROR: Get-AzStorageAccountKey : 'this.Client.SubscriptionId' cannot be null. At D:\home\site\wwwroot\TimerTrigger1\run.ps1:25

Azure API management and App Function backend: Backend with id 'foo' could not be found

倖福魔咒の 提交于 2020-05-31 03:45:07
问题 In my company we have identical environments for our application: IT, ST, AT and PRD. We use Terraform to deploy our Azure resources, and are currently attempting to set up an API management solution which passes calls to a Function App backend. The set up is fairly simple, we have a series of APIs declared, and in their backend policies we declare this bit: <policies> <inbound> <set-backend-service id="apim-generated-policy" backend-id="function-at" /> </inbound> </policies> In IT/ST we have

Azure API management and App Function backend: Backend with id 'foo' could not be found

可紊 提交于 2020-05-31 03:44:13
问题 In my company we have identical environments for our application: IT, ST, AT and PRD. We use Terraform to deploy our Azure resources, and are currently attempting to set up an API management solution which passes calls to a Function App backend. The set up is fairly simple, we have a series of APIs declared, and in their backend policies we declare this bit: <policies> <inbound> <set-backend-service id="apim-generated-policy" backend-id="function-at" /> </inbound> </policies> In IT/ST we have

Sending Proactive Messages from Azure functions to botservice - node

泄露秘密 提交于 2020-05-12 09:11:20
问题 I am using botframework v4, but coming over from v3, I have not found any documentation that is similar to the code I use below but for v4, regarding sending proactive messages from Azure Function App Below is the code I previously used but am having trouble adapting: var builder = require('botbuilder'); // setup bot credentials var connector = new builder.ChatConnector({ appId: process.env.MICROSOFT_APP_ID, appPassword: process.env.MICROSOFT_APP_PASSWORD }); module.exports = function

How to get latest deployment date of a Function App? Maybe via the Azure REST api?

冷暖自知 提交于 2020-04-30 06:32:06
问题 Like the title says, I need to get the latest deployment date of a function app. I'm trying different Azure REST calls, but I can't find the right one. https://docs.microsoft.com/en-us/rest/api/appservice/ For deployment, I mean every time I make a change to the code and re-deploy the Function App. I'm using Linux/Python environment. I tried using this GET: https://docs.microsoft.com/en-us/rest/api/appservice/webapps/listdeployments#code-try-0 But it returns HTML content like: <html> <head>

Unity WebGL does not Post to Azure Function app: form already read error

有些话、适合烂在心里 提交于 2020-04-12 07:24:26
问题 Tested for Unity 2019.3.0f3 or 2019.3.0f5 or 2019.3.9 and Azure Functions V3. I Post from a Unity WebGL project to an azure function as form. I can't get the post into variables in the Function app: the Function app throws http 500 with "Unexpected end of Stream, the content may have already been read by another component.". So when webgl project is run on browser, chrome shows 500 internal error; firefox doesn't show the data on console but neither shows the error but you can see http 500

“An attempt was made to access a socket in a way forbidden by its access permissions” when accessing localhost from inside an Azure Function

好久不见. 提交于 2020-01-24 10:29:08
问题 Disclaimer : It's a cliche but it works on my machine(!) Context : Http Triggered Azure Function App Running on Windows With a "Free Tier" option. Details : I have an Azure Function App that host and runs a JAR file that spins up a Grizzly server which basically serves a JAVA app hosted in localhost:8080 The function app manages to start up the JAVA app by simply using. The JAVA app is called Open Trip Planner and it runs in a Grizzly server. Process.Start(javaPath, "<<JAR OPTIONS HERE>>");

Azure functions stopped working after Core 3.0 update

≡放荡痞女 提交于 2020-01-11 07:30:08
问题 The code is working in Core 3.0 preview7 version, but after updating to 3.0 Azure functions started giving an error. The error comes if I try to access builder service object. Also not able to debug the issue. Also tried updating Microsoft.Extensions.DependencyInjection 3.0 but still the same error. public class Startup : FunctionsStartup { public override void Configure(IFunctionsHostBuilder builder) { var descriptor = builder.Services.FirstOrDefault(d => d.ServiceType == typeof

Azure function apps with Python one time initialization

蹲街弑〆低调 提交于 2019-12-11 13:35:12
问题 I'm using Azure function apps with Python. I have two dozen function apps that all use a Postgres DB and Custom Vision. All function apps are setup as HttpTriggers. Right now, when a function is triggered, a new database handler (or custom vision handler) object is created, used and terminated when the function app call is done. It seems to be very counterproductive to instantiate a new objects on every single request that comes in. Is there a way to instantiate shared objects once and then

Azure Function App - trying to publish to a v1 function app from v2 tooling

纵然是瞬间 提交于 2019-12-11 06:47:33
问题 I've created and successfully tested a Function App. It requires the .net Framework because of a legacy library, and is set to use run-time version ~1. Publishing directly from Visual Studio 2017 using the publishing profile works normally. However, attempting to publish with the Azure CLI is giving me grief. Following the MS article here: https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-azure-function-azure-cli azure-cli v2.0.64 azure-functions-core-tools@2.7