Need to create windows nodejs policy
I am working on nodejs windows policy to use latest node js version.
policy worrking for linux using web.linuxfxversion but i see null for windowsFxversion.
I dont see nodeversion and webnodedefault_version
Anybody has sample for nodejs windows.
@22689742 Thank you for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.
Based on the shared information, we have understood that you are trying to create a policy that should validate whether the function app/app service that is running on latest NodeJS version or not specific to windows app service plans. Correct me if my understanding is wrong.
- Could you please help elaborate more on your requirement?
- Are you trying to create this policy for App service/function Apps and also are you planning to use Azure policy or any other?
- Is this policy should validate for the newly creating function Apps/app service or for the existing resource as well ?
@22689742 Just following up to see if you have a chance to check my previous response and help us out with requested information to check and assist you better on this.
I deployed nodejs web app windows. i want policy to deploy latest version.
But i dont see any parameter for node version in json view. WindowsFX and nodeversion showing null.
I need to know how to use WEBNODE_DEFAULT_VERSION as per screenshot attached. This info is in configuration and application setting. Need to use that to add in policy
I cannot use below snippet.
@22689742 Thanks for sharing more information, apologize for the delay in my response. Just want to check and get clarity that this policy should validate whether the functionapp is running with latest windows version or not for the existing function.
I hope the answer helps. Please let me know if you have any further queries.
Please accept as Yes if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.
Sign in to comment
Sort by: Most helpful
@22689742 Thanks for your patience on this. I have checked with Functions engineering team and they have confirmed that application settings are not policy addressable.
Configuring the azure policy to check or update the existing functions are running with latest version is not possible for windows webapps since apps running on windows app service plan Nodejs version is dependent on application settings.
I would suggest you raise feedback request here Azure Functions · Community and our engineering team actively monitor this feedback as well.
Feel free to reach back to me if you have any further questions on this.
Sign in to comment