azure-web-app-service

VNet Integration For Azure Web App and Azure SQL Server

牧云@^-^@ 提交于 2020-07-05 20:53:44
问题 I have an Azure Web App and an Azure SQL Server, both in the same subscription. Both of them are connected to the same VNet Subnet as shown in the below snapshots. The SQL Server is configured not to Allow Azure Resources and Services to access the server, as it should only permit access from either the connected subnet or a set of IP rules. Unfortunately, the SQL Server is actively refusing any connection from the web app stating that the web app IP is not allowed to access the server. The

Azure web app redirect http to https

蹲街弑〆低调 提交于 2020-07-05 01:53:22
问题 I use Azure cloud with web app and my server side written on nodejs . When web app receive a http request I want to redirect the request to https I found the solution. I put that to my web.config file inside the rules tag <rule name="Force HTTPS" enabled="true"> <match url="(.*)" ignoreCase="false" /> <conditions> <add input="{HTTPS}" pattern="off" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="false" redirectType="Permanent" /> </rule> The problem

Remove response Server header on Azure Web App from the first redirect request to HTTPS

徘徊边缘 提交于 2020-06-29 04:55:08
问题 I’m trying to remove the response Server header from an Azure Web App ( with an ASP Net core application ) After many tries of changing the web.config and removing the header in app code using a middleware, Microsoft doesn’t give up and set the response header to Server: Microsoft-IIS/10.0 :) The problem appears only when I’m trying to access the server on http (not https). Response code from the server is 301, and this is the only response that has the Server header. Checking the logs I was

How will I host a static HTML page on Azure linux web app?

末鹿安然 提交于 2020-06-29 04:12:49
问题 I have a HTML page which I want to host on Azure web app. I need to host this HTML page in a resource group which is under OS Linux and so I ran the below azure cli command but, it failed. az webapp up -n surveyordemohtmlpage --html -g MyResource-Group --plan MyPlan -l westeurope It was throwing error that MyResource-Group cannot be used with the os windows, use different RG But, I need to use this particular RG as, I need to connect with other web apps in the same RG which are all hosted in

access SSL certificate in Azure Web App

半城伤御伤魂 提交于 2020-06-14 07:42:11
问题 I've uploaded an SSL certificate to my Azure Web App, running on Node, and now I'd like to access my certificate programmatically from my Node scripts to use it for signing JWTs. Is there a way to do this? I've found similar answers for C#, but I haven't been able to translate this into Node-world. Update Here is code that worked successfully, with help from @peter-pan-msft. Before running this code, I had to SFTP upload my SSL certificate to a private folder on the server. process.env.KEY =

Why Azure appsettings encoding bring me wrong chars?

倖福魔咒の 提交于 2020-06-14 05:57:07
问题 I have a problem whit the azure appsettings encoding. I have a node.js application deployed into an app service. When calling the environment variables using process.env, the values are comming in wrong encoding. I was expect a "utf8" encoding that supports chars like "ñ", "ó", "í", "á", "é", "ú" but instead of that, I get chars like "¢", "£", " ", etc. Could you help me? Thanks! 回答1: Exactly same thing on my side. There seems some encoding problem with process.env as on Kudu( https://

Why Azure appsettings encoding bring me wrong chars?

我是研究僧i 提交于 2020-06-14 05:55:28
问题 I have a problem whit the azure appsettings encoding. I have a node.js application deployed into an app service. When calling the environment variables using process.env, the values are comming in wrong encoding. I was expect a "utf8" encoding that supports chars like "ñ", "ó", "í", "á", "é", "ú" but instead of that, I get chars like "¢", "£", " ", etc. Could you help me? Thanks! 回答1: Exactly same thing on my side. There seems some encoding problem with process.env as on Kudu( https://

Azure web app service time zone change issue

主宰稳场 提交于 2020-06-10 07:34:20
问题 We are using azure web app service for multi tenant application. But default time zone of app service is UTC taking i want to change that time zone for that region only. I have tried WEB_TIMEZONE variable in app setting but not working. 回答1: You are setting wrong variable. You need to set WEBSITE_TIME_ZONE variable in Application settings . To see supported timezone values see this To verify that whether offset is updated or not navigate to Console and execute time command Reference: https:/

Add entries to web.config file of asp.net core application when web.config does not exist

我的梦境 提交于 2020-06-01 05:17:45
问题 I have an asp.net CORE project targeting .NET Framework 4.71 There is an appsettings.json file but not web.config. When I check the binaries of the deployed application service, then I see there is a file literally called web.config. I need to put some server header removal entries in that web.config but it seems only to be available where it is deployed. So who is creating that web.config file which is not available locally in the code solution? 回答1: In regular .NET world, we have option to

Azure Web App on Linux: “Error: Container didn't respond to HTTP pings on port: 8080” - when using: “start”: “pm2 start server.js”

社会主义新天地 提交于 2020-05-27 05:39:46
问题 My App Service Linux instance crashes if my node app is using the start script: "start": "pm2 start server.js" : 2019-04-15 11:36:34.432 ERROR - Container crime-digest__6ea5_0 for site crime-digest__6ea5 has exited, failing site start 2019-04-15 11:36:34.489 ERROR - Container crime-digest__6ea5_0 didn't respond to HTTP pings on port: 8080, failing site start. See container logs for debugging. Container logs have nothing but the above error. If I use just: "start": "node server.js", the app