azure-web-sites

Site in Azure Websites fails processing of X509Certificate2

一曲冷凌霜 提交于 2019-11-30 06:34:00
问题 I have site in Azure Websites (not Hosted Service) and I need processing .pfx certificates with private key there. var x509Certificate2 = new X509Certificate2(certificate, password); But I was faced with follow exception: System.Security.Cryptography.CryptographicException: The system cannot find the file specified. at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) at System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromBlob(Byte[]

Azure WebJob timeout configuration settings

给你一囗甜甜゛ 提交于 2019-11-30 06:24:25
We have an Azure web site with a daily scheduled job. In our case, the scheduled job runs a stored procedure that takes about 10 minutes so there is no local processing. Our web job is terminating after about 4 minutes with this error. Command 'cmd /c ...' aborted due to no output and CPU activity for 121 seconds. You may increase SCM_COMMAND_IDLE_TIMEOUT setting to solve the issue. We've tried adding the following app settings to the web job's app.config file: <appSettings> <add key="SCM_COMMAND_IDLE_TIMEOUT" value="100000" /> <add key="WEBJOBS_IDLE_TIMEOUT" value="100000" /> </appSettings>

Is it possible to scale Azure app services programmatically

回眸只為那壹抹淺笑 提交于 2019-11-30 05:52:29
问题 I am looking for a way to programmatically scale up/down an Azure app service instance. This question has been asked before (e.g. in the link below) several months back and the answer was not possible at the time, so I am just wondering if something has changed and/or some new feature is available now. Is possible to programmatically scale Azure instances? Please note that we would like to do this on "Azure app services", not the old style "Azure cloud services". The reason that we would like

MVC AD Azure Refresh Token via ADAL JavaScript Ajax and KnockoutJs

我的梦境 提交于 2019-11-30 04:58:01
问题 There is an inherent design flaw in the type of MVC application I have built and I believe I'm not the first to realize. I have an MVC 4 Application that utilises AD Azure Authentication that was introduced to the application in the following way Developing ASP.NET Apps with Azure Active Directory Once as User is Authenticated and Home.cshtml loads, KnockoutJs is used to perform JavaScript AJAX POST and GET requests to read and write data. So not exactly a Single Page App, but rather, a mix

Azure: "You do not have permission to view this directory or page

别等时光非礼了梦想. 提交于 2019-11-30 03:29:44
问题 I have created a node.js application in Visual Studio 2015 using the Azure SDK 2.7 and the Node.js Tools. I have successfully set up CI with BitBucket in my web app and I can see that changes to the repository do indeed trigger a build and deploy. However, the page I reach (http://ftct.azurewebsites.net/) complains: You do not have permission to view this directory or page. I have specified a default file (kinda) in my node.js by using: app.get('/', routes.index); So trying to navigate

How to change default time zone in azure website service?

百般思念 提交于 2019-11-30 03:18:47
I'm new to Azure Web Sites service. I uploaded my web site files and it works very nice. But I have a problem with default time zone. My location is Seoul(+9). But the code return UTC(+0) time when I call below. DateTime.Now; Is there any way to solve this problem without complicated fix like editing Web.config? It is now possible to change the server time zone for your Azure Websites / Web Apps. To do this, add an application setting (using the portal) called “WEBSITE_TIME_ZONE” equal to the name of the time zone in question (basically the same string as the key name at HKLM\Software

Azure Website Remote Debugging with git deploy not working

社会主义新天地 提交于 2019-11-30 00:56:56
I've been trying out the new Remote Debugging feature for Azure Websites, but I think I may have come across an issue: I can only get it to work properly if I use Web Publish. If I deploy a site with local git deploy, the debugger attaches but the debug symbols aren't loaded (breakpoints show the warning). I tried both setting the Release configuration to include PDB files (since Azure's git deploy uses the Release configuration by default) and by using a custom deploy script generated by the azure site deploymentscript command detailed here and setting the build command to use the Debug

App Service VNet Integration with Azure Storage Service Endpoint

倾然丶 夕夏残阳落幕 提交于 2019-11-29 23:56:58
问题 I made an App Service (S1) and then from the Networking blade created a VNet Integration using the documentation here. The connection looks like Then I made a Storage Account and under the Firewall and Networking tab I selected the preconfigured VNet that was made by the portal Trying to access the Azure Storage from a deployed Web App give a 403 forbidden error. What settings do I need to change for the Web App to gain access to the Azure Storage Service Endpoint? 回答1: Vnet integration gives

How do I change the name of an Azure Resource Group?

谁说胖子不能爱 提交于 2019-11-29 21:59:52
After the new model was implemented, all of my websites now belong to individual Resource Groups called "Default-Web-East" and all of my SQL databases belong to individual Resource Groups called "Default-SQL-East". This is confusing to say the least. I would like to rename the groups to have some semantic meaning. I would also like to group the associated SQL database and Web Site in the same Resource Group. However, I do not see anyway to do either. Is this possible? 1) Rename the Resource Group? 2) Combine an existing SQL DB and Website together into one Resource Group? Edit: You can't

Is there way to determine why Azure App Service restarted?

强颜欢笑 提交于 2019-11-29 21:35:45
I have a bunch of websites running on a single instance of Azure App Service, and they're all set to Always On. They all suddenly restarted at the same time, causing everything to go slow for a few minutes as everything hit a cold request. I would expect this if the service had moved me to a new host, but that didn't happen -- I'm still on the same hostname. CPU and memory usage were normal at the time of the restart, and I didn't initiate any deployments or anything like that. I don't see an obvious reason for the restart. Is there any logging anywhere that I can see to figure out why they