azure-function-app

HTTP 500 error when importing Meraki SDK into python Azure function app

白昼怎懂夜的黑 提交于 2019-12-10 23:34:13
问题 When I import Meraki: from meraki.meraki import Meraki it causes a HTTP 500 error. This works as expected on my local machine but when uploaded to my Python Azure Function app it causes the HTTP 500 error. I suspect that this is because the Meraki SDK can be installed on my local machine but not on the Azure function app? How could this be installed within the Azure function app? Any help with this would be much appreciated! 来源: https://stackoverflow.com/questions/56564225/http-500-error-when

Azure CLI commands not working inside azure function apps (portal)

China☆狼群 提交于 2019-12-04 06:30:12
问题 I have powershell scripts which is running locally.But those scripts not running insite function apps > powershell (windows) machine. az login --service-principal -u $ServicePrincipalId -p $ServicePrincipalPass --tenant $ServicePrincipalTenant Getting below when i run the script ERROR: The term 'az' is not recognized as the name of a cmdlet, function, script file, or operable program. since i dont have az cli installed in the windows machine, i have added below line to install az command in

Azure CLI commands not working inside azure function apps (portal)

。_饼干妹妹 提交于 2019-12-02 10:13:22
I have powershell scripts which is running locally.But those scripts not running insite function apps > powershell (windows) machine. az login --service-principal -u $ServicePrincipalId -p $ServicePrincipalPass --tenant $ServicePrincipalTenant Getting below when i run the script ERROR: The term 'az' is not recognized as the name of a cmdlet, function, script file, or operable program. since i dont have az cli installed in the windows machine, i have added below line to install az command in my script. Install-Module -Name Az -AllowClobber -Scope CurrentUser Getting access issue while

Azure functions stopped working after Core 3.0 update

六眼飞鱼酱① 提交于 2019-12-01 13:38:39
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(IConfiguration)); // error after adding this var currentDirectory = $"{Environment.GetEnvironmentVariable("HOME")}\