I'm using Azure IntelliJ Toolkit, to deploy Azure function.
This is the screenshot showing how it is getting deployed:
App Settings here is non-optional, and whatever is inserted here will override anything that already exists in Portal, as shown below:
This seems like serious bug, but wonder if there is any workaround.
Any thoughts?
Created the basic Azure Java Function Http Trigger in IntelliJ IDE and published/deployed to Azure Cloud with the default application settings:
In the Azure Portal > Function App Configuration Menu > Application Settings:
If you remove any application settings from the local IDE IntelliJ and save, the same will be in the Azure Cloud:
If you want to add more application settings, do not remove the existing ones in the IntelliJ Azure Function App Properties Window because that is local Window of the Azure Portal Function App Configuration.
For running the function project locally with the additional configuration, you have to add them in the code file of local.settings.json.
Related
I am currently deploying a C# console app as a Continuous Azure Web Job to an Azure App Service and I am using the Azure Web Jobs SDK 3.X(https://learn.microsoft.com/en-us/azure/app-service/webjobs-sdk-how-to).
The Web Job successfully deploys to the Azure App Service but the status of the Web Job is "Pending Restart". When I check the logs, the error I see is that a configuration value is being read in as NULL. I am setting this value in the App Service's configuration/Application Settings page but it seems my Web Job is unable to read it. Do these settings need to be set during deploy? Or do I need to be setting these configuration values in a different location?
My issue was that my app thought that my environment was Develop and it was looking for the appsettings.Development.json file. Once I corrected that issue, it looks like I am reading in my app settings correctly.
I have created a Linux Node JS app in Azure. I have created a Blank Azure Nodejs Web App project in Visual Studio 2022.
When I try to publish my code to the Azure app, I right click on the project > Publish > Azure, but the option for Azure App Service (Linux) is missing. I do see the option for Azure App Service (Windows).
I tried to import the publish settings. When I do the import Visual Studio 22, the configuration seems to import, but never moves on when clicking Finish. If I close the import window, then the publish profile doesn't exist (though there are some publish config changes evident in the Solution Explorer under Properties).
I did the same thing in Visual Studio 19 and it did accept the import, but it sets things as Azure App Service (Windows) and doesn't manage to get the rest of the config i.e. it doesn't work either.
I have checked my Azure App and it is for sure Linux running Node 16.
For reasons beyond my control we dont yet have a release pipeline for Azure Functions
However, I would like to be able to enable/disable functions on an environment via the portal
This does not seem to be possible
Is there a way around this?
How can I release a version that doesnt have this restriction?
The function app itself was created in the portal then I deployed into it
Use your local development environment to edit this Function App
Here are the steps to Enable/Disable the Function App through Portal
Steps:
Login to portal Azure Portal
Under the Subscription and the resource group go to the Function app created
Click on the App overview where you can able to see the Enable or Disable options.
I was trying to create Azure Functions as provided in the help link - https://blogs.msdn.microsoft.com/webdev/2016/12/01/visual-studio-tools-for-azure-functions/
I am actually creating a Evenhub trigger to write the messages to blob storage.
When I try to run the project, I am getting an error:
"Microsoft.Azure.WebJobs.Host: Error indexing method
'Functions.DashPOCEventHub'. Microsoft.WindowsAzure.Storage: Value
cannot be null."
I have put the correct values in the appsettings.json.
Can somebody help me with this error?
Also, when I try to publish the function to Azure, the appsettings.json is not being set correctly. I cannot see the values and keys when I go into the Azure UI application settings page.
appsettings.json won't create/override your web app ApplicationSettings when you deploy. You'll need to specify the ApplicationSettings for the web app explicitly.
The reason for this is so that you can use different secrets locally (appsettings.json) from what you deploy (web app appsettings).
There is more info on appsettings.json and web app Application Settings here.
Silly John, did you update the Azure CLI when you run your Function Locally? Today is on the Azure Functions Console CLI 1.0.0-beta.97.
Probably, this update solves this issue.
I am trying to chance some appsettings and the ConnectionString of an application in a certain slot in my Azure Web App.
When I try to change the config via the Application Settings on Azure portal, nothing happens.
So I found this post:
http://brian.vallelunga.com/blog/chaining-azure-web-config-transforms-when-deploying-from-source-control
Ok, I done what the tutorial tells me to do and I got success on some deploys (I am using Kudu for auto deploy from GitHub).
But suddenly (without any change of config) the deploys are using the Release transform, instead of the dev one.
Via Kudu console, I saw in deployment folder, in some moment Kudu transformed my web.config in right one, and after transforms it again into the release version.
Someone have any idea what I can do?
Oh. My solution have more than one web project. I am using the "Project" Key on Azure application config page and that one works.
Thanks,
Ok guys, found the answer.
For some strange reason, the value of the parameter SCM_BUILD_ARGS changed from /p:Environment=Staging to -p:Configuration=Debug.
I just passed that value on Azure app settings and voil! It's working now :)